Public exploit available
Public proof-of-concept or exploit code exists (ExploitDB / Metasploit / Nuclei).
Severity
7.8HIGH
EPSS
0.2%
top 62.45%
CISA KEV
Not in KEV
Exploit
PoC available
Public exploit / PoC exists
Timeline
PublishedJul 6
Latest updateAug 9

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 gr

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages21 packages

NVDf5/big-ip_local_traffic_manager13.0.013.1.3.5+4
Debianlinux< 4.17.6-1+3

Also affects: Debian Linux 8.0, 9.0, Ubuntu Linux 14.04, 16.04, 18.04, Enterprise Linux 7.4, 7.5, 7, 6.6, 7.2, 7.3, Fedora 34, 35

Patches

🔴Vulnerability Details

3
GHSA
GHSA-5p56-pcgw-42mf: The inode_init_owner function in fs/inode2022-05-13
CVEList
CVE-2018-13405: The inode_init_owner function in fs/inode2018-07-06
OSV
CVE-2018-13405: The inode_init_owner function in fs/inode2018-07-06

💥Exploits & PoCs

1
Exploit-DB
Linux (Ubuntu) - Other Users coredumps Can Be Read via setgid Directory and killpriv Bypass2018-07-16

📋Vendor Advisories

13
Microsoft
A vulnerability was found in the fs/inode.c:inode_init_owner() function logic of the LInux kernel that allows local users to create files for the XFS file-system with an unintended group ownership and2022-08-09
Microsoft
A flaw was found in the QEMU virtio-fs shared file system daemon (virtiofsd) implementation. This flaw is strictly related to CVE-2018-13405. A local guest user can create files in the directories sha2022-08-09
Red Hat
QEMU: virtiofsd: potential privilege escalation via CVE-2018-134052022-01-25
Red Hat
kernel: security regression for CVE-2018-134052021-09-16
Android
CVE-2018-13405: Filesystem2019-01-01

💬Community

2
Bugzilla
CVE-2018-13405 kernel: Missing check in fs/inode.c:inode_init_owner() does not clear SGID bit on non-directories for non-members [fedora-all]2018-07-09
Bugzilla
CVE-2018-13405 kernel: Missing check in fs/inode.c:inode_init_owner() does not clear SGID bit on non-directories for non-members2018-07-09