Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62524 - Kernel: sys-kernel/* remote denial-of-service (GENERIC-MAP-NOMATCH)
Summary: Kernel: sys-kernel/* remote denial-of-service (GENERIC-MAP-NOMATCH)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Security
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard: [linux <2.6.9]
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 09:16 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2009-07-12 19:44 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---
plasmaroo: Pending-


Attachments
2.4 NFS Patch (2.4-XDRWrapFix.patch,1.46 KB, patch)
2004-09-06 12:34 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.6 /dev/ptmx Patch (2.6-devpts-refcount.patch,572 bytes, patch)
2004-09-06 12:34 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.6 /dev/ptmx Patch (2.6-devpts-refcount.patch,572 bytes, patch)
2004-09-06 12:37 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 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-09-01 09:16:10 UTC
Suse just released the following. 

1) problem description, brief discussion

    Various signedness issues and integer overflows have been fixed within
    kNFSd and the XDR decode functions of kernel 2.6.
    These bugs can be triggered remotely by sending a package with a trusted
    source IP address and a write request with a size greater then 2^31.
    The result will be a kernel Oops, it is unknown if this bug is otherwise
    exploitable yet.
    Kernel 2.4 nfsd code is different but may suffer from the same
    vulnerability.
    Additionally a local denial-of-service condition via /dev/ptmx, which
    affects kernel 2.6 only has been fixed. Thanks to Jan Engelhardt for
    reporting this issue to us.
Comment 1 Matthias Geerdsen (RETIRED) gentoo-dev 2004-09-02 12:42:11 UTC
Reply to the SuSe announcement on bugtraq from 	Paul Starzetz <paul starzetz de>
http://www.securityfocus.com/archive/1/373887 :

The iSEC people have read the nfsd code from 2.4 and it seems to be 
vulnerable too, however only authenticated clients could reach the 
problematic places at all. Having a writeable NFS share is probably a 
bad idea anyway...
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-09-06 12:34:03 UTC
Created attachment 39082 [details, diff]
2.4 NFS Patch
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-09-06 12:34:37 UTC
Created attachment 39083 [details, diff]
2.6 /dev/ptmx Patch
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-09-06 12:37:03 UTC
Created attachment 39084 [details, diff]
2.6 /dev/ptmx Patch
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-09-06 12:46:29 UTC
Greg, can you have a look upstream regarding this XDR issue for 2.6 - I can't confirm whether it is affected or not, and does this needs fixing upstream? Or was this XDR issue fixed by the recent signed->unsigned transitions?
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-17 16:32:10 UTC
I'm pretty sure this is already fixed in the latest 2.6.8.1 kernel release, right?
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-09-18 02:44:09 UTC
Well, there don't seem to be any changes suggesting that - looking through SuSE's patches, it seems that they are patching a backported NFS rather than the one present by 2.6.5... Hence the dilemma of whether the upstream source is vulnerable.
Comment 8 Thierry Carrez (RETIRED) gentoo-dev 2004-11-09 08:33:51 UTC
Moving to newly-created kernel-specific category
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2004-11-09 14:35:40 UTC
Ok, all patched. The following are externally maintained, so I'm CCing the relevant maintainers. Patches are attached on this bug.

grsec-sources -- Adding solar.
hardened-dev-sources -- Adding Gentoo/Hardened team.
hardened-sources -- Adding scox.
hppa(-dev)-sources -- Adding GMSoft.
mips-sources -- Adding `Kumba.
openmosix-sources -- Adding cluster herd.
rsbac(-dev)-sources -- Adding kang.
selinux-sources -- Adding pebenito.
sparc-sources -- Adding Joker.
Comment 10 solar (RETIRED) gentoo-dev 2004-11-10 00:16:41 UTC
Is there a CAN- number for this one yet?
Comment 11 solar (RETIRED) gentoo-dev 2004-11-10 00:19:59 UTC
patches clean.. Sending linux-2.4.27-nfs3-xdr.patch.bz2 to the mirrors so others can grab it via SRC_URI so we don't end up with alot of kernels with {FILESDIR}/same-patch-as-all-other-2.4.kernels
Comment 12 solar (RETIRED) gentoo-dev 2004-11-10 00:47:37 UTC
grsec-sources patched. 
Old ebuilds removed. 
All arches assumed stable. 
Removing myself from CC:
Comment 13 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-11-10 01:30:11 UTC
openmosix-sources patched.
Comment 14 Christian Birchinger (RETIRED) gentoo-dev 2004-11-10 09:26:41 UTC
Fixed in sparc-sources-2.4.27-r2
Comment 15 Chris PeBenito (RETIRED) gentoo-dev 2004-11-10 09:48:42 UTC
selinux-sources p.mask'ed as it will be removed soon
Comment 16 Joshua Kinard gentoo-dev 2004-11-19 18:08:08 UTC
mips-sources updated.
Comment 17 Guillaume Destuynder (RETIRED) gentoo-dev 2004-11-24 01:46:40 UTC
- hardened-dev-sources updated
- rsbac-dev-sources updated
Comment 18 Guy Martin (RETIRED) gentoo-dev 2004-11-24 09:38:47 UTC
hppa-(dev-)sources done.
Comment 19 Adam Mondl (RETIRED) gentoo-dev 2004-11-28 10:32:02 UTC
hardened-sources bumped to 2.4.28
Comment 20 Guillaume Destuynder (RETIRED) gentoo-dev 2004-11-28 15:51:11 UTC
rsba-sources bumped to 2.4.28
Comment 21 Tim Yamin (RETIRED) gentoo-dev 2005-01-15 14:36:00 UTC
All kernels fixed, closing bug; notifications are being migrated away from GLSAs for kernels, more news coming soon so stay tuned :-]