CVE-2012-2123
What it is
The cap_bprm_set_creds function in security/commoncap.c in the Linux kernel before 3.3.3 does not properly handle the use of file system capabilities (aka fcaps) for implementing a privileged executable file, which allows local users to bypass intended personality restrictions via a crafted application, as demonstrated by an attack that uses a parent process to disable ASLR.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 0.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.4% in the next 30 days (EPSS).
- Severity: 7.2 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.4% · EPSS, next 30 days
- Weakness
- CWE-264
- Record status
- Modified
Affected
- Linux Kernel < 3.0.29
- Linux Kernel < 3.2.16
- Linux Kernel < 3.3.3
Attack profile CVSS 2.0 · 7.2
- Attack vector
- Local
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
Raw vector
AV:L/AC:L/Au:N/C:C/I:C/A:C
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2012-2123.md and follow it. Check whether this project is affected by CVE-2012-2123. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.3.3
- https://github.com/torvalds/linux/commit/d52fc5dde171f030170a6cb78034d166b13c9445
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.3.3
- https://github.com/torvalds/linux/commit/d52fc5dde171f030170a6cb78034d166b13c9445
References
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=d52fc5dde171f030170a6cb78034d166b13c9445
- http://rhn.redhat.com/errata/RHSA-2012-0670.html
- http://rhn.redhat.com/errata/RHSA-2012-0743.html
- http://www.debian.org/security/2012/dsa-2469
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.3.3
- http://www.openwall.com/lists/oss-security/2012/04/20/6
- http://www.securityfocus.com/bid/53166
- http://www.securitytracker.com/id?1027072
- https://bugzilla.redhat.com/show_bug.cgi?id=806722
- https://exchange.xforce.ibmcloud.com/vulnerabilities/75043
- https://github.com/torvalds/linux/commit/d52fc5dde171f030170a6cb78034d166b13c9445
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=d52fc5dde171f030170a6cb78034d166b13c9445
- http://rhn.redhat.com/errata/RHSA-2012-0670.html
- http://rhn.redhat.com/errata/RHSA-2012-0743.html
- http://www.debian.org/security/2012/dsa-2469
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.3.3
- http://www.openwall.com/lists/oss-security/2012/04/20/6
- http://www.securityfocus.com/bid/53166
- http://www.securitytracker.com/id?1027072
- https://bugzilla.redhat.com/show_bug.cgi?id=806722
- https://exchange.xforce.ibmcloud.com/vulnerabilities/75043
- https://github.com/torvalds/linux/commit/d52fc5dde171f030170a6cb78034d166b13c9445