What’s Vulnerable › Vulnerabilities
CVE-2018-13405
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-07-06 · updated 2026-06-17
- Weakness: CWE-269
Description
The inode_init_owner function in fs/inode.c in the Linux kernel through 3.16 allows local users to create files with an unintended group ownership, in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of that group. Here, the non-member can trigger creation of a plain file whose group ownership is that group. The intended behavior was that the non-member can trigger creation of a directory (but not a plain file) whose group ownership is that group. The non-member can escalate privileges by making the plain file executable and SGID.
Affected products
- Canonical Ubuntu Linux: 14.04, 16.04, 18.04
- Debian Linux: 8.0, 9.0
- F5 BIG-IP APM: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- BIG-IP: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Analytics: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Networks, Inc. BIG-IP (AAM): from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- BIG-IP ASM: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 BIG-IP DNS: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Edge Gateway: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Fraud Protection Service: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Global Traffic Manager: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Link Controller: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 BIG-IP (LTM): from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Networks, Inc. BIG-IP (PEM): from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- F5 Big-Ip Webaccelerator: from 13.0.0 before 13.1.3.5; from 14.0.0 before 14.1.3.1; from 15.0.0 before 15.0.1.4; 15.1.0, 16.0.0 — fixed in 13.1.3.5, 14.1.3.1, 15.0.1.4
- Fedoraproject Fedora: 34, 35
- Linux kernel: through 3.16
- RedHat Enterprise Linux Aus: 7.4
- RedHat Enterprise Linux Desktop: 6.0, 7.0
- RedHat Enterprise Linux Eus: 7.4, 7.5
- RedHat Enterprise Linux For Real Time: 7
- RedHat Enterprise Linux Server: 6.0, 7.0
- RedHat Enterprise Linux Server Aus: 6.6, 7.2, 7.3
- RedHat Enterprise Linux Server Tus: 7.2, 7.3, 7.4
- RedHat Enterprise Linux Workstation: 6.0, 7.0
- RedHat Mrg Realtime: 2.0
- RedHat Virtualization: 4.0
How to fix
Upgrade to a fixed version: F5 BIG-IP APM 13.1.3.5, 14.1.3.1, 15.0.1.4; BIG-IP 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Big-Ip Analytics 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Networks, Inc. BIG-IP (AAM) 13.1.3.5, 14.1.3.1, 15.0.1.4; BIG-IP ASM 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 BIG-IP DNS 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Big-Ip Edge Gateway 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Big-Ip Fraud Protection Service 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Big-Ip Global Traffic Manager 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Big-Ip Link Controller 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 BIG-IP (LTM) 13.1.3.5, 14.1.3.1, 15.0.1.4; F5 Networks, Inc. BIG-IP (PEM) 13.1.3.5, 14.1.3.1, 15.0.1.4. Check the vendor advisory for mitigations.
References
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- http://openwall.com/lists/oss-security/2018/07/13/2
- http://www.securityfocus.com/bid/106503
- https://access.redhat.com/errata/RHSA-2018:2948
- https://access.redhat.com/errata/RHSA-2018:3083
- https://access.redhat.com/errata/RHSA-2018:3096
- https://access.redhat.com/errata/RHSA-2019:0717
- https://access.redhat.com/errata/RHSA-2019:2476
- https://access.redhat.com/errata/RHSA-2019:2566
- https://access.redhat.com/errata/RHSA-2019:2696
- https://access.redhat.com/errata/RHSA-2019:2730
- https://access.redhat.com/errata/RHSA-2019:4159
Get alerted when CVE-2018-13405 or the next vulnerability affects your stack