Input validation error in Linux kernel - CVE-2013-2094
Published: May 14, 2013 / Updated: September 16, 2022
Vulnerability identifier: #VU33902
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-2094
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
The vulnerability is being exploited in the wild
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows local users to gain privileges via a crafted perf_event_open system call.
Affected software
Linux kernel
Amazon Linux AMI
SUSE Linux
Slackware Linux
openvpn (Alpine package)
linux-vserver (Alpine package)
Amazon Linux AMI
SUSE Linux
Slackware Linux
openvpn (Alpine package)
linux-vserver (Alpine package)
How to mitigate CVE-2013-2094
Install update from vendor's website.
openvpn (Alpine package) - update to 2.1.4-r2
Links to Public Exploits and PoC-codes
- Exploit #3713 - Linux Kernel 3.2.0-23 / 3.5.0-23 (Ubuntu 12.04/12.04.1/12.04.2 x64) - 'perf_swevent_init' Privilege Escalation (3) (August 4, 2020)
- Exploit #3714 - Linux Kernel < 3.8.9 (x86-64) - 'perf_swevent_init' Privilege Escalation (2) (August 4, 2020)
- Exploit #3715 - Linux Kernel 2.6.32 < 3.x.x (CentOS) - 'PERF_EVENTS' Privilege Escalation (1) (August 4, 2020)
External References
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8176cced706b5e5d15887584150764894e94e02f
- http://lists.centos.org/pipermail/centos-announce/2013-May/019729.html
- http://lists.centos.org/pipermail/centos-announce/2013-May/019733.html
- http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00008.html
- http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00018.html
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00005.html
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00009.html
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00017.html
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03652.html
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03976.html
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/04302.html
- http://news.ycombinator.com/item?id=5703758
- http://packetstormsecurity.com/files/121616/semtex.c
- http://rhn.redhat.com/errata/RHSA-2013-0830.html
- http://twitter.com/djrbliss/statuses/334301992648331267
- http://www.exploit-db.com/exploits/33589
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.8.9
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:176
- http://www.openwall.com/lists/oss-security/2013/05/14/6
- http://www.osvdb.org/93361
- http://www.reddit.com/r/netsec/comments/1eb9iw
- http://www.ubuntu.com/usn/USN-1825-1
- http://www.ubuntu.com/usn/USN-1826-1
- http://www.ubuntu.com/usn/USN-1827-1
- http://www.ubuntu.com/usn/USN-1828-1
- http://www.ubuntu.com/usn/USN-1836-1
- http://www.ubuntu.com/usn/USN-1838-1
- https://bugzilla.redhat.com/show_bug.cgi?id=962792
- https://github.com/torvalds/linux/commit/8176cced706b5e5d15887584150764894e94e02f