kernel: Missing check in fs/inode.c:inode_init_owner() does not clear SGID bit on non-directories for non-members
Published Jul 6, 2018
7.8
HIGHCVSS 3.1
EPSS 1.01%
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.
Affected products
No data.
Configuration 1
- ≤ 3.16
Configuration 2
- 8.0
- 9.0
Configuration 3
- 14.04
- 16.04
- 16.04
- 18.04
Configuration 4
- 34
- 35
Configuration 5
- 2.0
- 4.0
- 7.4
- 6.0
- 7.0
- 7.4
- 7.5
- 7
- 6.0
- 7.0
- 6.6
- 7.2
- 7.3
- 7.2
- 7.3
- 7.4
- 6.0
- 7.0
Configuration 6
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
- ≥ 13.0.0 · < 13.1.3.5
- ≥ 14.0.0 · < 14.1.3.1
- ≥ 15.0.0 · < 15.0.1.4
- 15.1.0
- 16.0.0
No data.
Red Hat Enterprise Linux 6
kernel-0:2.6.32-754.12.1.el6
Fixed · RHSA-2019:0717
Red Hat Enterprise Linux 6.6 Advanced Update Support
kernel-0:2.6.32-504.80.2.el6
Fixed · RHSA-2019:2476
Red Hat Enterprise Linux 7
kernel-0:3.10.0-957.el7
Fixed · RHSA-2018:3083
Red Hat Enterprise Linux 7
kernel-alt-0:4.14.0-115.el7a
Fixed · RHSA-2018:2948
Red Hat Enterprise Linux 7
kernel-rt-0:3.10.0-957.rt56.910.el7
Fixed · RHSA-2018:3096
Red Hat Enterprise Linux 7.2 Advanced Update Support
kernel-0:3.10.0-327.83.1.el7
Fixed · RHSA-2019:4164
Red Hat Enterprise Linux 7.2 Telco Extended Update Support
kernel-0:3.10.0-327.83.1.el7
Fixed · RHSA-2019:4164
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions
kernel-0:3.10.0-327.83.1.el7
Fixed · RHSA-2019:4164
Red Hat Enterprise Linux 7.3 Advanced Update Support
kernel-0:3.10.0-514.71.1.el7
Fixed · RHSA-2019:4159
Red Hat Enterprise Linux 7.3 Telco Extended Update Support
kernel-0:3.10.0-514.71.1.el7
Fixed · RHSA-2019:4159
Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions
kernel-0:3.10.0-514.71.1.el7
Fixed · RHSA-2019:4159
Red Hat Enterprise Linux 7.4 Extended Update Support
kernel-0:3.10.0-693.58.1.el7
Fixed · RHSA-2019:2696
Red Hat Enterprise Linux 7.5 Extended Update Support
kernel-0:3.10.0-862.41.1.el7
Fixed · RHSA-2019:2566
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-693.58.1.rt56.652.el6rt
Fixed · RHSA-2019:2730
Red Hat Enterprise Linux 5
kernel
Will not fix
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise MRG 2
realtime-kernel
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel-0:2.6.32-754.12.1.el6 | Fixed | RHSA-2019:0717 |
| Red Hat Enterprise Linux 6.6 Advanced Update Support | kernel-0:2.6.32-504.80.2.el6 | Fixed | RHSA-2019:2476 |
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-957.el7 | Fixed | RHSA-2018:3083 |
| Red Hat Enterprise Linux 7 | kernel-alt-0:4.14.0-115.el7a | Fixed | RHSA-2018:2948 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-957.rt56.910.el7 | Fixed | RHSA-2018:3096 |
| Red Hat Enterprise Linux 7.2 Advanced Update Support | kernel-0:3.10.0-327.83.1.el7 | Fixed | RHSA-2019:4164 |
| Red Hat Enterprise Linux 7.2 Telco Extended Update Support | kernel-0:3.10.0-327.83.1.el7 | Fixed | RHSA-2019:4164 |
| Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions | kernel-0:3.10.0-327.83.1.el7 | Fixed | RHSA-2019:4164 |
| Red Hat Enterprise Linux 7.3 Advanced Update Support | kernel-0:3.10.0-514.71.1.el7 | Fixed | RHSA-2019:4159 |
| Red Hat Enterprise Linux 7.3 Telco Extended Update Support | kernel-0:3.10.0-514.71.1.el7 | Fixed | RHSA-2019:4159 |
| Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions | kernel-0:3.10.0-514.71.1.el7 | Fixed | RHSA-2019:4159 |
| Red Hat Enterprise Linux 7.4 Extended Update Support | kernel-0:3.10.0-693.58.1.el7 | Fixed | RHSA-2019:2696 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | kernel-0:3.10.0-862.41.1.el7 | Fixed | RHSA-2019:2566 |
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-693.58.1.rt56.652.el6rt | Fixed | RHSA-2019:2730 |
| Red Hat Enterprise Linux 5 | kernel | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise MRG 2 | realtime-kernel | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
AV:L/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.01% (0.01010) | 61.79th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.02% (0.01018) | 58.70th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.15% (0.00146) | 32.46th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 0.34th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.04% (0.00042) | 0.47th | v3 (v2023.03.01) |
| May 8, 2023 | 0.04% (0.00043) | 7.50th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00042) | 0.50th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.53% (0.03534) | 84.88th | v2 (v2022.01.01) |
| Feb 23, 2023 | 3.53% (0.03534) | 84.82th | v2 (v2022.01.01) |
| Dec 28, 2022 | 3.82% (0.03821) | 85.20th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.53% (0.03534) | 83.33th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.53% (0.03534) | 66.49th | v2 (v2022.01.01) |
| Feb 3, 2022 | 12.04% (0.12037) | 88.65th | v1 |
| Jan 6, 2022 | 12.04% (0.12037) | 88.51th | v1 |
| Sep 1, 2021 | 12.04% (0.12037) | 95.80th | v1 |
| Apr 14, 2021 | 12.04% (0.12037) | 0.00th | v1 |
References (32)
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 x_refsource_MISCPatchVendor Advisory
- http://openwall.com/lists/oss-security/2018/07/13/2 x_refsource_MISCMailing ListPatchThird Party Advisory
- http://www.securityfocus.com/bid/106503 vdb-entryx_refsource_BIDBroken Link
- https://access.redhat.com/errata/RHSA-2018:2948 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3083 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3096 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:0717 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2476 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2566 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2696 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2730 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:4159 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:4164 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-13405 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1599161 Issue Tracking
- https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0b3369840cd61c23e2b9241093737b4c395cb406 x_refsource_CONFIRMMailing ListPatchVendor Advisory
- https://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7 x_refsource_MISCPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/08/msg00014.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HRBNBX73SAFKQWBOX76SLMWPTKJPVGEJ/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKKIAUMR5FAYLZ7HLEPOXMKAAE3BYBQ/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2018-13405
- https://support.f5.com/csp/article/K00854051 x_refsource_CONFIRMThird Party Advisory
- https://twitter.com/grsecurity/status/1015082951204327425 x_refsource_MISCThird Party Advisory
- https://usn.ubuntu.com/3752-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3752-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3752-3/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3753-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3753-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3754-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-13405
- https://www.debian.org/security/2018/dsa-4266 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.exploit-db.com/exploits/45033/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
Change history (0)
No recorded changes yet.