CVE-2018-13405
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2018-13405
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2022:0886
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2022:1975
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2022:1988
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2018-13405.html
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| rocky | 8 | fixed | |
| debian | bookworm | fixed | 4.17.6-1 |
| debian | bullseye | fixed | 4.17.6-1 |
| debian | forky | fixed | 4.17.6-1 |
| debian | sid | fixed | 4.17.6-1 |
| debian | trixie | fixed | 4.17.6-1 |
References
Verify integrity in audit chain (admin only). AS-IS.