Description
The capabilities implementation in the Linux kernel before 3.14.8 does not properly consider that namespaces are inapplicable to inodes, which allows local users to bypass intended chmod restrictions by first creating a user namespace, as demonstrated by setting the setgid bit on a file with group ownership of root.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 3.14.7-1 | — |
| Debian 13 | linux | 3.14.7-1 | — |
| Debian 12 | linux | 3.14.7-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | linux | 3.13.0-35.62 | USN-2337-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | dtrace-modules-3.8.13-55.el6uek | 0.4.3-4.el6 | ELSA-2014-3096 |
| Oracle Linux 7 | dtrace-modules-3.8.13-55.el7uek | 0.4.3-4.el7 | ELSA-2014-3096 |
| Oracle Linux 7 | kernel-uek +5 | 3.8.13-55.el7uek | ELSA-2014-3096 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Linux Kernel 3.13 - SGID Privilege Escalation EDB-33824 · local · Jun 21, 2014 · verified
GitHub 1 repository
-
vnik5287/cve-2014-4014-privesc ★ 2 · Jul 23, 2019
cve-2014-4014
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- USN-2337-1 linux vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- ELSA-2014-3096 Important: Unbreakable Enterprise kernel security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Dec 4, 2014
References
- 67988 vdb-entry
- https://source.android.com/security/bulletin/2016-12-01.html
- 1030394 vdb-entry
- 33824 exploit
- http://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.8
- https://github.com/torvalds/linux/commit/23adbe12ef7d3d4195e80800ab36b37bee28cd03
- 59220 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1107966
- [oss-security] 20140610 CVE-2014-4014: Linux kernel user namespace bug mailing-list
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=23adbe12ef7d3d4195e80800ab36b37bee28cd03