CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
Description
CVE-2013-2094 is a privilege escalation vulnerability in the Linux kernel caused by a failure to check all 64 bits of the attr.config value passed from user space, resulting in out-of-bounds access of the perf_swevent_enabled array in sw_perf_event_destroy(). This allows a local unprivileged user to gain root access. With an EPSS score of 59.35% (98.21st percentile), this Linux kernel vulnerability remains highly exploitable. CISA added CVE-2013-2094 to the KEV catalog on September 15, 2022.
KEV Information
CVSS Score
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CalculatorCWEs
Affected Products
| Vendor | Product | Version |
|---|---|---|
| linux | linux kernel | < 3.0.75; >= 3.1, < 3.2.45; >= 3.3, < 3.4.42; >= 3.5, < 3.8.9 |
References
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=8176cced706b5e5d15887584150764894e94e02f(Not Applicable)
- http://lists.centos.org/pipermail/centos-announce/2013-May/019729.html(Third Party Advisory, VDB Entry)
- http://lists.centos.org/pipermail/centos-announce/2013-May/019733.html(Third Party Advisory, VDB Entry)
- http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00008.html(Third Party Advisory, VDB Entry)
- http://lists.opensuse.org/opensuse-security-announce/2013-05/msg00018.html(Third Party Advisory, VDB Entry)
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00005.html(Third Party Advisory, VDB Entry)
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00009.html(Third Party Advisory, VDB Entry)
- http://lists.opensuse.org/opensuse-security-announce/2013-06/msg00017.html(Third Party Advisory, VDB Entry)
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03652.html(Third Party Advisory, VDB Entry)
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/03976.html(Third Party Advisory, VDB Entry)
- http://lkml.indiana.edu/hypermail/linux/kernel/1304.1/04302.html(Third Party Advisory)
- http://news.ycombinator.com/item?id=5703758(Third Party Advisory)
- http://packetstormsecurity.com/files/121616/semtex.c(Exploit, Third Party Advisory, VDB Entry)
- http://rhn.redhat.com/errata/RHSA-2013-0830.html(Third Party Advisory)
- http://twitter.com/djrbliss/statuses/334301992648331267(Patch)
- http://www.exploit-db.com/exploits/33589(Third Party Advisory, VDB Entry)
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.8.9(Not Applicable)
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:176(Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2013/05/14/6(Mailing List, Third Party Advisory)
- http://www.osvdb.org/93361(Broken Link)
- http://www.reddit.com/r/netsec/comments/1eb9iw(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1825-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1826-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1827-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1828-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1836-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-1838-1(Third Party Advisory)
- https://bugzilla.redhat.com/show_bug.cgi?id=962792(Issue Tracking)
- https://github.com/torvalds/linux/commit/8176cced706b5e5d15887584150764894e94e02f(Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2013-2094(US Government Resource)
Weakness Type
CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
CVE-2013-2094 exploits an out-of-bounds array access in the Linux kernel's performance monitoring subsystem. The kernel fails to validate all 64 bits of user-supplied input before using it as an array index, allowing access to memory locations outside the intended array boundaries.
Learn more: CWE-119 — Improper Restriction of Operations within the Bounds of a Memory Buffer
Impact Analysis
CVE-2013-2094 is a critical local privilege escalation vulnerability in the Linux kernel's perf subsystem that allows any local user to gain root access with low complexity. The out-of-bounds array access provides a reliable write primitive that can be used to overwrite kernel data structures. Confidentiality, integrity, and availability are all critically impacted as root access grants complete control over the system. The EPSS score of 59.35% reflects the high reliability and widespread availability of exploits for this vulnerability, making it one of the most commonly used Linux kernel privilege escalation flaws.
Exploit Maturity
CISA added CVE-2013-2094 to the KEV catalog on September 15, 2022, confirming continued active exploitation. The EPSS score of 59.35% (98.21st percentile) indicates very high exploitation probability. Reliable public exploits are widely available and have been incorporated into penetration testing frameworks and malware. The vulnerability's simplicity and reliability make it a preferred choice for privilege escalation on vulnerable Linux systems. The ransomware association is classified as unknown.
Remediation
- Update the Linux kernel: Apply the patch (commit 8176cced706b) that adds proper 64-bit validation of the attr.config parameter in the perf subsystem.
- Restrict perf access: Set
kernel.perf_event_paranoid=2or higher to restrict perf subsystem access to root only on systems where performance monitoring is not needed by unprivileged users. - Retire affected systems: Replace systems running end-of-life kernel versions that cannot be updated.
- Monitor for exploitation: Watch for unusual perf_event_open system calls and unexpected privilege escalation activity.
- Implement mandatory access controls: Use SELinux or AppArmor to restrict which processes can access the perf subsystem.
Technical Details
CVE-2013-2094 targets the Linux kernel's performance event subsystem (perf). The vulnerability exists in the sw_perf_event_destroy() function, which accesses the perf_swevent_enabled array using an index derived from user-supplied attr.config data. The kernel fails to validate all 64 bits of this value, only checking the lower 32 bits. On 64-bit systems, an attacker can supply a carefully crafted 64-bit value where the lower 32 bits pass the validation check but the full 64-bit value produces an out-of-bounds array index. This out-of-bounds access provides a write-what-where primitive: the attacker can decrement an arbitrary kernel memory location. By targeting specific kernel function pointers or data structures, the attacker can redirect kernel execution to user-controlled code and gain root privileges.
Frequently Asked Questions
Is CVE-2013-2094 being actively exploited?
Yes, CVE-2013-2094 continues to be exploited. CISA added it to the KEV catalog in September 2022. The EPSS score of 59.35% confirms very high exploitation probability with widely available public exploits.
What products are affected by CVE-2013-2094?
CVE-2013-2094 affects the Linux kernel on 64-bit systems with the perf subsystem enabled, which includes most Linux distributions.
How do I fix CVE-2013-2094?
Update the Linux kernel and restrict perf access by setting kernel.perf_event_paranoid=2 on systems where unprivileged performance monitoring is not required.
How severe is CVE-2013-2094?
CVE-2013-2094 has an EPSS score of 59.35% (98.21st percentile). It provides reliable local root privilege escalation through an out-of-bounds kernel memory access.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.