Vulnerability in Linux Kernel
CVE-2021-4037
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 and with group execution and SGID permission bits set, in a scenario where a directory is SGID and belongs to a certain group and is writable by a user who is not a member of this group. This can lead to excessive permissions granted in case when they should not. This vulnerability is similar to the previous CVE-2018-13405 and adds the missed fix for the XFS.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 27.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux Kernel — versions 5.5, 5.12
- Linux Kernel
- Debian Linux — versions 10.0, 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Permissions Required, Third Party Advisory, Issue Tracking)
- RHBZ#2027239 (issue-tracking, Third Party Advisory, Issue Tracking)
- access.redhat.com/security/cve/CVE-2021-4037 (Third Party Advisory, vdb-entry)
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Mailing List, Vendor Advisory)
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ (Patch, Mailing List, Vendor Advisory)
- www.debian.org/security/2022/dsa-5257 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2022/11/msg00001.html (mailing-list, Mailing List, Third Party Advisory)
- RHSA-2022:1975 (vendor-advisory)
- RHSA-2022:1988 (vendor-advisory)
- RHSA-2022:4829 (vendor-advisory)