Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111936 - Kernel: sysctl unregistration oops (CVE-2005-2709)
Summary: Kernel: sysctl unregistration oops (CVE-2005-2709)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Security
URL:
Whiteboard: [linux < 2.6.14.1]
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 22:31 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2009-05-03 15:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-11-08 22:31:49 UTC
Not sure we got this one fixed. Filing restricted for now (private mail). 
 
Al Viro discovered an exploitable hole in sysctl unregistration affecting 2.4   
and 2.6 kernels.  
  
"You could open the /proc/sys/net/ipv4/conf/<if>/<whatever> file, then wait  
for   
interface to go away, try to grab as much memory as possible in hope to hit  
the   
(kfreed) ctl_table.  Then fill it with pointers to your function. Then do read   
from file you've opened and if you are lucky, you'll get it called as   
->proc_handler() in kernel mode."  
  
So this is at least an Oops and possibly more.  It does depend on an interface   
going away though, so less of a security risk than it would otherwise be.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-11-23 01:50:31 UTC
in Ubuntu's USN-219-1 :

Al Viro discovered a race condition in the /proc file handler of
network devices. A local attacker could exploit this by opening any
file in /proc/sys/net/ipv4/conf/<interface>/ and waiting until that
interface was shut down. Under certain circumstances this could lead
to a kernel crash or even arbitrary code execution with full kernel
privileges. (CVE-2005-2709)
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2006-01-02 15:24:46 UTC
Adding maintiners:

mips-sources-2.4.13: Kumba
rsbac-sources: kang
sh-sources: sh-herd
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2006-04-14 15:10:34 UTC
All fixed, closing bug.