Skip to main content

Linux Kernel XFS CVE-2026-80537

| EUVDEUVD-2026-66452 HIGH
2026-08-26 Linux GHSA-7pr9-p5w4-7qf6
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

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

  1. Recon
    Craft XFS image with rtreflink features
  2. Delivery
    Set /rtgroups/N.refcount bb_level to m_rtrefc_maxlevels
  3. Exploit
    Mount image on target kernel
  4. Install
    Flawed verifier accepts illegal root level
  5. C2
    xfs_mountfs() CoW recovery builds rtrefcount cursor
  6. Execute
    bc_nlevels exceeds bc_maxlevels by one
  7. Impact
    Slab-out-of-bounds 2-byte write
  8. Step 8
    Kernel panic or code execution

Vulnerability Assessment

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the target kernel must be compiled with XFS realtime support (CONFIG_XFS_RT) and the reflink/metadir features enabled; (2) the attacker must be able to cause the kernel to mount a crafted XFS filesystem image with the metadir+realtime+reflink feature set - this requires either CAP_SYS_ADMIN, an enabled unprivileged user namespace mount path, or the ability to present a malicious block device; (3) the crafted image's /rtgroups/N.refcount inode must have bb_level set to exactly m_rtrefc_maxlevels. Exploitation is strictly local - there is no network attack vector. Standard XFS deployments without a realtime device are entirely unaffected. A second trigger path (FS_IOC_GETFSMAP over the realtime device) is also available post-mount but requires the same feature preconditions.

Impact

The CVSS 7.8 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) is consistent with the described primitive: low-privilege local access is sufficient, no interaction is required, and the attack complexity is low once a crafted image is prepared. The slab-out-of-bounds write of 2 bytes in kernel heap space represents at minimum a reliable local denial-of-service (kernel panic on mount) and potentially a kernel code execution primitive - the KASAN trace and 'Kernel panic - not syncing' message confirm the DoS path. Full privilege escalation is plausible via heap grooming given a write primitive at a known relative offset, though no proof-of-concept has been published. The primary risk-limiting factor is the required XFS feature combination (metadir + realtime + reflink), which is non-default and narrows the exploitable population significantly. No EPSS score was provided and the CVE is absent from CISA KEV, consistent with no observed in-the-wild exploitation. The attack is also exploitable via FS_IOC_GETFSMAP on the realtime device after mount, providing a second trigger path. On systems permitting unprivileged mounts via user namespaces, the effective privilege bar drops further.

Exploit ScenarioDerived

A local user with low privileges crafts a malicious XFS filesystem image with the metadir+realtime+reflink feature combination, setting the /rtgroups/N.refcount inode's bb_level field to m_rtrefc_maxlevels (one beyond the valid maximum). When the image is mounted - directly by the attacker if unprivileged mounts are permitted, or by tricking an administrator - the kernel's CoW recovery path during xfs_mountfs() builds an rtrefcount cursor and immediately writes two bytes 8 bytes past the slab object boundary, producing a kernel panic at minimum; with heap grooming, an attacker may achieve arbitrary kernel code execution and root privilege escalation.

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

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

Alert me

AnalysisAIv1 – Aug 27, 2026

Slab-out-of-bounds write in the Linux kernel XFS real-time refcount B-tree (rtrefcountbt) subsystem allows a local attacker to trigger a kernel panic or potentially escalate privileges by mounting a crafted XFS filesystem image with the rtreflink feature set. The flaw is an off-by-one in on-disk root level validation - two check paths use '>' instead of '>=' - permitting an illegal bb_level that causes the cursor's bc_nlevels to exceed bc_maxlevels by one, indexing a 2-byte write 8 bytes past the end of a 216-byte slab object during the first B-tree operation. No public exploit or CISA KEV listing exists, but the guaranteed kernel panic and kernel heap write primitive make this a meaningful local risk on affected configurations.

RemediationAI

Apply one of the three upstream fix commits available on the Linux kernel stable tree - the fix is included in patched kernel releases 7.2, 7.1.10, and 6.18.46 per EUVD-2026-66452; monitor your distribution (RHEL, Ubuntu, SUSE, Debian) for a kernel update incorporating these commits. If immediate patching is not feasible, restrict unprivileged filesystem mounts by setting kernel.unprivileged_userns_clone=0 (note: this impacts container runtimes using user namespaces and should be tested before deployment). If the XFS realtime device feature is not in use in your environment, rebuilding the kernel without CONFIG_XFS_RT eliminates exposure for that subset of the attack surface, though this requires custom kernel builds. Additionally, restrict CAP_SYS_ADMIN on hosts where users might supply block devices or loop-mount images, which removes the mount-based trigger path.

Affected VersionsENISA

Linux 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 <cc3144da377de5fb422d44a2311f978623f7c900
Linux patch: 7.2
Linux 6.14
Linux 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 <8a0ecae2ecda9f9a83a496ed05c42c4b1f5c3f2d
Linux patch: 0
Linux patch: 7.1.10
Linux patch: 6.18.46
Linux 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 <ccebfc309441e0b37b2e6ece90f18810a489d326

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 is in the Linux kernel's XFS filesystem subsystem, specifically the real-time refcount B-tree (rtrefcountbt) introduced with the XFS rtreflink feature (metadir + realtime + reflink). The root cause is a comparison operator error: xfs_rtrefcountbt_verify() and xfs_iformat_rtrefcount() check the on-disk root level bb_level with '>' instead of '>=' against m_rtrefc_maxlevels. Because xfs_rtrefcountbt_compute_maxlevels() sets m_rtrefc_maxlevels = min(d_maxlevels, r_maxlevels) + 1, where the +1 already encodes the inode-root level, the maximum valid bb_level is m_rtrefc_maxlevels - 1. The flawed comparison admits bb_level == m_rtrefc_maxlevels, whereupon xfs_rtrefcountbt_init_cursor() sets bc_nlevels = bb_level + 1, one beyond bc_maxlevels. The xfs_rtrefcountbt_cur slab cache object is sized for exactly bc_maxlevels entries (216 bytes total), so the first btree operation writes to bc_levels[m_rtrefc_maxlevels], 8 bytes past the allocated region. The fix aligns these verifiers with the '>=' form already used by the sibling data-device refcount/rmap verifiers and the in-memory rtrmap verifier. Analogous to CWE-193 (off-by-one) and CWE-787 (out-of-bounds write); CPE cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*.

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 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local-only mount vector (AV:L), low privilege required to mount filesystems (PR:L), no race or complex conditions once image is crafted (AC:L), full kernel impact on exploitation (C/I/A:H).

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.0 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

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

Lifecycle Timeline

4
CVSS changed
Aug 27, 2026 - 06:22 NVD
7.8 (HIGH)
Patch available
Aug 26, 2026 - 16:17 EUVD
CVE Published
Aug 26, 2026 - 14:37 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 26, 2026 - 14:37 cve.org
HIGH 7.8

DescriptionCVE.org

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

xfs: fix off-by-one in rtrefcount btree root level validation

xfs_rtrefcountbt_compute_maxlevels() sets

mp->m_rtrefc_maxlevels = min(d_maxlevels, r_maxlevels) + 1;

where the trailing "+ 1" already accounts for the inode-root level, so the deepest valid on-disk root level is m_rtrefc_maxlevels - 1 and a cursor must satisfy bc_nlevels <= bc_maxlevels (= m_rtrefc_maxlevels).

The two on-disk validation paths, xfs_rtrefcountbt_verify() and xfs_iformat_rtrefcount(), check the root level with ">" instead of ">=", so a crafted rtreflink (metadir + realtime + reflink) image whose /rtgroups/N.refcount inode has bb_level == m_rtrefc_maxlevels is accepted on mount. xfs_rtrefcountbt_init_cursor() then sets bc_nlevels = bb_level + 1, exceeding bc_maxlevels by one. Since the xfs_rtrefcountbt_cur slab object is sized for exactly bc_maxlevels entries, the first btree op on such a cursor indexes bc_levels[m_rtrefc_maxlevels] past the end of the object. This is reached by the first rtrefcount cursor built after mount, via log/CoW recovery (xfs_reflink_recover_cow() during xfs_mountfs()) or an FS_IOC_GETFSMAP over the realtime device.

Reject a root level equal to m_rtrefc_maxlevels, matching the ">=" form already used by the sibling data-device refcount/rmap verifiers and the in-memory rtrmap verifier.

BUG: KASAN: slab-out-of-bounds in xfs_btree_lookup (fs/xfs/libxfs/xfs_btree.c:2101) Write of size 2 at addr ffff888018391658 by task exploit/144 xfs_btree_lookup (fs/xfs/libxfs/xfs_btree.c:2101) xfs_btree_query_range (fs/xfs/libxfs/xfs_btree.c:5308) xfs_refcount_recover_cow_leftovers (fs/xfs/libxfs/xfs_refcount.c:2113) xfs_reflink_recover_cow (fs/xfs/xfs_reflink.c:1085) xlog_recover_finish (fs/xfs/xfs_log_recover.c:3551) xfs_mountfs (fs/xfs/xfs_mount.c:1158) xfs_fs_fill_super (fs/xfs/xfs_super.c:1940) get_tree_bdev_flags (fs/super.c:1634) vfs_get_tree (fs/super.c:1694) path_mount (fs/namespace.c:4161) __x64_sys_mount (fs/namespace.c:4367) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) The buggy address belongs to the cache xfs_rtrefcountbt_cur of size 216 The buggy address is located 8 bytes to the right of allocated 216-byte region [ffff888018391578, ffff888018391650) Kernel panic - not syncing: Fatal exception

Executive ViewAI

Why It Matters

Linux infrastructure using XFS filesystems faces a vulnerability that could result in system crashes or unauthorized privilege escalation when attackers with local access mount specially crafted filesystem images. Patching is critical to prevent service outages and potential data compromise. The risk is elevated for systems in multi-tenant or guest environments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
Linux kernel is widely deployed; XFS rtreflink config narrows actual exposure
Data Quality
3 sources
Confidence: Low

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.1%
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
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

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