CVE-2018-13405

Exp

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.

Published: 2018-07-06 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-13405 is rated High Exploit Risk (67.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.02%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2018-13405

EDB-ID Source Kind Published Link
45033 exploit_db edb 2018-07-16 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2018-13405

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.14% 1.02% +0.88%
2 2026-06-08 0.15% 0.14% -0.01%
3 2026-05-12 0.15%

Full EPSS history (21 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-13405

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
4.6 2.0 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:L)
Requires local access to the target system.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
3.9 6.4 [email protected]

Weakness enumeration for CVE-2018-13405

OS Trackers for CVE-2018-13405

vendor priority summary link
debian not yet assigned CVE-2018-13405 not yet assigned priority: Debian including 1 source packages (linux), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2018-13405
redhat high https://access.redhat.com/security/cve/CVE-2018-13405
suse medium CVE-2018-13405 severity moderate: SUSE including 535 source package names (amazon/suse-sles-15-sp1-chost-byos-v20210304-hvm-ssd-x86_64, amazon/suse-sles-15-sp1-chost-byos-v20220127-hvm-ssd-x86_64, …), 907 product×package rows across 112 product lines (HPE Helion OpenStack 8, Image SLES12-SP5-Azure-BYOS, … (112 product lines)): Fixed 712, Known Affected 160, Known Not Affected 35. https://www.suse.com/security/cve/CVE-2018-13405/
ubuntu medium CVE-2018-13405 medium priority: Ubuntu including 77 source packages (linux, linux-aws, …), 644 status rows across 11 suites (artful, bionic, cosmic, disco, focal, jammy, noble, oracular, trusty, upstream, xenial): DNE 413, not-affected 120, released 97, ignored 14. https://ubuntu.com/security/CVE-2018-13405

Affected software / configurations for CVE-2018-13405

Vendor Product Version Raw CPE
linux linux_kernel <= 3.16 cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
debian debian_linux 8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
canonical ubuntu_linux 14.04 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
redhat mrg_realtime 2.0 cpe:2.3:a:redhat:mrg_realtime:2.0:*:*:*:*:*:*:*
redhat virtualization 4.0 cpe:2.3:a:redhat:virtualization:4.0:*:*:*:*:*:*:*
redhat enterprise_linux_aus 7.4 cpe:2.3:o:redhat:enterprise_linux_aus:7.4:*:*:*:*:*:*:*
redhat enterprise_linux_desktop 6.0 cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
redhat enterprise_linux_desktop 7.0 cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
redhat enterprise_linux_eus 7.4 cpe:2.3:o:redhat:enterprise_linux_eus:7.4:*:*:*:*:*:*:*
redhat enterprise_linux_eus 7.5 cpe:2.3:o:redhat:enterprise_linux_eus:7.5:*:*:*:*:*:*:*
redhat enterprise_linux_for_real_time 7 cpe:2.3:o:redhat:enterprise_linux_for_real_time:7:*:*:*:*:*:*:*
redhat enterprise_linux_server 6.0 cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
redhat enterprise_linux_server 7.0 cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
redhat enterprise_linux_server_aus 6.6 cpe:2.3:o:redhat:enterprise_linux_server_aus:6.6:*:*:*:*:*:*:*
redhat enterprise_linux_server_aus 7.2 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.2:*:*:*:*:*:*:*
redhat enterprise_linux_server_aus 7.3 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:*
redhat enterprise_linux_server_tus 7.2 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.2:*:*:*:*:*:*:*
redhat enterprise_linux_server_tus 7.3 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:*
redhat enterprise_linux_server_tus 7.4 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*
redhat enterprise_linux_workstation 6.0 cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
redhat enterprise_linux_workstation 7.0 cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
f5 big-ip_access_policy_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*
f5 big-ip_access_policy_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*
f5 big-ip_access_policy_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*
f5 big-ip_access_policy_manager 15.1.0 cpe:2.3:a:f5:big-ip_access_policy_manager:15.1.0:*:*:*:*:*:*:*
f5 big-ip_access_policy_manager 16.0.0 cpe:2.3:a:f5:big-ip_access_policy_manager:16.0.0:*:*:*:*:*:*:*
f5 big-ip_advanced_firewall_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_advanced_firewall_manager:*:*:*:*:*:*:*:*
f5 big-ip_advanced_firewall_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_advanced_firewall_manager:*:*:*:*:*:*:*:*
f5 big-ip_advanced_firewall_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_advanced_firewall_manager:*:*:*:*:*:*:*:*
f5 big-ip_advanced_firewall_manager 15.1.0 cpe:2.3:a:f5:big-ip_advanced_firewall_manager:15.1.0:*:*:*:*:*:*:*
f5 big-ip_advanced_firewall_manager 16.0.0 cpe:2.3:a:f5:big-ip_advanced_firewall_manager:16.0.0:*:*:*:*:*:*:*
f5 big-ip_analytics >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_analytics:*:*:*:*:*:*:*:*
f5 big-ip_analytics >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_analytics:*:*:*:*:*:*:*:*
f5 big-ip_analytics >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_analytics:*:*:*:*:*:*:*:*
f5 big-ip_analytics 15.1.0 cpe:2.3:a:f5:big-ip_analytics:15.1.0:*:*:*:*:*:*:*
f5 big-ip_analytics 16.0.0 cpe:2.3:a:f5:big-ip_analytics:16.0.0:*:*:*:*:*:*:*
f5 big-ip_application_acceleration_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_application_acceleration_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_acceleration_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_application_acceleration_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_acceleration_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_application_acceleration_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_acceleration_manager 15.1.0 cpe:2.3:a:f5:big-ip_application_acceleration_manager:15.1.0:*:*:*:*:*:*:*
f5 big-ip_application_acceleration_manager 16.0.0 cpe:2.3:a:f5:big-ip_application_acceleration_manager:16.0.0:*:*:*:*:*:*:*
f5 big-ip_application_security_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_application_security_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_security_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_application_security_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_security_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_application_security_manager:*:*:*:*:*:*:*:*
f5 big-ip_application_security_manager 15.1.0 cpe:2.3:a:f5:big-ip_application_security_manager:15.1.0:*:*:*:*:*:*:*
f5 big-ip_application_security_manager 16.0.0 cpe:2.3:a:f5:big-ip_application_security_manager:16.0.0:*:*:*:*:*:*:*
f5 big-ip_domain_name_system >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_domain_name_system:*:*:*:*:*:*:*:*
f5 big-ip_domain_name_system >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_domain_name_system:*:*:*:*:*:*:*:*
f5 big-ip_domain_name_system >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_domain_name_system:*:*:*:*:*:*:*:*
f5 big-ip_domain_name_system 15.1.0 cpe:2.3:a:f5:big-ip_domain_name_system:15.1.0:*:*:*:*:*:*:*
f5 big-ip_domain_name_system 16.0.0 cpe:2.3:a:f5:big-ip_domain_name_system:16.0.0:*:*:*:*:*:*:*
f5 big-ip_edge_gateway >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_edge_gateway:*:*:*:*:*:*:*:*
f5 big-ip_edge_gateway >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_edge_gateway:*:*:*:*:*:*:*:*
f5 big-ip_edge_gateway >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_edge_gateway:*:*:*:*:*:*:*:*
f5 big-ip_edge_gateway 15.1.0 cpe:2.3:a:f5:big-ip_edge_gateway:15.1.0:*:*:*:*:*:*:*
f5 big-ip_edge_gateway 16.0.0 cpe:2.3:a:f5:big-ip_edge_gateway:16.0.0:*:*:*:*:*:*:*
f5 big-ip_fraud_protection_service >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_fraud_protection_service:*:*:*:*:*:*:*:*
f5 big-ip_fraud_protection_service >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_fraud_protection_service:*:*:*:*:*:*:*:*
f5 big-ip_fraud_protection_service >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_fraud_protection_service:*:*:*:*:*:*:*:*
f5 big-ip_fraud_protection_service 15.1.0 cpe:2.3:a:f5:big-ip_fraud_protection_service:15.1.0:*:*:*:*:*:*:*
f5 big-ip_fraud_protection_service 16.0.0 cpe:2.3:a:f5:big-ip_fraud_protection_service:16.0.0:*:*:*:*:*:*:*
f5 big-ip_global_traffic_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_global_traffic_manager:*:*:*:*:*:*:*:*
f5 big-ip_global_traffic_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_global_traffic_manager:*:*:*:*:*:*:*:*
f5 big-ip_global_traffic_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_global_traffic_manager:*:*:*:*:*:*:*:*
f5 big-ip_global_traffic_manager 15.1.0 cpe:2.3:a:f5:big-ip_global_traffic_manager:15.1.0:*:*:*:*:*:*:*
f5 big-ip_global_traffic_manager 16.0.0 cpe:2.3:a:f5:big-ip_global_traffic_manager:16.0.0:*:*:*:*:*:*:*
f5 big-ip_link_controller >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_link_controller:*:*:*:*:*:*:*:*
f5 big-ip_link_controller >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_link_controller:*:*:*:*:*:*:*:*
f5 big-ip_link_controller >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_link_controller:*:*:*:*:*:*:*:*
f5 big-ip_link_controller 15.1.0 cpe:2.3:a:f5:big-ip_link_controller:15.1.0:*:*:*:*:*:*:*
f5 big-ip_link_controller 16.0.0 cpe:2.3:a:f5:big-ip_link_controller:16.0.0:*:*:*:*:*:*:*
f5 big-ip_local_traffic_manager >= 13.0.0, < 13.1.3.5 cpe:2.3:a:f5:big-ip_local_traffic_manager:*:*:*:*:*:*:*:*
f5 big-ip_local_traffic_manager >= 14.0.0, < 14.1.3.1 cpe:2.3:a:f5:big-ip_local_traffic_manager:*:*:*:*:*:*:*:*
f5 big-ip_local_traffic_manager >= 15.0.0, < 15.0.1.4 cpe:2.3:a:f5:big-ip_local_traffic_manager:*:*:*:*:*:*:*:*

References for CVE-2018-13405

URL Tags
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 Patch Vendor Advisory
http://openwall.com/lists/oss-security/2018/07/13/2 Mailing List Patch Third 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 List Patch Vendor Advisory
https://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 Patch Third 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/HRBNBX73SAFKQWBOX76SLMWPTKJPVGEJ/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKKIAUMR5FAYLZ7HLEPOXMKAAE3BYBQ/
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/ Exploit Third Party Advisory VDB Entry
cvelogic Threat Intelligence