Skip to main content

Linux Kernel XFS CVE-2026-43158

| EUVDEUVD-2026-27719 HIGH
Out-of-bounds Write (CWE-787)
2026-05-06 Linux GHSA-j4pf-wvpf-rv38
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain authenticated filesystem access
  2. Delivery
    Create files on XFS volume
  3. Exploit
    Issue crafted setxattr calls with specific name/value lengths
  4. Execution
    Trigger freemap corruption in leaf block
  5. Persist
    Kernel assertion failure
  6. Impact
    System panic/denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires authenticated access with filesystem write permissions on an XFS-formatted volume. Attacker must be able to create files and set extended attributes (setxattr system call). Triggered by specific extended attribute operations where the combination of name length and value length causes leaf block entries array expansion that collides with existing freemap entries - discovered case used namelen=3 and valuelen=71 (80-byte entry), but other length combinations likely exist. Exploitation requires sustained or repeated xattr operations to reach the vulnerable state, as testing revealed the bug manifests after approximately 20 minutes of stress testing. Default XFS configurations are vulnerable; no specific non-default settings required. Limits: Primarily affects systems with untrusted local users or multi-tenant container environments where users can perform xattr operations. Single-user systems or environments with strict MAC policies (SELinux/AppArmor) preventing untrusted xattr operations have reduced exposure.

Impact

CVSS 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) indicates high severity with network attack vector, but requires low-privileged authentication and write access to XFS filesystems. However, the AV:N (network vector) assignment appears incongruent with the actual exploitation requirements - triggering this bug requires authenticated filesystem write operations (setting extended attributes), which is typically a local privilege escalation scenario rather than remote network exploitation. The EPSS score of 0.02% (7th percentile) strongly suggests minimal real-world exploitation risk despite the high CVSS rating. No CISA KEV listing and no public exploit code identified at time of analysis. The vulnerability was discovered through automated testing (xfs/592 and xfs/794 test cases via fsstress) after 20+ minutes of stress testing, indicating it requires specific timing and workload conditions. Real-world risk is moderate: while the impact is severe (kernel panic/shutdown, potential data corruption), exploitation requires authenticated access, specific XFS extended attribute operations, and the bug manifests primarily as denial of service through kernel assertion failures rather than easily exploitable memory corruption for code execution. Priority should be elevated for systems with untrusted authenticated users or containers with XFS volumes, but lower for single-user workstations or systems without XFS.

Exploit ScenarioDerived

An authenticated attacker with write access to an XFS filesystem (local user or compromised container) repeatedly creates files and sets extended attributes with specific name/value length combinations that trigger freemap misalignment. Through sustained workload stress (similar to fsstress tool patterns), the attacker causes the kernel to add xattrs that expand the leaf block entries array beyond existing freemap boundaries. The corrupted freemap state triggers kernel assertion failures in xfs_attr3_leaf_add_work, causing immediate system panic and denial of service. With deeper exploitation effort, the memory corruption could potentially be leveraged for privilege escalation if the attacker can control data written to the overlapping memory regions, though no proof-of-concept for privilege escalation exists at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Memory corruption in Linux kernel XFS filesystem allows authenticated users with write access to trigger kernel assertion failures and system shutdowns via crafted extended attribute operations. The vulnerability stems from incorrect freemap adjustment logic when adding xattrs to leaf blocks, causing the entries array and free space tracking to claim overlapping memory regions. This results in firstused pointer corruption where the name area starts below the end of the entries array. Vendor-released patches are available across multiple stable kernel branches (5.10.252, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.16, 6.19.6, 7.0). Low EPSS score (0.02%, 7th percentile) and no CISA KEV listing indicate no widespread exploitation observed, though the high CVSS 8.8 reflects severe impact on availability and potential for data corruption in XFS filesystems.

RemediationAI

Apply vendor-released patches immediately for systems running XFS filesystems. Upgrade to patched kernel versions: 5.10.252+, 5.15.202+, 6.1.165+, 6.6.128+, 6.12.75+, 6.18.16+, 6.19.6+, or 7.0+ depending on your stable branch. Patches available via standard distribution update mechanisms (apt, yum, dnf) or from upstream git.kernel.org stable trees (commits d08976725355, a396b3d73d51, ef42a8766ff3, 3eefc0c2b784, 24ce71852f2c, 43f3b1867961, 6a8737afbccc, 38613c01f69e). For systems that cannot immediately patch, consider temporary risk reduction by limiting extended attribute usage on XFS filesystems through filesystem mount options or SELinux/AppArmor policies that restrict setxattr operations to trusted processes only - note this may break applications relying on xattrs (ACLs, security labels, user attributes). Monitor kernel logs for XFS assertion failures or shutdowns. For containerized environments, restrict untrusted container access to XFS-backed volumes. No workaround fully mitigates the issue; patching is the definitive solution. Reboot required after kernel update to load patched code.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a396b3d73d51355e50acdb403ba9c4cae4c1174e
Linux patch: 5.15.202
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ef42a8766ff3fdf51cf72fb36d0859c09d134478
Linux patch: 6.18.16
Linux 2.6.12
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d08976725355b9d54d8332fce223fa281cc304a5
Linux patch: 6.1.165
Linux patch: 7.0
Linux patch: 0
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <24ce71852f2cee6581e2cbebc15489ed52bf63b7
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <43f3b18679615a93bd848afde3602ba160637a46
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3eefc0c2b78444b64feeb3783c017d6adc3cd3ce
Linux patch: 6.6.128
Linux patch: 6.12.75
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6a8737afbccc340e718e0b22577312826390be8b
Linux patch: 5.10.252
Linux patch: 6.19.6
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <38613c01f69e1e77e6b8acab1e8ac665d01c2f15

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the XFS filesystem's extended attribute (xattr) management code, specifically in the xfs_attr3_leaf_add_work function that handles adding attributes to leaf blocks. XFS maintains a freemap array to track available space in leaf blocks, but this freemap is not a comprehensive map of all free space. The bug occurs during freemap adjustment when the entries array grows: when adding xattrs that expand the entries array beyond the boundaries tracked by existing freemap entries, the code fails to adjust all freemap entries to prevent collisions. This creates a state where freemap[1] claims free space starting at an unaligned offset (e.g., byte 388) that overlaps with the expanded entries array. The freemap's base value becomes misaligned with the 8-byte entry size, causing the firstused pointer to be set below the entries array boundary. This violates the kernel's internal consistency checks (ASSERT statement) and can lead to memory corruption in the XFS metadata structures. The fix depends on commit 2a2b5932db6758 which addresses freemap.size underflow issues. Affected code paths are triggered by extended attribute operations with specific name/value length combinations (discovered via namelen=3, valuelen=71 producing 80-byte entries).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.0 HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
May 08, 2026 - 13:22 NVD
8.8 (HIGH)
Patch available
May 06, 2026 - 13:32 EUVD
CVE Published
May 06, 2026 - 11:27 nvd
HIGH 8.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

xfs: fix freemap adjustments when adding xattrs to leaf blocks

xfs/592 and xfs/794 both trip this assertion in the leaf block freemap adjustment code after ~20 minutes of running on my test VMs:

ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) + xfs_attr3_leaf_hdr_size(leaf));

Upon enabling quite a lot more debugging code, I narrowed this down to fsstress trying to set a local extended attribute with namelen=3 and valuelen=71. This results in an entry size of 80 bytes.

At the start of xfs_attr3_leaf_add_work, the freemap looks like this:

i 0 base 448 size 0 rhs 448 count 46 i 1 base 388 size 132 rhs 448 count 46 i 2 base 2120 size 4 rhs 448 count 46 firstused = 520

where "rhs" is the first byte past the end of the leaf entry array. This is inconsistent -- the entries array ends at byte 448, but freemap[1] says there's free space starting at byte 388!

By the end of the function, the freemap is in worse shape:

i 0 base 456 size 0 rhs 456 count 47 i 1 base 388 size 52 rhs 456 count 47 i 2 base 2120 size 4 rhs 456 count 47 firstused = 440

Important note: 388 is not aligned with the entries array element size of 8 bytes.

Based on the incorrect freemap, the name area starts at byte 440, which is below the end of the entries array! That's why the assertion triggers and the filesystem shuts down.

How did we end up here? First, recall from the previous patch that the freemap array in an xattr leaf block is not intended to be a comprehensive map of all free space in the leaf block. In other words, it's perfectly legal to have a leaf block with:

  • 376 bytes in use by the entries array
  • freemap[0] has [base = 376, size = 8]
  • freemap[1] has [base = 388, size = 1500]
  • the space between 376 and 388 is free, but the freemap stopped

tracking that some time ago

If we add one xattr, the entries array grows to 384 bytes, and freemap[0] becomes [base = 384, size = 0]. So far, so good. But if we add a second xattr, the entries array grows to 392 bytes, and freemap[0] gets pushed up to [base = 392, size = 0]. This is bad, because freemap[1] hasn't been updated, and now the entries array and the free space claim the same space.

The fix here is to adjust all freemap entries so that none of them collide with the entries array. Note that this fix relies on commit 2a2b5932db6758 ("xfs: fix attr leaf header freemap.size underflow") and the previous patch that resets zero length freemap entries to have base = 0.

Executive ViewAI

Why It Matters

CVE-2026-43158 is a high-severity memory corruption vulnerability in Linux kernel XFS filesystem that allows authenticated users to crash systems and potentially corrupt data through malicious extended attribute operations. Organizations running XFS filesystems on affected kernel versions face availability risk and potential data integrity compromise if users with local write access exploit this flaw.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations pending patch deployment: restrict local filesystem write access to trusted users only, disable extended attributes on XFS filesystems if not required (via mount options), monitor system logs for kernel assertion failures and unexpected shutdowns, and implement access controls limiting who can perform extended attribute operations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy