Security Advisory gnupg security update

Advisory: RHSA-2003:395-13
Type: Security Advisory
Severity: Important
Issued on: 2003-12-10
Last updated on: 2003-12-10
Affected Products: Red Hat Enterprise Linux AS (v. 2.1)
Red Hat Enterprise Linux AS (v. 3)
Red Hat Enterprise Linux ES (v. 2.1)
Red Hat Enterprise Linux ES (v. 3)
Red Hat Enterprise Linux WS (v. 2.1)
Red Hat Enterprise Linux WS (v. 3)
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor
OVAL: N/A
CVEs (cve.mitre.org): CVE-2003-0971

Details

Updated gnupg packages are now available for Red Hat Enterprise Linux.
These updates disable the ability to generate ElGamal keys (used for both
signing and encrypting) and disable the ability to use ElGamal public keys
for encrypting data.

GnuPG is a utility for encrypting data and creating digital signatures.

Phong Nguyen identified a severe bug in the way GnuPG creates and uses
ElGamal keys, when those keys are used both to sign and encrypt data. This
vulnerability can be used to trivially recover the private key. While the
default behavior of GnuPG when generating keys does not lead to the
creation of unsafe keys, by overriding the default settings an unsafe key
could have been created.

If you are using ElGamal keys, you should revoke those keys immediately.

The packages included in this update do not make ElGamal keys safe to use;
they merely include a patch by David Shaw that disables functions that
would generate or use ElGamal keys.

To determine if your key is affected, run the following command to obtain a
list of secret keys that you have on your secret keyring:

gpg --list-secret-keys

The output of this command includes both the size and type of the keys
found, and will look similar to this example:

/home/example/.gnupg/secring.gpg
----------------------------------------------------
sec 1024D/01234567 2000-10-17 Example User <example@example.com>
uid Example User <example@example.com>

The key length, type, and ID are listed together, separated by a forward
slash. In the example output above, the key's type is "D" (DSA, sign
and encrypt). Your key is unsafe if and only if the key type is "G"
(ElGamal, sign and encrypt). In the above example, the secret key is safe
to use, while the secret key in the following example is not:

/home/example/.gnupg/secring.gpg
----------------------------------------------------
sec 1024G/01234567 2000-10-17 Example User <example@example.com>
uid Example User <example@example.com>

For more details regarding this issue, as well as instructions on how to
revoke any keys that are unsafe, refer to the advisory available from the
GnuPG web site:

http://www.gnupg.org/


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

If up2date fails to connect to Red Hat Network due to SSL Certificate
Errors, you need to install a version of the up2date client with an updated
certificate. The latest version of up2date is available from the Red Hat
FTP site and may also be downloaded directly from the RHN website:

https://rhn.redhat.com/help/latest-up2date.pxt

Updated packages

Red Hat Enterprise Linux AS (v. 2.1)

SRPMS:
gnupg-1.0.7-13.src.rpm     b619c30c293094d7dcd18487d8e62a43
 
IA-32:
gnupg-1.0.7-13.i386.rpm
File outdated by:  RHSA-2007:0106
    e7e3e75afd1ccd2267ccc7847c76ebb4
 
IA-64:
gnupg-1.0.7-13.ia64.rpm
File outdated by:  RHSA-2007:0106
    6fb21011ca42ff395b8cfc7dce4c2936
 
Red Hat Enterprise Linux AS (v. 3)

SRPMS:
gnupg-1.2.1-10.src.rpm     a2015b94dc7a8b8b8b24036522f5a7f5
 
IA-32:
gnupg-1.2.1-10.i386.rpm
File outdated by:  RHSA-2007:0106
    9830e4ba4a1b5eb261e39ae5c9efd2b4
 
IA-64:
gnupg-1.2.1-10.ia64.rpm
File outdated by:  RHSA-2007:0106
    1f50796a959836602552d5f94590269a
 
PPC:
gnupg-1.2.1-10.ppc.rpm
File outdated by:  RHSA-2007:0106
    b7728dde4a9b9e864a5993de3b0af8ce
 
s390:
gnupg-1.2.1-10.s390.rpm
File outdated by:  RHSA-2007:0106
    8ffa950e28d01c05a1bf5e3beb462d35
 
s390x:
gnupg-1.2.1-10.s390x.rpm
File outdated by:  RHSA-2007:0106
    986220a49e895db43dbf37778613e628
 
x86_64:
gnupg-1.2.1-10.x86_64.rpm
File outdated by:  RHSA-2007:0106
    d7fc757e68c14f273c2a1bd5d6a3af8f
 
Red Hat Enterprise Linux ES (v. 2.1)

SRPMS:
gnupg-1.0.7-13.src.rpm     b619c30c293094d7dcd18487d8e62a43
 
IA-32:
gnupg-1.0.7-13.i386.rpm
File outdated by:  RHSA-2007:0106
    e7e3e75afd1ccd2267ccc7847c76ebb4
 
Red Hat Enterprise Linux ES (v. 3)

SRPMS:
gnupg-1.2.1-10.src.rpm     a2015b94dc7a8b8b8b24036522f5a7f5
 
IA-32:
gnupg-1.2.1-10.i386.rpm
File outdated by:  RHSA-2007:0106
    9830e4ba4a1b5eb261e39ae5c9efd2b4
 
Red Hat Enterprise Linux WS (v. 2.1)

SRPMS:
gnupg-1.0.7-13.src.rpm     b619c30c293094d7dcd18487d8e62a43
 
IA-32:
gnupg-1.0.7-13.i386.rpm
File outdated by:  RHSA-2007:0106
    e7e3e75afd1ccd2267ccc7847c76ebb4
 
Red Hat Enterprise Linux WS (v. 3)

SRPMS:
gnupg-1.2.1-10.src.rpm     a2015b94dc7a8b8b8b24036522f5a7f5
 
IA-32:
gnupg-1.2.1-10.i386.rpm
File outdated by:  RHSA-2007:0106
    9830e4ba4a1b5eb261e39ae5c9efd2b4
 
IA-64:
gnupg-1.2.1-10.ia64.rpm
File outdated by:  RHSA-2007:0106
    1f50796a959836602552d5f94590269a
 
x86_64:
gnupg-1.2.1-10.x86_64.rpm
File outdated by:  RHSA-2007:0106
    d7fc757e68c14f273c2a1bd5d6a3af8f
 
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor

SRPMS:
gnupg-1.0.7-13.src.rpm     b619c30c293094d7dcd18487d8e62a43
 
IA-64:
gnupg-1.0.7-13.ia64.rpm
File outdated by:  RHSA-2007:0106
    6fb21011ca42ff395b8cfc7dce4c2936
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

111345 - CAN-2003-0971 GnuPG ElGamal compromise


References


Keywords

elgamal, encrypt, gnupg, sign


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/