CVE-2018-13405 in Canonical Ubuntu Linux and 26 more products
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.
Affects 27 products from 7 vendors. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 14.04 16.04 18.04 |
| Debian | Debian Linux | 8.0 9.0 |
| F5 | Big-Ip Access Policy Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Application Security Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Analytics | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Edge Gateway | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Global Traffic Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Link Controller | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Local Traffic Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Webaccelerator | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Advanced Firewall Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Policy Enforcement Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Application Acceleration Manager | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Domain Name System | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| F5 | Big-Ip Fraud Protection Service | 15.1.0 16.0.0 ≥ 13.0.0, < 13.1.3.5 ≥ 14.0.0, < 14.1.3.1 ≥ 15.0.0, < 15.0.1.4 |
| Fedoraproject | Fedora | 34 35 |
| Linux | Linux Kernel | ≤ 3.16 |
| Redhat | Enterprise Linux Eus | 7.4 7.5 |
| Redhat | Enterprise Linux Server Aus | 6.6 7.2 7.3 |
| Redhat | Virtualization | 4.0 |
| Redhat | Mrg Realtime | 2.0 |
| Redhat | Enterprise Linux Aus | 7.4 |
| Redhat | Enterprise Linux Server Tus | 7.2 7.3 7.4 |
| Redhat | Enterprise Linux For Real Time | 7 |
| Redhat | Enterprise Linux Desktop | 6.0 7.0 |
| Redhat | Enterprise Linux Server | 6.0 7.0 |
| Redhat | Enterprise Linux Workstation | 6.0 7.0 |
| Siemens | — | — |
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Record details
| CVE ID | CVE-2018-13405 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-158107-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2018-07-06 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict file permission policies and monitor for unusual file creation and modification activities. Ensure that directories with SGID permissions are not writable by non-group members.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.