CVE-2021-4037
CVE-2021-4037 — Kernel: security regression for cve-2018-13405
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 Updated Sources: cvelistV5, redhat
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
4.4
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.4 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-284
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1027.009Obfuscated Files or Information: Embedded Payloads
- T1546.004Event Triggered Execution: .bash_profile and .bashrc
- T1546.016Event Triggered Execution: Installer Packages
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /inode.c:inode_init_owner().
References
13 on the record
- access.redhat.com/errata/RHSA-2022:1975
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2022:1988
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2022:4829
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/errata/RHSA-2022:4835
vendor-advisory, x_refsource_REDHAT
- access.redhat.com/security/cve/CVE-2021-4037
vdb-entry, x_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgi?id=2027239
issue-tracking, x_refsource_REDHAT
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e
reference
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2022-0995 Linux Kernel Out-of-Bounds Write VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2022-0492 Linux Kernel Improper Authentication VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2018-14634 Linux Kernel Integer Overflow VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2024-50302 Linux Kernel Use of Uninitialized Resource VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2026-93834 Qemu-kvm: 9pfs: use-after-free race in tlcreate/twalk allows vm guest escapeCVSS 8.8
- CVE-2026-133842 Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfileCVSS 8.2
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.