CVE-2018-13405

MEDIUM

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.

References

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7

http://openwall.com/lists/oss-security/2018/07/13/2

http://www.securityfocus.com/bid/106503

https://access.redhat.com/errata/RHSA-2018:2948

https://access.redhat.com/errata/RHSA-2018:3083

https://access.redhat.com/errata/RHSA-2018:3096

https://access.redhat.com/errata/RHSA-2019:0717

https://access.redhat.com/errata/RHSA-2019:2476

https://access.redhat.com/errata/RHSA-2019:2566

https://access.redhat.com/errata/RHSA-2019:2696

https://access.redhat.com/errata/RHSA-2019:2730

https://access.redhat.com/errata/RHSA-2019:4159

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

https://lists.debian.org/debian-lts-announce/2018/08/msg00014.html

https://support.f5.com/csp/article/K00854051

https://twitter.com/grsecurity/status/1015082951204327425

https://usn.ubuntu.com/3752-1/

https://usn.ubuntu.com/3752-2/

https://usn.ubuntu.com/3752-3/

https://usn.ubuntu.com/3753-1/

https://usn.ubuntu.com/3753-2/

https://usn.ubuntu.com/3754-1/

https://www.debian.org/security/2018/dsa-4266

https://www.exploit-db.com/exploits/45033/

Details

Source: MITRE

Published: 2018-07-06

Updated: 2021-01-05

Type: CWE-269

Risk Information

CVSS v2.0

Base Score: 4.6

Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 3.9

Severity: MEDIUM

CVSS v3.0

Base Score: 7.8

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

Impact Score: 5.9

Exploitability Score: 1.8

Severity: HIGH

Tenable Plugins

View all (50 total)

IDNameProductFamilySeverity
141516F5 Networks BIG-IP : Linux kernel vulnerability (K00854051)NessusF5 Networks Local Security Checks
medium
131981RHEL 7 : kernel (RHSA-2019:4164)NessusRed Hat Local Security Checks
high
131980RHEL 7 : kernel (RHSA-2019:4159)NessusRed Hat Local Security Checks
high
128854RHEL 6 : MRG (RHSA-2019:2730)NessusRed Hat Local Security Checks
high
128662RHEL 7 : kernel (RHSA-2019:2696)NessusRed Hat Local Security Checks
high
128300RHEL 7 : kernel (RHSA-2019:2566)NessusRed Hat Local Security Checks
medium
127879RHEL 6 : kernel (RHSA-2019:2476)NessusRed Hat Local Security Checks
medium
127425NewStart CGSL MAIN 4.05 : kernel Multiple Vulnerabilities (NS-SA-2019-0152)NessusNewStart CGSL Local Security Checks
high
127312NewStart CGSL MAIN 4.06 : kernel Multiple Vulnerabilities (NS-SA-2019-0092)NessusNewStart CGSL Local Security Checks
medium
127233NewStart CGSL CORE 5.04 / MAIN 5.04 : kernel-rt Multiple Vulnerabilities (NS-SA-2019-0049)NessusNewStart CGSL Local Security Checks
high
127222NewStart CGSL CORE 5.04 / MAIN 5.04 : kernel Multiple Vulnerabilities (NS-SA-2019-0044)NessusNewStart CGSL Local Security Checks
high
124984EulerOS Virtualization for ARM 64 3.0.1.0 : kernel (EulerOS-SA-2019-1531)NessusHuawei Local Security Checks
high
124833EulerOS Virtualization 3.0.1.0 : kernel (EulerOS-SA-2019-1511)NessusHuawei Local Security Checks
high
124409Virtuozzo 6 : parallels-server-bm-release / shaman / vzkernel / etc (VZA-2019-033)NessusVirtuozzo Local Security Checks
medium
124035CentOS 6 : kernel (CESA-2019:0717)NessusCentOS Local Security Checks
medium
124014Oracle Linux 6 : kernel (ELSA-2019-0717)NessusOracle Linux Local Security Checks
medium
123965Scientific Linux Security Update : kernel on SL6.x i386/x86_64 (20190409)NessusScientific Linux Local Security Checks
medium
123963RHEL 6 : kernel (RHSA-2019:0717)NessusRed Hat Local Security Checks
medium
123226openSUSE Security Update : the Linux Kernel (openSUSE-2019-536) (Spectre)NessusSuSE Local Security Checks
high
122414EulerOS 2.0 SP2 : kernel (EulerOS-SA-2019-1062)NessusHuawei Local Security Checks
high
120418Fedora 28 : kernel (2018-50075276e8)NessusFedora Local Security Checks
high
120067SUSE SLED15 / SLES15 Security Update : kernel (SUSE-SU-2018:2092-1) (Spectre)NessusSuSE Local Security Checks
high
119565EulerOS 2.0 SP3 : kernel (EulerOS-SA-2018-1406)NessusHuawei Local Security Checks
medium
119187Scientific Linux Security Update : kernel on SL7.x x86_64 (20181030)NessusScientific Linux Local Security Checks
high
118990CentOS 7 : kernel (CESA-2018:3083)NessusCentOS Local Security Checks
high
118770Oracle Linux 7 : kernel (ELSA-2018-3083)NessusOracle Linux Local Security Checks
high
118528RHEL 7 : kernel-rt (RHSA-2018:3096)NessusRed Hat Local Security Checks
high
118525RHEL 7 : kernel (RHSA-2018:3083)NessusRed Hat Local Security Checks
high
118513RHEL 7 : kernel-alt (RHSA-2018:2948) (Spectre)NessusRed Hat Local Security Checks
high
118283SUSE SLES12 Security Update : kernel (SUSE-SU-2018:2344-2) (Foreshadow)NessusSuSE Local Security Checks
high
118107Oracle Linux 6 : Unbreakable Enterprise kernel (ELSA-2018-4250)NessusOracle Linux Local Security Checks
high
117446Oracle Linux 6 / 7 : Unbreakable Enterprise kernel (ELSA-2018-4211)NessusOracle Linux Local Security Checks
high
112283Oracle Linux 6 / 7 : Unbreakable Enterprise kernel (ELSA-2018-4208)NessusOracle Linux Local Security Checks
high
112282OracleVM 3.4 : Unbreakable / etc (OVMSA-2018-0253)NessusOracleVM Local Security Checks
high
112189Ubuntu 16.04 LTS / 18.04 LTS : Linux kernel (Azure, GCP, OEM) vulnerabilities (USN-3752-3)NessusUbuntu Local Security Checks
high
112113Ubuntu 14.04 LTS : Linux kernel vulnerabilities (USN-3754-1)NessusUbuntu Local Security Checks
high
112112Ubuntu 14.04 LTS : Linux kernel (Xenial HWE) vulnerabilities (USN-3753-2)NessusUbuntu Local Security Checks
high
112111Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-3753-1)NessusUbuntu Local Security Checks
high
112110Ubuntu 16.04 LTS : Linux kernel (HWE) vulnerabilities (USN-3752-2)NessusUbuntu Local Security Checks
high
112109Ubuntu 18.04 LTS : Linux kernel vulnerabilities (USN-3752-1)NessusUbuntu Local Security Checks
high
111838SUSE SLES12 Security Update : kernel (SUSE-SU-2018:2384-1) (Foreshadow)NessusSuSE Local Security Checks
high
111830SUSE SLES12 Security Update : kernel (SUSE-SU-2018:2362-1) (Foreshadow)NessusSuSE Local Security Checks
high
111815SUSE SLES12 Security Update : kernel (SUSE-SU-2018:2344-1) (Foreshadow)NessusSuSE Local Security Checks
high
111763Debian DLA-1466-1 : linux-4.9 security updateNessusDebian Local Security Checks
high
111557Debian DSA-4266-1 : linux - security updateNessusDebian Local Security Checks
high
111527Virtuozzo 7 : readykernel-patch (VZA-2018-049)NessusVirtuozzo Local Security Checks
medium
111416openSUSE Security Update : the Linux Kernel (openSUSE-2018-764)NessusSuSE Local Security Checks
high
111414openSUSE Security Update : the Linux Kernel (openSUSE-2018-762) (Spectre)NessusSuSE Local Security Checks
high
111329SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2018:2051-1)NessusSuSE Local Security Checks
high
111243Fedora 27 : kernel (2018-8484550fff)NessusFedora Local Security Checks
high