cve.bz

CVE-2018-13405 Improper Privilege Management

7.8 highExploitEPSS 1.0%Fix available

High (7.8). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-269 Improper Privilege Management
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-13405 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-13405?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-13405?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-13405 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelthrough 3.16
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
fedoraproject:fedora34
fedoraproject:fedora35
redhat:mrg_realtime2.0
redhat:virtualization4.0
redhat:enterprise_linux_aus7.4
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus7.4
redhat:enterprise_linux_eus7.5
redhat:enterprise_linux_for_real_time7
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus6.6
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0
f5:big-ip_access_policy_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_access_policy_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_access_policy_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_access_policy_manager15.1.0
f5:big-ip_access_policy_manager16.0.0
f5:big-ip_advanced_firewall_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_advanced_firewall_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_advanced_firewall_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_advanced_firewall_manager15.1.0
f5:big-ip_advanced_firewall_manager16.0.0
f5:big-ip_analyticsfrom 13.0.0 before 13.1.3.5
f5:big-ip_analyticsfrom 14.0.0 before 14.1.3.1
f5:big-ip_analyticsfrom 15.0.0 before 15.0.1.4
f5:big-ip_analytics15.1.0
f5:big-ip_analytics16.0.0
f5:big-ip_application_acceleration_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_application_acceleration_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_application_acceleration_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_application_acceleration_manager15.1.0
f5:big-ip_application_acceleration_manager16.0.0
f5:big-ip_application_security_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_application_security_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_application_security_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_application_security_manager15.1.0
f5:big-ip_application_security_manager16.0.0
f5:big-ip_domain_name_systemfrom 13.0.0 before 13.1.3.5
f5:big-ip_domain_name_systemfrom 14.0.0 before 14.1.3.1
f5:big-ip_domain_name_systemfrom 15.0.0 before 15.0.1.4
f5:big-ip_domain_name_system15.1.0
f5:big-ip_domain_name_system16.0.0
f5:big-ip_edge_gatewayfrom 13.0.0 before 13.1.3.5
f5:big-ip_edge_gatewayfrom 14.0.0 before 14.1.3.1
f5:big-ip_edge_gatewayfrom 15.0.0 before 15.0.1.4
f5:big-ip_edge_gateway15.1.0
f5:big-ip_edge_gateway16.0.0
f5:big-ip_fraud_protection_servicefrom 13.0.0 before 13.1.3.5
f5:big-ip_fraud_protection_servicefrom 14.0.0 before 14.1.3.1
f5:big-ip_fraud_protection_servicefrom 15.0.0 before 15.0.1.4
f5:big-ip_fraud_protection_service15.1.0
f5:big-ip_fraud_protection_service16.0.0
f5:big-ip_global_traffic_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_global_traffic_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_global_traffic_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_global_traffic_manager15.1.0
f5:big-ip_global_traffic_manager16.0.0
f5:big-ip_link_controllerfrom 13.0.0 before 13.1.3.5
f5:big-ip_link_controllerfrom 14.0.0 before 14.1.3.1
f5:big-ip_link_controllerfrom 15.0.0 before 15.0.1.4
f5:big-ip_link_controller15.1.0
f5:big-ip_link_controller16.0.0
f5:big-ip_local_traffic_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_local_traffic_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_local_traffic_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_local_traffic_manager15.1.0
f5:big-ip_local_traffic_manager16.0.0
f5:big-ip_policy_enforcement_managerfrom 13.0.0 before 13.1.3.5
f5:big-ip_policy_enforcement_managerfrom 14.0.0 before 14.1.3.1
f5:big-ip_policy_enforcement_managerfrom 15.0.0 before 15.0.1.4
f5:big-ip_policy_enforcement_manager15.1.0
f5:big-ip_policy_enforcement_manager16.0.0
f5:big-ip_webacceleratorfrom 13.0.0 before 13.1.3.5
f5:big-ip_webacceleratorfrom 14.0.0 before 14.1.3.1
f5:big-ip_webacceleratorfrom 15.0.0 before 15.0.1.4
f5:big-ip_webaccelerator15.1.0
f5:big-ip_webaccelerator16.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8linux3.16.59-1DLA-1529-1
Debian8linux-4.94.9.110-3+deb9u2~deb8u1DLA-1466-1
Debian9linux4.9.110-3+deb9u1DSA-4266-1
Debian12, 13, 14linux4.17.6-1DEBIAN-CVE-2018-13405
Ubuntu14.04:LTSlinux3.13.0-157.207UBUNTU-CVE-2018-13405 USN-3754-1
Ubuntu14.04:LTSlinux-aws4.4.0-1028.31UBUNTU-CVE-2018-13405 USN-3753-2
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-134.160~14.04.1UBUNTU-CVE-2018-13405 USN-3753-2
Ubuntu16.04:LTSlinux4.4.0-134.160UBUNTU-CVE-2018-13405 USN-3753-1
Ubuntu16.04:LTSlinux-aws4.4.0-1066.76UBUNTU-CVE-2018-13405 USN-3753-1
Ubuntu16.04:LTSlinux-azure4.15.0-1022.22~16.04.1UBUNTU-CVE-2018-13405 USN-3752-3
Ubuntu16.04:LTSlinux-gcp4.15.0-1018.19~16.04.2UBUNTU-CVE-2018-13405 USN-3752-3
Ubuntu16.04:LTSlinux-hwe4.15.0-33.36~16.04.1UBUNTU-CVE-2018-13405 USN-3752-2
Ubuntu16.04:LTSlinux-kvm4.4.0-1032.38UBUNTU-CVE-2018-13405 USN-3753-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1095.103UBUNTU-CVE-2018-13405 USN-3753-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1099.104UBUNTU-CVE-2018-13405 USN-3753-1
Ubuntu18.04:LTSlinux4.15.0-33.36UBUNTU-CVE-2018-13405 USN-3752-1
9 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::workstationperf, kernel, kernel-doc and 13 more0:2.6.32-754.12.1.el6RHSA-2019:0717
Red Hatenterprise_linux:6::serverperf, kernel, kernel-doc and 19 more0:2.6.32-754.12.1.el6RHSA-2019:0717
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, bpftool and 15 more0:3.10.0-957.el7RHSA-2018:3083
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 22 more0:3.10.0-957.el7RHSA-2018:3083
Red Hatenterprise_linux:7::serverperf, kernel, kernel-alt and 17 more0:4.14.0-115.el7aRHSA-2018:2948
Red Hatenterprise_mrg:2:server:el6kernel-rt, kernel-rt-doc, kernel-rt-debug and 12 more1:3.10.0-693.58.1.rt56.652.el6rtRHSA-2019:2730
Red Hatrhel_aus:6.6::serverperf, kernel, kernel-doc and 11 more0:2.6.32-504.80.2.el6RHSA-2019:2476
Red Hatrhel_aus:7.2::server, rhel_e4s:7.2::server, rhel_tus:7.2::serverperf, kernel, kernel-doc and 15 more0:3.10.0-327.83.1.el7RHSA-2019:4164
Red Hatrhel_aus:7.3::server, rhel_tus:7.3::serverperf, kernel, kernel-doc and 15 more0:3.10.0-514.71.1.el7RHSA-2019:4159
Red Hatrhel_e4s:7.3::serverperf, kernel, kernel-doc and 17 more0:3.10.0-514.71.1.el7RHSA-2019:4159
Red Hatrhel_eus:7.4::computenodeperf, kernel, kernel-doc and 14 more0:3.10.0-693.58.1.el7RHSA-2019:2696
Red Hatrhel_eus:7.4::serverperf, kernel, kernel-doc and 21 more0:3.10.0-693.58.1.el7RHSA-2019:2696
3 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekernel-syms, kernel-source, kernel-default4.4.121-92.92.1SUSE-SU-2018:2344-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekgraft-patch-SLE12-SP2_Update_241-3.7.1SUSE-SU-2018:2344-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morelttng-modules2.7.1-9.4.1SUSE-SU-2018:2344-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morekernel-obs-build4.12.14-197.102.1SUSE-SU-2021:3876-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 1 more4.12.14-197.102.2SUSE-SU-2021:3876-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 morekernel-syms, kernel-source, kernel-default4.4.180-94.150.1SUSE-SU-2021:3935-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-LTSS, Linux Enterprise Server for SAP Applications 12 SP3 and 2 morekgraft-patch-SLE12-SP3_Update_411-4.3.1SUSE-SU-2021:3935-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3kernel-syms, kernel-source, kernel-default4.4.140-94.42.1SUSE-SU-2018:2051-1
SUSELinux Enterprise High Availability Extension 12 SP2kernel-default4.4.121-92.92.1SUSE-SU-2018:2344-1
SUSELinux Enterprise High Availability Extension 12 SP3kernel-default4.4.180-94.150.1SUSE-SU-2021:3935-1
SUSELinux Enterprise High Availability Extension 12 SP3, Linux Enterprise Workstation Extension 12 SP3kernel-default4.4.140-94.42.1SUSE-SU-2018:2051-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.83.2SUSE-SU-2021:3972-1
30 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2kernel-default-base5.3.18-lp152.102.1.lp152.8.49.1openSUSE-SU-2021:1477-1
openSUSELeap 15.2kernel-docs, kernel-syms, kernel-debug and 6 more5.3.18-lp152.102.1openSUSE-SU-2021:1477-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.102.2openSUSE-SU-2021:3876-1
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2022:0886
AlmaLinux8perf, kernel, bpftool and 17 more4.18.0-372.9.1.el8ALSA-2022:1988
AlmaLinux8qemu-img, qemu-kvm, qemu-kvm-core and 7 more15:4.2.0-59.module_el8.5.0+2629+68d2f392.2ALSA-2022:0886
AlmaLinux8sgabios, sgabios-bin1:0.20170427git-3.module_el8.6.0+2880+7d9e3703ALSA-2022:0886

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernel-0:2.6.32-754.12.1.el6Fixed 2019-04-09RHSA-2019:0717
Red Hat Enterprise Linux 6.6 Advanced Update Supportkernel-0:2.6.32-504.80.2.el6Fixed 2019-08-13RHSA-2019:2476
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-957.rt56.910.el7Fixed 2018-10-30RHSA-2018:3096
Red Hat Enterprise Linux 7kernel-alt-0:4.14.0-115.el7aFixed 2018-10-30RHSA-2018:2948
Red Hat Enterprise Linux 7kernel-0:3.10.0-957.el7Fixed 2018-10-30RHSA-2018:3083
Red Hat Enterprise Linux 7.2 Advanced Update Supportkernel-0:3.10.0-327.83.1.el7Fixed 2019-12-10RHSA-2019:4164
Red Hat Enterprise Linux 7.2 Telco Extended Update Supportkernel-0:3.10.0-327.83.1.el7Fixed 2019-12-10RHSA-2019:4164
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutionskernel-0:3.10.0-327.83.1.el7Fixed 2019-12-10RHSA-2019:4164
Red Hat Enterprise Linux 7.3 Advanced Update Supportkernel-0:3.10.0-514.71.1.el7Fixed 2019-12-10RHSA-2019:4159
Red Hat Enterprise Linux 7.3 Telco Extended Update Supportkernel-0:3.10.0-514.71.1.el7Fixed 2019-12-10RHSA-2019:4159
Red Hat Enterprise Linux 7.3 Update Services for SAP Solutionskernel-0:3.10.0-514.71.1.el7Fixed 2019-12-10RHSA-2019:4159
Red Hat Enterprise Linux 7.4 Extended Update Supportkernel-0:3.10.0-693.58.1.el7Fixed 2019-09-12RHSA-2019:2696
Red Hat Enterprise Linux 7.5 Extended Update Supportkernel-0:3.10.0-862.41.1.el7Fixed 2019-08-27RHSA-2019:2566
Red Hat Enterprise MRG 2kernel-rt-1:3.10.0-693.58.1.rt56.652.el6rtFixed 2019-09-11RHSA-2019:2730
Red Hat Enterprise Linux 5kernelWill not fix
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise MRG 2realtime-kernelWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-13405.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON