← Vulnerability feed

Vulnerability record · CVE-2018-13405 · published 6 July 2018

CVE-2018-13405: Linux kernel improper privilege management vulnerability

Linux · Linux Kernel

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.

7.8 CVSS 3.1 High EPSS 1.0% · top 37.0% CWE-269 · Improper privilege management
7.8CVSS 3.1 base score, v2 4.6
1.0%EPSS exploitation probability, 30 days
NoNot in CISA KEV
27Affected product versions listed by NVD
56References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

27 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 PatchVendor Advisory
http://openwall.com/lists/oss-security/2018/07/13/2 Mailing ListPatchThird Party Advisory
http://www.securityfocus.com/bid/106503 Broken Link
https://access.redhat.com/errata/RHSA-2018:2948 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3083 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3096 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0717 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2476 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2566 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2696 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2730 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:4159 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:4164 Third Party Advisory
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0b3369840cd61c23e2b9241093737b4c395cb406 Mailing ListPatchVendor Advisory
https://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 PatchThird Party Advisory
https://lists.debian.org/debian-lts-announce/2018/08/msg00014.html Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HRBNBX73SAFKQWBOX76SLMW
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKKIAUMR5FAYLZ7HLEPOXM
https://support.f5.com/csp/article/K00854051 Third Party Advisory
https://twitter.com/grsecurity/status/1015082951204327425 Third Party Advisory
https://usn.ubuntu.com/3752-1/ Third Party Advisory
https://usn.ubuntu.com/3752-2/ Third Party Advisory
https://usn.ubuntu.com/3752-3/ Third Party Advisory
https://usn.ubuntu.com/3753-1/ Third Party Advisory
https://usn.ubuntu.com/3753-2/ Third Party Advisory
https://usn.ubuntu.com/3754-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4266 Third Party Advisory
https://www.exploit-db.com/exploits/45033/ ExploitThird Party AdvisoryVDB Entry
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 PatchVendor Advisory
http://openwall.com/lists/oss-security/2018/07/13/2 Mailing ListPatchThird Party Advisory
http://www.securityfocus.com/bid/106503 Broken Link
https://access.redhat.com/errata/RHSA-2018:2948 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3083 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:3096 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0717 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2476 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2566 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2696 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2730 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:4159 Third Party Advisory

Track CVE-2018-13405 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed10.0CVE-2015-3306ProFTPD mod_copy arbitrary file read and writeThe mod_copy module in ProFTPD 1.3.5 fails to restrict the SITE CPFR and SITE CPTO commands, letting remote attackers copy arbitrary files on the ser…KEVEPSS 99%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed

Source: NIST National Vulnerability Database (record CVE-2018-13405), CISA KEV, FIRST EPSS (scores of 2026-10-13). This page is refreshed as NVD updates the record.