CVE-2021-4037
Kernel: security regression for cve-2018-13405
- State
- Published
- Severity
- 4.4 Medium
- Published
- Aug 24, 2022
- Updated
- Oct 14, 2026
- Reserved
- Dec 1, 2021
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.4 Medium | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | redhat |
Weaknesses
- CWE-284 Improper Access Control
Affected Products
| Product | Versions |
|---|---|
kernelLinux |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 8.4 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 8.4 Extended Update SupportRed Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 9Red Hat |
References
- RHSA-2022:1975vendor-advisory
- RHSA-2022:1988vendor-advisory
- RHSA-2022:4829vendor-advisory
- RHSA-2022:4835vendor-advisory
- https://access.redhat.com/security/cve/CVE-2021-4037vdb-entry
- RHBZ#2027239issue-tracking
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103e
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848
- https://bugzilla.redhat.com/show_bug.cgi?id=2004810
- DSA-5257vendor-advisory
- [debian-lts-announce] 20221101 [SECURITY] [DLA 3173-1] linux-5.10 security updatemailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.