CVE-2018-13405
publishedkernel: Missing check in fs/inode.c:inode_init_owner() does not clear SGID bit on non-directories for non-members
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-1050 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| Debian | jessie | linux | Advisory build | 3.16.59-1 | DLA-1529-1 |
| Oracle Linux | 6 | dtrace-modules-3.8.13-118.24.1.el6uekx86_64 | Advisory build | 0:0.4.5-3.el6 | ELSA-2018-4211 |
| Red Hat Enterprise Linux | RHEL-6 | kerneli686 | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | libiscsi | Advisory build | 1.18.0-8.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | libiscsi-devel | Advisory build | 1.18.0-8.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | libiscsi-utils | Advisory build | 1.18.0-8.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | libvirt-dbus | Advisory build | 1.3.0-2.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | netcf | Advisory build | 0.2.8-12.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | netcf-devel | Advisory build | 0.2.8-12.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | netcf-libs | Advisory build | 0.2.8-12.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-372.9.1.el8 | ALSA-2022:1988 |
| AlmaLinux | 8 | qemu-guest-agent | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-img | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-block-curl | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-block-gluster | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-block-iscsi | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-block-rbd | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-block-ssh | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-common | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | qemu-kvm-core | Advisory build | 15:4.2.0-59.module_el8.5.0+2629+68d2f392.2 | ALSA-2022:0886 |
| AlmaLinux | 8 | sgabios | Advisory build | 1:0.20170427git-3.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| AlmaLinux | 8 | sgabios-bin | Advisory build | 1:0.20170427git-3.module_el8.6.0+2880+7d9e3703 | ALSA-2022:0886 |
| Debian | jessie | linux-4.9 | Advisory build | 4.9.110-3+deb9u2~deb8u1 | DLA-1466-1 |
| Debian | stretch | linux | Advisory build | 4.9.110-3+deb9u1 | DSA-4266-1 |
| Oracle Linux | 6 | kerneli686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernelx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-abi-whitelistsi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-abi-whitelistsx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-debugi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-debugx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-debug-develi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-debug-develx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-develi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-develx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-doci686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-docx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-firmwarei686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-firmwarex86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-headersi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-headersx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | kernel-uekx86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | kernel-uek-debugx86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | kernel-uek-debug-develx86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | kernel-uek-develx86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | kernel-uek-docx86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | kernel-uek-firmwarex86_64 | Advisory build | 0:3.8.13-118.24.1.el6uek | ELSA-2018-4211 |
| Oracle Linux | 6 | perfi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | perfx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | python-perfi686 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 6 | python-perfx86_64 | Advisory build | 0:2.6.32-754.12.1.el6 | ELSA-2019-0717 |
| Oracle Linux | 7 | bpftoolx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | dtrace-modules-3.8.13-118.24.1.el7uekx86_64 | Advisory build | 0:0.4.5-3.el7 | ELSA-2018-4211 |
| Oracle Linux | 7 | kernelx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-abi-whitelistsx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-debugx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-debug-develx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-develx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-docx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-headersx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-toolsx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-tools-libsx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-tools-libs-develx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | kernel-uekx86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | kernel-uek-debugx86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | kernel-uek-debug-develx86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | kernel-uek-develx86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | kernel-uek-docx86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | kernel-uek-firmwarex86_64 | Advisory build | 0:3.8.13-118.24.1.el7uek | ELSA-2018-4211 |
| Oracle Linux | 7 | perfx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Oracle Linux | 7 | python-perfx86_64 | Advisory build | 0:3.10.0-957.el7 | ELSA-2018-3083 |
| Red Hat Enterprise Linux | RHEL-6 | kernelppc64 | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernels390x | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernelsrc | Advisory build | 2.6.32-504.80.2.el6 | RHSA-2019:2476 |
| Red Hat Enterprise Linux | RHEL-6 | kernelsrc | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernelx86_64 | Advisory build | 2.6.32-504.80.2.el6 | RHSA-2019:2476 |
| Red Hat Enterprise Linux | RHEL-6 | kernelx86_64 | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernel-abi-whitelistsnoarch | Advisory build | 2.6.32-504.80.2.el6 | RHSA-2019:2476 |
| Red Hat Enterprise Linux | RHEL-6 | kernel-abi-whitelistsnoarch | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernel-bootwrapperppc64 | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
| Red Hat Enterprise Linux | RHEL-6 | kernel-debugi686 | Advisory build | 2.6.32-754.12.1.el6 | RHSA-2019:0717 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
28- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- http://openwall.com/lists/oss-security/2018/07/13/2
- 106503 http://www.securityfocus.com/bid/106503
- RHSA-2018:2948 https://access.redhat.com/errata/RHSA-2018:2948
- RHSA-2018:3083 https://access.redhat.com/errata/RHSA-2018:3083
- RHSA-2018:3096 https://access.redhat.com/errata/RHSA-2018:3096
- RHSA-2019:0717 https://access.redhat.com/errata/RHSA-2019:0717
- RHSA-2019:2476 https://access.redhat.com/errata/RHSA-2019:2476
- RHSA-2019:2566 https://access.redhat.com/errata/RHSA-2019:2566
- RHSA-2019:2696 https://access.redhat.com/errata/RHSA-2019:2696
- RHSA-2019:2730 https://access.redhat.com/errata/RHSA-2019:2730
- RHSA-2019:4159 https://access.redhat.com/errata/RHSA-2019:4159
- RHSA-2019:4164 https://access.redhat.com/errata/RHSA-2019:4164
- https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0b3369840cd61c23e2b9241093737b4c395cb406
- https://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- [debian-lts-announce] 20180815 [SECURITY] [DLA 1466-1] linux-4.9 security update https://lists.debian.org/debian-lts-announce/2018/08/msg00014.html
- FEDORA-2022-5d0676b098 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HRBNBX73SAFKQWBOX76SLMWPTKJPVGEJ/
- FEDORA-2022-3a60c34473 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKKIAUMR5FAYLZ7HLEPOXMKAAE3BYBQ/
- https://support.f5.com/csp/article/K00854051
- https://twitter.com/grsecurity/status/1015082951204327425
- USN-3752-1 https://usn.ubuntu.com/3752-1/
- USN-3752-2 https://usn.ubuntu.com/3752-2/
- USN-3752-3 https://usn.ubuntu.com/3752-3/
- USN-3753-1 https://usn.ubuntu.com/3753-1/
- USN-3753-2 https://usn.ubuntu.com/3753-2/
- USN-3754-1 https://usn.ubuntu.com/3754-1/
- DSA-4266 https://www.debian.org/security/2018/dsa-4266
- 45033 https://www.exploit-db.com/exploits/45033/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6bf285ac4fee1856d31c0800376c1c1a4d31de334430825ebd4abd4df488444a
- Ingested
- 23 Sep 2026, 07:43:37 UTC
- Source record
- Official CVE record