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.
CVE-2018-13405
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-13. NVD baseline CVSS 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EPSS
- 59.2%
- KEV
- Not listed
Published
July 6, 2018
Last Modified
November 21, 2024
References (56)
- cve@mitrehttp://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- cve@mitrehttp://openwall.com/lists/oss-security/2018/07/13/2
- cve@mitrehttp://www.securityfocus.com/bid/106503
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:2948
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:3083
- cve@mitrehttps://access.redhat.com/errata/RHSA-2018:3096
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:0717
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:2476
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:2566
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:2696
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:2730
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:4159
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:4164
- cve@mitrehttps://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0b3369840cd61c23e2b9241093737b4c395cb406
- cve@mitrehttps://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
Vendor Advisories for CVE-2018-13405(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(16)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(15)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2018:3083IMPORTANT2018-07-05
RHSA-2018:3083 — Important
- Red HatRHSA-2018:3096IMPORTANT2018-07-05
RHSA-2018:3096 — Important
- Red HatRHSA-2019:0717IMPORTANT2018-07-05
RHSA-2019:0717 — Important
- Red HatRHSA-2019:2476IMPORTANT2018-07-05
RHSA-2019:2476 — Important
- Red HatRHSA-2019:2566IMPORTANT2018-07-05
RHSA-2019:2566 — Important
- Red HatRHSA-2019:2696IMPORTANT2018-07-05
RHSA-2019:2696 — Important
- Red HatRHSA-2019:2730IMPORTANT2018-07-05
RHSA-2019:2730 — Important
- Red HatRHSA-2019:4159IMPORTANT2018-07-05
RHSA-2019:4159 — Important
- Red HatRHSA-2019:4164IMPORTANT2018-07-05
RHSA-2019:4164 — Important
- UbuntuUSN-3752-1MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3752-2MEDIUM
Linux kernel (HWE) vulnerabilities
- UbuntuUSN-3752-3MEDIUM
Linux kernel (Azure, GCP, OEM) vulnerabilities
- UbuntuUSN-3753-1MEDIUM
Linux kernel vulnerabilities
- UbuntuUSN-3753-2MEDIUM
Linux kernel (Xenial HWE) vulnerabilities
- UbuntuUSN-3754-1MEDIUM
Linux kernel vulnerabilities
Data Freshness Timeline
(refreshed 8× in last 7d / 39× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 05:26 UTCOSV refresh
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
Show 59 moreShow fewer
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-15 17:13 UTCOSV refresh
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 05:53 UTCEG score recompute
- 2026-05-28 05:53 UTCVendor advisory
- 2026-05-28 05:53 UTCGHSA enrichment
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Publicly available exploits
(1 reference)Working exploit code is in the public domain (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-45033✓ verifiedFirst seen Jul 16, 2018
Linux (Ubuntu) - Other Users coredumps Can Be Read via setgid Directory and killpriv Bypass
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-269
Frequently asked(5)
What is CVE-2018-13405?
When was CVE-2018-13405 disclosed?
Is CVE-2018-13405 actively exploited?
What is the CVSS score of CVE-2018-13405?
How do I remediate CVE-2018-13405?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2018-13405
Is Your Infrastructure Affected by CVE-2018-13405?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.