First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 230640
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matthias Geerdsen <vorlon@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
CVE-2008-2315-release25-maint.diff CVE-2008-2315 patch 2.5 patch Matthias Geerdsen 2008-07-03 14:45 0000 17.81 KB Details | Diff
CVE-2008-2315-trunk.diff CVE-2008-2315 patch trunk patch Matthias Geerdsen 2008-07-03 14:45 0000 18.60 KB Details | Diff
CVE-2008-2316-release25-maint.diff CVE-2008-2316 patch 2.5 patch Matthias Geerdsen 2008-07-03 14:45 0000 4.81 KB Details | Diff
CVE-2008-2316-trunk.diff CVE-2008-2316 patch trunk patch Matthias Geerdsen 2008-07-03 14:46 0000 4.81 KB Details | Diff
MISC-FIXES-release25-maint.diff misc fixes 2.5 patch Matthias Geerdsen 2008-07-03 14:46 0000 1.62 KB Details | Diff
MISC-FIXES-trunk.diff misc fixes trunk patch Matthias Geerdsen 2008-07-03 14:46 0000 1.62 KB Details | Diff
CVE-2008-2315-release25-maint.diff CVE-2008-2315-release25-maint.diff patch Ali Polatel (RETIRED) 2008-07-17 18:18 0000 17.84 KB Details | Diff
python-2.5.2-r6.ebuild python-2.5.2-r6.ebuild text/plain Ali Polatel (RETIRED) 2008-07-17 18:20 0000 10.36 KB Details
python-2.4.4-CVE-2008-2315.patch python-2.4.4-CVE-2008-2315.patch patch Robert Buchholz 2008-07-28 20:23 0000 8.74 KB Details | Diff
python-2.4.4-r7-overlay.tar.gz python-2.4.4-r7-overlay.tar.gz application/octet-stream Robert Buchholz 2008-07-28 21:00 0000 27.08 KB Details
python-overlay.tar.gz python-overlay.tar.gz application/octet-stream Robert Buchholz 2008-07-29 12:57 0000 40.46 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 230640 depends on: Show dependency tree
Bug 230640 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: 2008-07-03 14:44 0000
** Please note that this issue is confidential at the moment and no information
should be disclosed until it is made public **

hawking, feel free to add other python maintainers if needed... just keep this
confidential

Could someone please check if 2.4 is affected by these issues too.

David Remahl of Apple Product Security reports the following:

[...]

We have identified a number of integer overflow security issues in the core
python library (dealing with some of the basic types). I also found an integer
overflow issue in the strop module and one in hashlib (leading to unreliable
cryptographic digest results). Additionally, a number of issues that are
expected to be resolved by <http://bugs.python.org/issue2620> were identified
in this audit.

These issues are detailed in the files attached below. Patches and test cases
are included. Note that some issues only affect certain architectures, e.g.
32/64 bit or 2/4 byte unicode. 2.5.2 and 2.6b1 are vulnerable to varying
extents (see patches for details). 3.0a has not been investigated, nor have 2.4
and earlier releases. Some of the test cases need to be run with regrtest.py -M
<large value>. A new test decorator (precisionbigmemtest) was created because
of the need to have bigmem tests that take a specific size value, not just the
largest size that can be accommodated.

The following CVE names have been assigned by Apple:

CVE-2008-2315: Multiple integer overflows in python core (stringobject,
unicodeobject, bufferobject, longobject, tupleobject, stropmodule, gcmodule,
mmapmodule)
CVE-2008-2316: Partial hashlib hashing of data exceeding 4GB (_hashopenssl)

Also included in this message are patches for some non-security bugs that were
encountered during the audit. They have no test cases and have received little
testing. Caveat emptor. 
[...]
Note that one of the issues is in the same code snippet that was touched in
PSF-2006-001 (CVE-2006-4980).

The Python Security Response Team was notified of these issues recently and
they have acknowledged that they received the message.

------- Comment #1 From Matthias Geerdsen 2008-07-03 14:45:11 0000 -------
Created an attachment (id=159416) [edit]
CVE-2008-2315 patch 2.5

------- Comment #2 From Matthias Geerdsen 2008-07-03 14:45:30 0000 -------
Created an attachment (id=159418) [edit]
CVE-2008-2315 patch trunk

------- Comment #3 From Matthias Geerdsen 2008-07-03 14:45:53 0000 -------
Created an attachment (id=159420) [edit]
CVE-2008-2316 patch 2.5

------- Comment #4 From Matthias Geerdsen 2008-07-03 14:46:13 0000 -------
Created an attachment (id=159422) [edit]
CVE-2008-2316 patch trunk

------- Comment #5 From Matthias Geerdsen 2008-07-03 14:46:36 0000 -------
Created an attachment (id=159424) [edit]
misc fixes 2.5

------- Comment #6 From Matthias Geerdsen 2008-07-03 14:46:52 0000 -------
Created an attachment (id=159426) [edit]
misc fixes trunk

------- Comment #7 From Robert Buchholz 2008-07-03 16:12:57 0000 -------
*** Bug 230589 has been marked as a duplicate of this bug. ***

------- Comment #8 From Ali Polatel (RETIRED) 2008-07-13 14:35:48 0000 -------
An ebuild will be attached as soon as I get back home. I'm away for guadec
right now, hopefully I'll be back on tuesday or wednesday. That's like 16th of
this month I guess.

------- Comment #9 From Matthias Geerdsen 2008-07-13 14:52:36 0000 -------
thanks Ali

Should we CC another python maintainer to speed things up?

------- Comment #10 From Ali Polatel (RETIRED) 2008-07-17 18:18:58 0000 -------
Created an attachment (id=160652) [edit]
CVE-2008-2315-release25-maint.diff

Fixes an indentation error in Lib/tests/test_seq.py
Please have a look and make sure that it does the right thing.

------- Comment #11 From Ali Polatel (RETIRED) 2008-07-17 18:20:22 0000 -------
Created an attachment (id=160655) [edit]
python-2.5.2-r6.ebuild

Ebuild that applies the attached patches.
I'll move the patches from files/ to our patchset after disclosure.

------- Comment #12 From Ali Polatel (RETIRED) 2008-07-17 18:21:02 0000 -------
(In reply to comment #9)
> thanks Ali
> 
> Should we CC another python maintainer to speed things up?
> 

Next time, please CC python@gentoo.org ;)

------- Comment #13 From Ali Polatel (RETIRED) 2008-07-26 23:47:07 0000 -------
(In reply to comment #12)
> Next time, please CC python@gentoo.org ;)
> 

^ That was fail :-]. CC'ing dev-zero because I'll be on vacation till 15th
August.
I'm not sure if he's available though.

@dev-zero: Please CC pythonhead if you don't have time
@security: ^ Please do so if he doesn't respond :)

------- Comment #14 From Robert Buchholz 2008-07-28 20:23:19 0000 -------
Created an attachment (id=161580) [edit]
python-2.4.4-CVE-2008-2315.patch

------- Comment #15 From Robert Buchholz 2008-07-28 21:00:43 0000 -------
Created an attachment (id=161588) [edit]
python-2.4.4-r7-overlay.tar.gz

I took the liberty of of putting together the patches from bug 232137 and this
bug, apply them all to our current stable and wrap it up in an overlay.

The python team will probably put these patches into a new gentoo patch
tarball.
I understood that we are not going to backport these patches to 2.3 anymore,
ending its life in the tree?

------- Comment #16 From Robert Buchholz 2008-07-28 21:01:45 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 : yoswink
   amd64 : welp
    hppa : jer
     ppc : dertobi123
   ppc64 : corsair
   sparc : fmccor
     x86 : tsunam

------- Comment #17 From Markus Rothe 2008-07-29 07:07:14 0000 -------
looks good on ppc64

------- Comment #18 From Raúl Porcel 2008-07-29 11:49:07 0000 -------
Shouldn't this be -r14? -r13 is the latest stable....

------- Comment #19 From Ferris McCormick 2008-07-29 12:10:45 0000 -------
Good on sparc for python-2.4.4-r7.  But current stable is -2.4.4-r13 on sparc. 
So I guess I echo Comment #18.

------- Comment #20 From Robert Buchholz 2008-07-29 12:57:03 0000 -------
Created an attachment (id=161617) [edit]
python-overlay.tar.gz

(In reply to comment #18)
> Shouldn't this be -r14? -r13 is the latest stable....

Sorry, my bad. I'm attaching a new tarball that also includes
=python/python-2.4.4-r14
=python/python-2.5.2-r6

for stable.

------- Comment #21 From Ferris McCormick 2008-07-29 14:16:26 0000 -------
python-2.4.4-r14 and python-2.5.2-r6 are both good on sparc.

------- Comment #22 From Raúl Porcel 2008-07-29 14:24:16 0000 -------
alpha/ia64/x86 is good as well

------- Comment #23 From Jeroen Roovers 2008-07-29 18:11:34 0000 -------
Both are OK for HPPA.

------- Comment #24 From Markus Rothe 2008-07-29 18:14:30 0000 -------
python-2.4.4-r14 and python-2.5.2-r6 are both good on ppc64

------- Comment #25 From Robert Buchholz 2008-07-30 15:00:15 0000 -------
Embargo deadline is 1700 UTC tomorrow. Python team, who will be around to
commit the new version?

------- Comment #26 From Ali Polatel (RETIRED) 2008-07-30 15:19:29 0000 -------
(In reply to comment #25)
> Embargo deadline is 1700 UTC tomorrow. Python team, who will be around to
> commit the new version?
> 

I have ssh access to my home box so I can do it if noone else does. I'll try to
be around at that time tomorrow.

------- Comment #27 From Tobias Scherbaum 2008-07-30 16:22:38 0000 -------
booth ok for ppc

------- Comment #28 From Tiziano Müller 2008-07-31 13:56:21 0000 -------
Added patches to our patchsets.

Rev.bumped to python-2.4.4-r14 (using python-gentoo-patches-2.4.4-r11.tar.bz2)
and python-2.5.2-r6 (using python-gentoo-patches-2.5.2-r6.tar.bz2).

Tests passed for the rev.bumped packages on my amd64. Added amd64 keyword as
well.

Committed with the following keywords:
2.4: alpha amd64 hppa ia64 ppc ppc64 sparc x86
2.5: alpha amd64 hppa ia64 ppc ppc64 x86

------- Comment #29 From Ferris McCormick 2008-07-31 14:24:50 0000 -------
(In reply to comment #28)
> Added patches to our patchsets.
> 
> Rev.bumped to python-2.4.4-r14 (using python-gentoo-patches-2.4.4-r11.tar.bz2)
> and python-2.5.2-r6 (using python-gentoo-patches-2.5.2-r6.tar.bz2).
> 
> Tests passed for the rev.bumped packages on my amd64. Added amd64 keyword as
> well.
> 
> Committed with the following keywords:
> 2.4: alpha amd64 hppa ia64 ppc ppc64 sparc x86
> 2.5: alpha amd64 hppa ia64 ppc ppc64 x86
> 

Also sparc for 2.5

------- Comment #30 From Robert Buchholz 2008-07-31 23:31:53 0000 -------
Arches, please test and mark stable:
=dev-lang/python-2.4.4-r14
=dev-lang/python-2.5.2-r6
Target keywords : "alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
Already stabled : "alpha amd64 hppa ia64 ppc ppc64 sparc x86"
Missing keywords: "arm m68k s390 sh"

------- Comment #31 From Robert Buchholz 2008-07-31 23:34:37 0000 -------
GLSA 200807-16

First Last Prev Next    No search results available      Search page      Enter new bug