Description
The Linux kernel 2.6.0 through 2.6.30.4, and 2.4.4 through 2.4.37.4, does not initialize all function pointers for socket operations in proto_ops structures, which allows local users to trigger a NULL pointer dereference and gain privileges by using mmap to map page zero, placing arbitrary code on this page, and then invoking an unavailable operation, as demonstrated by the sendpage operation (sock_sendpage function) on a PF_PPPOX socket.
CVSS breakdown
CVSS 3.1
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected products
- debian / debian_linux4.0 – 4.0
- Linux / Linux kernel2.4.4 – 2.4.37.5
- RedHat / enterprise_linux_desktop5.0 – 5.0
- RedHat / enterprise_linux_desktop4.0 – 4.0
- RedHat / enterprise_linux_eus5.3 – 5.3
- RedHat / enterprise_linux_eus4.8 – 4.8
- RedHat / enterprise_linux_server4.0 – 4.0
- RedHat / enterprise_linux_server5.0 – 5.0
- RedHat / enterprise_linux_server_aus5.3 – 5.3
- RedHat / enterprise_linux_workstation4.0 – 4.0
- RedHat / enterprise_linux_workstation5.0 – 5.0
- SUSE / linux_enterprise_real_time10 – 10
Exploits & proofs of concept
- exploit-dbLinux Kernel 2.4.4 < 2.4.37.4 / 2.6.0 < 2.6.30.4 - 'Sendpage' Local Privilege Escalation (Metasploit)by Metasploit
- exploit-dbLinux Kernel 2.4/2.6 - 'sock_sendpage()' Local Privilege Escalation (3)by Ramon de C Valle
- exploit-dbLinux Kernel 2.4/2.6 (Fedora 11) - 'sock_sendpage()' Local Privilege Escalation (2)by Ramon de C Valle
- exploit-dbLinux Kernel 2.4.x/2.6.x (CentOS 4.8/5.3 / RHEL 4.8/5.3 / SuSE 10 SP2/11 / Ubuntu 8.10) (PPC) - 'sock_sendpage()' Local Privilege Escalationby Ramon de C Valle
- exploit-dbLinux Kernel 2.4/2.6 (RedHat Linux 9 / Fedora Core 4 < 11 / Whitebox 4 / CentOS 4) - 'sock_sendpage()' Ring0 Privilege Escalation (5)by INetCop Security
- exploit-dbLinux Kernel 2.x (Android) - 'sock_sendpage()' Local Privilege Escalationby Zinx
- exploit-dbLinux Kernel 2.x - 'sock_sendpage()' Local Privilege Escalation (4)by Przemyslaw Frasunek
- exploit-dbLinux Kernel 2.x (RedHat) - 'sock_sendpage()' Ring0 Privilege Escalation (1)by spender
References
- MISChttp://www.redhat.com/support/errata/RHSA-2009-1233.html
- VENDOR_ADVISORYhttp://secunia.com/advisories/36278
- VENDOR_ADVISORYhttp://www.debian.org/security/2009/dsa-1865
- MISChttp://rhn.redhat.com/errata/RHSA-2009-1223.html
- MISChttp://www.securityfocus.com/archive/1/512019/100/0/threaded
- MISChttp://www.kernel.org/pub/linux/kernel/v2.4/ChangeLog-2.4.37.5
- VENDOR_ADVISORYhttp://secunia.com/advisories/37298
- VENDOR_ADVISORYhttp://wiki.rpath.com/wiki/Advisories:rPSA-2009-0121
- VENDOR_ADVISORYhttp://secunia.com/advisories/36430
- VENDOR_ADVISORYhttp://secunia.com/advisories/37471
- MISChttp://rhn.redhat.com/errata/RHSA-2009-1222.html
- MISChttp://archives.neohapsis.com/archives/fulldisclosure/2009-08/0174.html
- MISChttps://bugzilla.redhat.com/show_bug.cgi?id=516949
- MISChttps://issues.rpath.com/browse/RPL-3103
- VENDOR_ADVISORYhttp://www.vmware.com/security/advisories/VMSA-2009-0016.html
- EXPLOIThttp://www.exploit-db.com/exploits/19933
- VENDOR_ADVISORYhttp://www.vupen.com/english/advisories/2009/2272
- MAILING_LISThttp://lists.opensuse.org/opensuse-security-announce/2009-09/msg00001.html
- MISChttp://www.securityfocus.com/archive/1/505751/100/0/threaded
- MISChttp://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=e694958388c50148389b0e9b9e9e8945cf0f1b98
- VENDOR_ADVISORYhttp://secunia.com/advisories/36289
- MISChttp://www.securityfocus.com/archive/1/507985/100/0/threaded
- VENDOR_ADVISORYhttp://secunia.com/advisories/36327
- MISChttp://support.avaya.com/css/P8/documents/100067254
- MISChttp://grsecurity.net/~spender/wunderbar_emporium.tgz
- MISChttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11591
- MISChttp://git.kernel.org/?p=linux/kernel/git/stable/linux-2.4.37.y.git%3Ba=commit%3Bh=c18d0fe535a73b219f960d1af3d0c264555a12e3
- MISChttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11526
- VENDOR_ADVISORYhttp://www.mandriva.com/security/advisories?name=MDVSA-2009:233
- EXPLOIThttp://www.exploit-db.com/exploits/9477
- MISChttp://blog.cr0.org/2009/08/linux-null-pointer-dereference-due-to.html
- MISChttp://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.31-rc6
- MISChttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8657
- MAILING_LISThttp://www.openwall.com/lists/oss-security/2009/08/14/1
- MISChttp://www.securityfocus.com/bid/36038
- MISChttp://www.securityfocus.com/archive/1/505912/100/0/threaded
- MISChttp://zenthought.org/content/file/android-root-2009-08-16-source
- VENDOR_ADVISORYhttp://www.vupen.com/english/advisories/2009/3316
- MISChttp://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.30.5
Updated 24m ago · 8 sources