Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72452 - Linux Kernel Local DoS and Memory Content Disclosure Vulnerabilities (CAN-2004-1074)
Summary: Linux Kernel Local DoS and Memory Content Disclosure Vulnerabilities (CAN-200...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/13308/
Whiteboard: [linux <2.6.10]
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 05:37 UTC by JG
Modified: 2009-05-03 13:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---
plasmaroo: Assigned_To? (plasmaroo)


Attachments
2.6 Patch (a.out) (CAN-2004-1074.patch,1.60 KB, patch)
2004-12-01 08:26 UTC, Luke Macken (RETIRED)
no flags Details | Diff
2.4 Patch (a.out) (linux-2.4.27-binfmt_a.out.patch,1.96 KB, patch)
2004-12-01 11:52 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.6.7 version of the 2nd vma fix (1161_vma-fix-2.patch,7.40 KB, patch)
2004-12-02 13:53 UTC, Daniel Drake (RETIRED)
no flags Details | Diff
2.6.8 version of the 2nd vma fix (1161_vma-fix-2.patch,7.85 KB, patch)
2004-12-03 03:41 UTC, Daniel Drake (RETIRED)
no flags Details | Diff
2.4.28 VMA Patch (2.4.28-vma.patch,7.67 KB, patch)
2004-12-19 07:55 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.4.28 VMA Patch (Requires a.out patch) (2.4.28-vma.patch,7.95 KB, patch)
2004-12-24 16:25 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.4.28 VMA Patch (Use with GRSecurity-enabled kernels; requires a.out patch) (2.4.28-vma-PaX.patch,11.10 KB, patch)
2004-12-24 16:26 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.6.9 VMA Patch (linux-2.6.9-vma.patch,8.74 KB, patch)
2004-12-24 16:42 UTC, Tim Yamin (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JG 2004-11-25 05:37:32 UTC
source: http://secunia.com/advisories/13308/

Affected: 2.4.x + 2.6.x

Description:
Two vulnerabilities have been reported in the Linux Kernel, which can be exploited by malicious, local users to cause a DoS (Denial of Service) or gain knowledge of potentially sensitive information.

1) An unspecified error can be exploited via a specially crafted a.out binary to cause a DoS.

2) A race condition within the memory management can be exploited to disclose the content of random physical memory pages.

Original Advisory:
http://www.suse.de/de/security/2004_01_sr.html


Reproducible: Always
Steps to Reproduce:
Comment 1 Luke Macken (RETIRED) gentoo-dev 2004-12-01 08:26:50 UTC
Created attachment 45056 [details, diff]
2.6 Patch (a.out)

Patch by Chris Wright to fix CAN-2004-1074 (issue #1 mentioned in this bug)
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-12-01 11:15:50 UTC
Ok, do we have a patch for issue #2 or has SuSE finally released their kernel updates...?
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-12-01 11:52:13 UTC
Created attachment 45071 [details, diff]
2.4 Patch (a.out)
Comment 4 Luke Macken (RETIRED) gentoo-dev 2004-12-01 13:36:53 UTC
It sounds to me like #2 is just a dupe of bug 72317.

(see also: http://www.suse.de/de/security/2004_42_kernel.html)
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-12-02 11:53:41 UTC
All done, the following externally maintained sources need maintainer magic:

grsec-sources - Solar, I think you've fixed this? Confirm please.

gentoo-dev-sources - Adding dsd...
hardened(-dev)-sources - Adding hardened herd...
hppa(-dev)-sources - Adding GMSoft...
mips-sources - Adding Kumba...
openmosix-sources - Adding cluster herd...
pegasos-dev-sources - Adding dholm...
rsbac(-dev)-sources - Adding kang...
sparc-sources - Adding Joker...
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2004-12-02 12:16:39 UTC
This 2.6 patch should also be applied after attachment 45056 [details, diff]
http://linux.bkbits.net:8080/linux-2.6/cset@1.2055.1.182?nav=index.html|src/|src/fs|related/fs/exec.c
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2004-12-02 13:53:37 UTC
Created attachment 45171 [details, diff]
2.6.7 version of the 2nd vma fix

2.6.7 version of the patch mentioned in comment 6
Comment 8 Christian Birchinger (RETIRED) gentoo-dev 2004-12-02 18:11:50 UTC
sparc-sources-2.4.28-r1 released
Comment 9 solar (RETIRED) gentoo-dev 2004-12-02 21:28:41 UTC
grsec-sources-2.4.28 has not had any additional security patches added to it yet.
uptime is only 5 days and not looking forward to patching kernel again. debating dropping grsec-sources all together.
Comment 10 Joshua Kinard gentoo-dev 2004-12-03 01:51:11 UTC
mips-sources fixed.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2004-12-03 03:41:45 UTC
Created attachment 45193 [details, diff]
2.6.8 version of the 2nd vma fix

2.6.8 version of the patch mentioned in comment 6
Comment 12 solar (RETIRED) gentoo-dev 2004-12-03 06:57:05 UTC
Well I went to patch grsec sources this morn but I see that somebody has totally fsked it up. That would be you dsd. Please fix what you broke.
Comment 13 Adam Mondl (RETIRED) gentoo-dev 2004-12-03 07:32:49 UTC
Fixed in ~arch hardened-sources-2.4.28
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2004-12-03 11:25:30 UTC
gentoo-dev-sources done
Comment 15 David Holm (RETIRED) gentoo-dev 2004-12-04 05:49:21 UTC
pegasos-dev-sources fixed
Comment 16 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-12-04 08:41:13 UTC
oM-sources: fixed in ~x86.
Comment 17 Adam Mondl (RETIRED) gentoo-dev 2004-12-07 21:46:00 UTC
~x86 hardened-dev-sources fixed
Comment 18 Guy Martin (RETIRED) gentoo-dev 2004-12-08 09:30:00 UTC
Done on hppa(-dev)-sources.
Comment 19 Guillaume Destuynder (RETIRED) gentoo-dev 2004-12-08 12:19:09 UTC
|- rsbac-dev-sources: done in r10
|- rsbac-sources:     done in r1
Comment 20 solar (RETIRED) gentoo-dev 2004-12-13 09:36:42 UTC
grsec is done. 
Comment 21 solar (RETIRED) gentoo-dev 2004-12-13 09:40:05 UTC
All kernels appear to be done at this point.. Removing extra CC: people
Comment 22 Tim Yamin (RETIRED) gentoo-dev 2004-12-19 07:55:52 UTC
Created attachment 46349 [details, diff]
2.4.28 VMA Patch
Comment 23 Adam Mondl (RETIRED) gentoo-dev 2004-12-24 13:10:37 UTC
~x86 hardened-sources-2.4.28-r1 updated for VMA patch
Comment 24 Tim Yamin (RETIRED) gentoo-dev 2004-12-24 16:25:32 UTC
Created attachment 46830 [details, diff]
2.4.28 VMA Patch (Requires a.out patch)
Comment 25 Tim Yamin (RETIRED) gentoo-dev 2004-12-24 16:26:29 UTC
Created attachment 46831 [details, diff]
2.4.28 VMA Patch (Use with GRSecurity-enabled kernels; requires a.out patch)
Comment 26 Tim Yamin (RETIRED) gentoo-dev 2004-12-24 16:42:33 UTC
Created attachment 46836 [details, diff]
2.6.9 VMA Patch
Comment 27 Tim Yamin (RETIRED) gentoo-dev 2004-12-24 16:45:12 UTC
Ok, all patched - the following externally maintained sources need to make sure they also have the VMA patches for both 2.4 and 2.6 applied.

*NOTE* If you already have done this (for both branches if applicable), please state so on this bug. Thanks!

grsec-sources -- Adding tocharian...
hppa(-dev)-sources -- Adding GMSoft...
mips-sources -- Adding `Kumba...
openmosix-sources -- Adding cluster herd...
pegasos-dev-sources -- Adding dholm...
rsbac(-dev)-sources -- Adding kang...
sparc-sources -- Adding Joker...
Comment 28 Christian Birchinger (RETIRED) gentoo-dev 2004-12-24 19:03:11 UTC
Fixed sparc-sources-2.4.28-r3 released.
Comment 29 David Holm (RETIRED) gentoo-dev 2004-12-25 05:28:53 UTC
pegasos-dev-sources should be fixed
Comment 30 Adam Mondl (RETIRED) gentoo-dev 2004-12-25 05:33:00 UTC
grsec-sources-2.4.28.2.0.2-r3 has updated VMA patch
Comment 31 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-12-27 01:21:09 UTC
done in oM6-sources
Comment 32 Guy Martin (RETIRED) gentoo-dev 2004-12-27 06:27:12 UTC
2.4 is dropped on hppa and I've added 2.6.10-pa1 which doesn't seems affected by this problem.
Comment 33 Joshua Kinard gentoo-dev 2005-01-05 21:21:33 UTC
mips-sources fixed.
Comment 34 Guillaume Destuynder (RETIRED) gentoo-dev 2005-01-13 15:54:09 UTC
rsbac-sources: all fixed/updated (old -dev also, so)
Comment 35 Tim Yamin (RETIRED) gentoo-dev 2005-01-15 14:42:03 UTC
All kernels fixed, closing bug; notifications are being migrated away from GLSAs for kernels, more news coming soon so stay tuned :-]
Comment 36 Thierry Carrez (RETIRED) gentoo-dev 2005-01-17 07:20:48 UTC
A little heads-up :

Committed to 2.6 :
http://linux.bkbits.net:8080/linux-2.6/cset@41a6721cce-LoPqkzKXudYby_3TUmg

"This is the issue covered by CAN-2004-1074 where a improperly formed binary can cause an oops.  Since this got fixed separately for 64 bit binaries and a number of distros (like RedHat) will have fixed one but not the other it deserves it's own CVE name (split due to version), CAN-2005-0003."

I don't understand everything :) Please doublecheck we're OK :)