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

Filename Description Type Creator Created Size Actions
1110_mempolicy-interleave-mask-node.patch mempolicy-interleave-mask-node.patch (for 2.6.14) patch Kerin Millar 2006-01-10 13:33 0000 1.12 KB Details | Diff
1110_mempolicy-interleave-mask-node.patch mempolicy-interleave-mask-node.patch (revision) patch Kerin Millar 2006-01-10 13:40 0000 1.15 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 117855 depends on: Show dependency tree
Bug 117855 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: 2006-01-05 01:33 0000
Doug Chapman reported an error in "mm/mempolicy.c" when handling policy system
calls, which could be exploited by local attackers to cause a denial of service
via a "set_mempolicy" call with a 0 bitmask.

http://www.frsirt.com/english/advisories/2006/0035

-----------------------

commit 8f493d797bc1fe470377adc9d8775845427e240e
Author: Andi Kleen <ak@suse.de>
Date:   Tue Jan 3 00:07:28 2006 +0100

    [PATCH] Make sure interleave masks have at least one node set

    Otherwise a bad mem policy system call can confuse the interleaving
    code into referencing undefined nodes.

    Originally reported by Doug Chapman

------- Comment #1 From Tim Yamin (RETIRED) 2006-01-05 12:27:50 0000 -------
Patch:

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8f493d797bc1fe470377adc9d8775845427e240e;hp=abe842eb98c45e2b77c5868ef106616ca828a3e4

------- Comment #2 From Tim Yamin (RETIRED) 2006-01-10 10:24:33 0000 -------
CCing maintainers: please either upgrade to 2.6.15 fix with the patch in the
URL. Thanks.

hardened-sources-2.6: hardened herd
mips-sources-2.6.1{3,4}: Kumba
rsbac-sources-2.6: kang
sh-sources-2.6: sh herd
usermode-sources-2.6: dsd
xbox-sources-2.6: gimli

------- Comment #3 From Kerin Millar 2006-01-10 12:12:10 0000 -------
The referenced patch only applies to 2.6.15 (at least, I've confirmed that it
does not apply to 2.6.14). Due attention required in terms of backporting.

------- Comment #4 From Kerin Millar 2006-01-10 13:33:15 0000 -------
Created an attachment (id=76773) [details]
mempolicy-interleave-mask-node.patch (for 2.6.14)

Here's a backport of the patch for 2.6.14 courtesy of plasmaroo. I've had two
users test this just recently and it appears to be valid.

------- Comment #5 From Kerin Millar 2006-01-10 13:40:56 0000 -------
Created an attachment (id=76776) [details]
mempolicy-interleave-mask-node.patch (revision)

Reference the correct bug number this time and changed to a typical "-p1" style
patch.

------- Comment #6 From Kerin Millar 2006-01-12 12:03:21 0000 -------
The aformentioned patch was added to genpatches-2.6.14-9.base (the tarball of
which has now been distributed on the mirrors), see
http://dev.gentoo.org/~dsd/genpatches/releases-2.6.14.htm and
http://dev.gentoo.org/~dsd/genpatches/trunk/2.6.14/.

Also, this is fixed in hardened-sources-2.6.14-r4.

------- Comment #7 From Daniel Drake 2006-01-21 15:39:55 0000 -------
usermode now on 2.6.15

------- Comment #8 From Tim Yamin (RETIRED) 2006-04-15 12:04:11 0000 -------
All fixed now, closing bug.

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