Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92264 - Kernel: ELF core dump privilege elevation (CAN-2005-1263)
Summary: Kernel: ELF core dump privilege elevation (CAN-2005-1263)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Security
URL: http://isec.pl/vulnerabilities/isec-0...
Whiteboard: [linux < 2.6.11.9]
Keywords:
: 92133 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-11 09:28 UTC by Robert Paskowitz (RETIRED)
Modified: 2009-06-29 21:37 UTC (History)
0 users

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


Attachments
Patch from 2.6.11.9 (patch-2.6.11-Elf-core-dump-fix,1.07 KB, patch)
2005-05-12 18:55 UTC, Micheal Marineau (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Paskowitz (RETIRED) gentoo-dev 2005-05-11 09:28:38 UTC
From $URL:

Issue:
======

A locally exploitable flaw has been found in the Linux ELF binary format
loader's core dump  function  that  allows  local  users  to  gain  root
privileges and also execute arbitrary code at kernel privilege level.

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

No patches at this time.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-05-11 10:05:07 UTC
*** Bug 92133 has been marked as a duplicate of this bug. ***
Comment 2 solar (RETIRED) gentoo-dev 2005-05-11 11:01:10 UTC
This might work as a temp work around.

root@* # echo > /proc/sys/kernel/core_pattern
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2005-05-12 00:03:01 UTC
I think 2.6.11.1 is not susceptible.

From the vulnerability explanation at isec.pl, two features are necessary.  The first (len variable is signed and the subtraction isn't protected) is extant in 2.6.11.1 (it's in fill_psinfo() rather than elf_core_dump()), however the second is not which means the first can't be triggered by the approach described.  The create_elf_tables() function always sets both current->mm->arg_end and current->mm->env_start, before reaching the 'return 0'.
Comment 4 Micheal Marineau (RETIRED) gentoo-dev 2005-05-12 18:52:30 UTC
A fix was released in 2.6.11.9. I don't know if there is more that can be done, but this ought to at least close up the hole.

http://linux-release.bkbits.net:8080/linux-2.6.11/gnupatch@4282874aplNy__uGtYtIace0iYmemQ
Comment 5 Micheal Marineau (RETIRED) gentoo-dev 2005-05-12 18:55:39 UTC
Created attachment 58788 [details, diff]
Patch from 2.6.11.9
Comment 6 solar (RETIRED) gentoo-dev 2005-05-15 09:22:36 UTC
>=2.4.30-pre1 do not appear to be effected on x86.
Comment 7 Micheal Marineau (RETIRED) gentoo-dev 2005-05-15 12:01:44 UTC
ck-sources fixed
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-05-17 04:04:43 UTC
Fixed in genpatches-2.6-11.12
Fixed in gentoo-sources-2.6.11-r9
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2005-11-26 03:19:14 UTC
All fixed, closing.