CVE-2021-4037
Last modified
CVE-2021-4037 is a medium-severity vulnerability rated 4.4/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.11 |
| Debian | Debian Linux | 10.0 |
| Debian | Debian Linux | 11.0 |
References
- https://access.redhat.com/security/cve/CVE-2021-4037Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2027239Issue Tracking, Third Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103eMailing List, Patch, Vendor Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848Mailing List, Patch, Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2021-4037Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2004810Issue Tracking, Permissions Required, Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2027239Issue Tracking, Third Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=01ea173e103eMailing List, Patch, Vendor Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848Mailing List, Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2022/11/msg00001.htmlMailing List, Third Party Advisory
- https://www.debian.org/security/2022/dsa-5257Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-4037?
How severe is CVE-2021-4037?
How do I fix CVE-2021-4037?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-40364A vulnerability has been identified in SIMATIC PCS 7 V8.2 (A…5.5
- CVE-2021-40365Affected devices don't process correctly certain special cra…7.5
- CVE-2021-40366A vulnerability has been identified in Climatix POL909 (AWB …7.4
- CVE-2021-40367A vulnerability has been identified in syngo fastView (All v…7.8
- CVE-2021-40368A vulnerability has been identified in SIMATIC S7-400 CPU 4…7.5
- CVE-2021-40369A carefully crafted plugin link invocation could trigger an …6.1
- CVE-2021-40371Gridpro Request Management for Windows Azure Pack before 2.0…9.8
- CVE-2021-40373playSMS before 1.4.5 allows Arbitrary Code Execution by ente…9.8
- CVE-2021-40374A stored cross-site scripting (XSS) vulnerability was identi…5.4
- CVE-2021-40375Apperta Foundation OpenEyes 3.5.1 allows remote attackers to…6.5
- CVE-2021-40376otris Update Manager 1.2.1.0 allows local users to achieve S…7.8
- CVE-2021-40377SmarterTools SmarterMail 16.x before build 7866 has stored X…5.4
Are you affected by CVE-2021-4037?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
