CVE-2018-13405
Reported by mitre · Published July 6, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 4.14.59-68.43.amzn2 |
| linux-aws | Ubuntu:16.04:LTS | 4.4.0-1066.76 |
| linux | Ubuntu:18.04:LTS | 4.15.0-33.36 |
| big-ip_advanced_firewall_manager | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
| big-ip_policy_enforcement_manager | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
| linux-raspi2 | Ubuntu:18.04:LTS | 4.15.0-1021.23 |
| linux-gcp | Ubuntu:18.04:LTS | 4.15.0-1018.19 |
| linux_kernel | linux | 3.16 |
| big-ip_edge_gateway | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
| big-ip_application_acceleration_manager | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
| big-ip_fraud_protection_service | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
| big-ip_analytics | f5 | 15.0.1.4, 14.1.3.1, 13.1.3.5 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Jul 6, 2018 CVE Published
- Jul 16, 2018 PoC Published (6 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (32 in total, the first dated here)
- Mar 6, 2026 Security Advisory (36 in total, the first dated here)
- Sep 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-13405
vulnetix vdb fixes CVE-2018-13405
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-13405/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3752-2 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:3083 vendor-advisoryx_refsource_REDHAT
- USN-3752-3 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- USN-3753-2 vendor-advisoryx_refsource_UBUNTU
- USN-3754-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- RHSA-2018:2948 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- [debian-lts-announce] 20180815 [SECURITY] [DLA 1466-1] linux-4.9 security update mailing-listx_refsource_MLIST
- 45033 exploitx_refsource_EXPLOIT-DB
- DSA-4266 vendor-advisoryx_refsource_DEBIAN
- 106503 vdb-entryx_refsource_BID
- USN-3752-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:3096 vendor-advisoryx_refsource_REDHAT
- USN-3753-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- RHSA-2019:0717 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- RHSA-2019:2476 vendor-advisoryx_refsource_REDHAT
…and 8 more