Local File Creation Flaw in Linux Kernel XFS File-System

4.4MEDIUM

CVE-2021-4037

Key Information:

Vendor

Linux

CVE ID
CVE ID:
CVE-2021-4037
Vendor
CVE Published:
24 August 2022
Fixed in
Fixed in:
5.4.241, 5.10.146

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • No: Needs local access
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version

Several version ranges are affected; the full list is under Affected Version(s).

Install the kernel release that fixes your version line, or later:

5.4.2415.10.146
Read the vendor advisory โ†—
2Why it's rated "Monitor"
  • Its CVSS severity is medium (4.4).

What is CVE-2021-4037?

A vulnerability exists in the logic of the inode_init_owner() function within the Linux kernel, specifically affecting the handling of file ownership in the XFS file-system. It allows local users to create files with unintended group ownership and potentially elevate permissions due to SGID settings on writable directories not limited to group members. This flaw may result in unauthorized access and excessive permissions that compromise system security, echoing issues previously identified in similar vulnerabilities.

Affected Version(s)

kernel * < 5.4.241

kernel 5.5 < 5.10.146

Red Hat Enterprise Linux 8 0:4.18.0-372.9.1.rt7.166.el8

References

Memory Ordering Flaw in Linux Kernel

CVE-2026-99676
LinuxLinux๐Ÿ˜„9.8CRITICAL

Linux Kernel Vulnerability in SCTP Control Chunk Migration

CVE-2026-99582
LinuxLinux7.8HIGH

Data Copy Vulnerability in Linux Kernel

CVE-2026-99370
LinuxLinux9.4CRITICAL
View more Linux vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
4.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
.