Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 267774
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alex Legler <a3li@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
CVE-2009-1415.patch CVE-2009-1415.patch patch Alex Legler 2009-04-28 12:30 0000 570 bytes Details | Diff
CVE-2009-1416.patch CVE-2009-1416.patch patch Alex Legler 2009-04-28 12:31 0000 393 bytes Details | Diff
CVE-2009-1417.patch CVE-2009-1417.patch patch Alex Legler 2009-04-28 12:31 0000 2.85 KB Details | Diff
CVE-2009-1417.patch fixed CVE-2009-1417.patch patch patch Daniel Black 2009-04-28 13:33 0000 2.91 KB Details | Diff
gnutls-2.6.5-r1.ebuild not totally completed gnutls-2.6.5-r1.ebuild text/plain Daniel Black 2009-04-28 15:13 0000 3.29 KB Details
gnutls-2.6.5-r1.ebuild same without the src_test text/plain Daniel Black 2009-04-29 00:17 0000 2.42 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 267774 depends on: Show dependency tree
Bug 267774 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2009-04-28 12:21 0000
** Please note that this issue is confidential and no information should be
disclosed until it is made public, see "Whiteboard" for a date **

CVE-2009-1415: Double free and free of invalid pointer on certain errors

Miroslav Kratochvil reported that he was able to crash libgnutls
when experimenting with (corrupt) DSA keys.  The client crashes when
verifying DSA signatures provided by the remote server when using a
DSA ciphersuite.  The code that crashes is also used for verifying DSA
signatures in X.509 Certificates, and for verifying RSA/DSA signatures
in OpenPGP keys.

CVE-2009-1416: All DSA keys generated using GnuTLS 2.6.x are corrupt and
useless

When investigating the DSA problems reported by Miroslav Kratochvil, Simon
Josefsson discovered that all DSA keys generated by
GnuTLS 2.6.x are corrupt.  Rather than generating a DSA key, GnuTLS
will generate a RSA key and store it in a DSA structure.

CVE-2009-1417: Certificate expiration not checked by gnutls-cli

Romain Francoise reported that gnutls-cli does not check the
activation and expiration dates of X.509 certificates.  This is
assumed to apply to all versions of gnutls-cli.

------- Comment #1 From Alex Legler 2009-04-28 12:25:21 0000 -------
Upstream has planned a release for tomorrow, not sure if that will happen, so
I'm adding patches as Daniel agreed to have an ebuild ready soonish.

As always, no commits to CVS until the issue is public, please.

------- Comment #2 From Alex Legler 2009-04-28 12:30:49 0000 -------
Created an attachment (id=189700) [details]
CVE-2009-1415.patch

------- Comment #3 From Alex Legler 2009-04-28 12:31:05 0000 -------
Created an attachment (id=189702) [details]
CVE-2009-1416.patch

------- Comment #4 From Alex Legler 2009-04-28 12:31:32 0000 -------
Created an attachment (id=189704) [details]
CVE-2009-1417.patch

------- Comment #5 From Daniel Black 2009-04-28 13:33:53 0000 -------
Created an attachment (id=189707) [details]
fixed CVE-2009-1417.patch patch

fix different hunks at different patch levels and backport it to 2.6.5

------- Comment #6 From Daniel Black 2009-04-28 15:13:50 0000 -------
Created an attachment (id=189720) [details]
not totally completed gnutls-2.6.5-r1.ebuild

was hoping to finish a testsuite. hopefully upstream will release with tests
for the bugs they fixed. they aren't too bad. Just starting a revdep-rebuild
now. will let you know in +6hrs how they go.

------- Comment #7 From Daniel Black 2009-04-29 00:17:20 0000 -------
Created an attachment (id=189787) [details]
same without the src_test

arch test ready.

------- Comment #8 From Robert Buchholz 2009-04-29 00:34:09 0000 -------
Arch Security Liaisons, please test the attached ebuild and report it stable on
this bug.
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"

CC'ing current Liaisons:
   alpha : armin76, klausman
   amd64 : keytoaster, tester
    hppa : jer
     ppc : josejx, ranger
   ppc64 : josejx, ranger
   sparc : fmccor
     x86 : armin76, maekke

------- Comment #9 From Jeroen Roovers 2009-04-29 11:46:23 0000 -------
HPPA is OK.

------- Comment #10 From Brent Baude 2009-04-29 13:53:54 0000 -------
ppc and ppc64 good to go

------- Comment #11 From Arfrever Frehtes Taifersar Arahesis 2009-04-30 11:44:43 0000 -------
net-libs/gnutls-2.6.6 has been released.
http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3514

------- Comment #12 From Robert Buchholz 2009-04-30 12:02:55 0000 -------
this is now public, please commit with the gathered keywords. arch liaisons,
please keep on testing and stabling :-)

------- Comment #13 From Daniel Black 2009-04-30 12:41:10 0000 -------
net-libs/gnutls-2.6.5-r1 added to try though I plan on adding the official
upstream release 2.6.6 within the next hour the remaining arches want to wait a
little.

------- Comment #14 From Daniel Black 2009-04-30 12:55:19 0000 -------
2.6.6 added - going by the upstream Changelog. 2.6.6 is essentially same as
2.5.5 apart from the CVE fixes and a better version of the openpgp patch.
Please make it stable for new archs.

------- Comment #15 From Robert Buchholz 2009-04-30 13:02:04 0000 -------
Arches, please test and mark stable:
=net-libs/gnutls-2.6.6

Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
Already stabled : "hppa ppc ppc64"  [for 2.6.5-r1]
Missing keywords: "alpha amd64 arm ia64 m68k s390 sh sparc x86"

------- Comment #16 From Alex Legler 2009-05-01 11:17:20 0000 -------
CVE-2009-1415 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2009-1415):
  lib/pk-libgcrypt.c in libgnutls in GnuTLS before 2.6.6 does not
  properly handle invalid DSA signatures, which allows remote attackers
  to cause a denial of service (application crash) and possibly have
  unspecified other impact via a malformed DSA key that triggers a (1)
  free of an uninitialized pointer or (2) double free.

CVE-2009-1416 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2009-1416):
  lib/gnutls_pk.c in libgnutls in GnuTLS 2.5.0 through 2.6.5 generates
  RSA keys stored in DSA structures, instead of the intended DSA keys,
  which might allow remote attackers to spoof signatures on
  certificates or have unspecified other impact by leveraging an
  invalid DSA key.

CVE-2009-1417 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2009-1417):
  gnutls-cli in GnuTLS before 2.6.6 does not verify the activation and
  expiration times of X.509 certificates, which allows remote attackers
  to successfully present a certificate that is (1) not yet valid or
  (2) no longer valid, related to lack of time checks in the
  _gnutls_x509_verify_certificate function in lib/x509/verify.c in
  libgnutls_x509, as used by (a) Exim, (b) OpenLDAP, and (c) libsoup.

------- Comment #17 From Jeroen Roovers 2009-05-01 12:55:43 0000 -------
I have added hppa@g.o because it would be awkward to stabilise the newer
version at a later date. I guess ppc@ and ppc64@ would perhaps feel the same
way.

------- Comment #18 From Markus Meier 2009-05-01 14:18:54 0000 -------
amd64/x86 stable

------- Comment #19 From Robert Buchholz 2009-05-02 11:52:05 0000 -------
There is no objection to stabilize 2.6.6, however I tried to keep pressure upon
arch teams as low as possible. So ppc and ppc64, feel free to mark stable 2.6.6
as well or un-cc yourselves because 2.6.5-r1 is fine from a security
perspective.

------- Comment #20 From Jeroen Roovers 2009-05-02 13:51:47 0000 -------
Stable for HPPA. :)

------- Comment #21 From Tobias Klausmann 2009-05-03 12:40:20 0000 -------
Stable on alpha.

------- Comment #22 From Brent Baude 2009-05-03 13:00:56 0000 -------
ppc64 done

------- Comment #23 From Brent Baude 2009-05-03 13:01:02 0000 -------
ppc done

------- Comment #24 From Raúl Porcel 2009-05-06 15:19:05 0000 -------
arm/ia64/s390/sh/sparc stable

------- Comment #25 From Alex Legler 2009-05-06 18:48:46 0000 -------
GLSA request filed.

------- Comment #26 From Alex Legler 2009-05-24 13:36:04 0000 -------
GLSA 200905-04, thanks everyone.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug