Skip to main content
Vulnerability Database/CVE-2026-97543

CVE-2026-97543: Linux Kernel Memory Leak Vulnerability

CVE-2026-97543 is a memory leak vulnerability in the Linux kernel XFS filesystem that occurs during directory path creation failures. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97543 Overview

CVE-2026-97543 is a memory leak vulnerability in the Linux kernel's XFS filesystem subsystem. The flaw resides in the xchk_dirtree_create_path function, which handles directory tree scrub operations. When the kernel successfully creates a directory path object but subsequently fails to append a name to that path, the associated seen-inode bitmap is not torn down. A similar defect exists in xrep_dirtree_create_adoption_path. The issue was observed by the LOLLM analysis tooling and has been resolved upstream through four stable kernel commits.

Critical Impact

Repeated failures in the XFS directory tree scrub or repair path leak kernel memory, which can gradually exhaust kernel resources on long-running systems that exercise XFS online scrub operations.

Affected Products

  • Linux kernel versions containing the XFS directory tree scrub (xchk_dirtree_create_path) code path
  • Linux kernel versions containing the XFS directory tree repair (xrep_dirtree_create_adoption_path) code path
  • Downstream distributions shipping affected mainline and stable kernels prior to the referenced fix commits

Discovery Timeline

  • 2026-09-25 - CVE-2026-97543 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97543

Vulnerability Analysis

The vulnerability lives in the XFS online scrub and repair subsystem for directory trees. The xchk_dirtree_create_path routine allocates a directory path tracking object and an associated seen-inode bitmap. The function then attempts to append the current directory entry name to the newly created path. If that append operation fails, the function returns an error without destroying the bitmap it just initialized. The result is a leak of the kernel memory backing the bitmap for each failed invocation. The same logic defect exists in xrep_dirtree_create_adoption_path, the repair-side counterpart that constructs adoption paths for orphaned directories. Both functions share the pattern of allocating auxiliary state before performing the name-append step, and both omit the matching teardown on the failure branch.

Root Cause

The root cause is an incomplete error-handling path [Memory Leak]. The affected functions allocate the seen-inode bitmap during path object construction, but the cleanup logic for a failed name append does not reach the bitmap destructor. Each failure of the append step leaves the allocation outstanding until the parent scrub or repair context tears down, if ever.

Attack Vector

Triggering the leak requires exercising the XFS online scrub or repair interface, which is normally reachable only by privileged users with CAP_SYS_ADMIN. An attacker or faulty workload that can repeatedly invoke the directory tree scrub against a filesystem where the name-append step fails may slowly consume kernel memory. The upstream commit message characterizes the issue as a trivial logic bomb rather than an exploitable primitive. No remote attack vector, authentication bypass, or privilege escalation path has been published for this CVE.

No verified public exploit code or proof-of-concept has been published for CVE-2026-97543. See the upstream commits for the fix diffs: commit 0b756de8, commit 1a441c68, commit 3b10ca43, and commit 582f54dc.

Detection Methods for CVE-2026-97543

Indicators of Compromise

  • Unexplained growth in kernel slab allocations tied to XFS scrub operations, visible in /proc/slabinfo
  • Repeated xfs_scrub or xfs_repair invocations in audit logs that return errors from the dirtree scrubber
  • Kernel memory pressure or OOM events on hosts that regularly run XFS online scrub against large or damaged filesystems

Detection Strategies

  • Compare the running kernel version against the fixed commits listed in the upstream references to confirm patch status
  • Monitor kernel log messages from the xfs subsystem for repeated scrub failures referencing dirtree path creation
  • Track long-term kernel memory consumption on XFS hosts and correlate upward trends with scrub cron jobs or storage management tooling

Monitoring Recommendations

  • Baseline kernel slab usage on XFS systems and alert on sustained growth that does not correlate with workload changes
  • Capture xfs_scrub exit codes and failure counts through host telemetry
  • Forward kernel ring buffer messages to a centralized logging pipeline for retrospective analysis

How to Mitigate CVE-2026-97543

Immediate Actions Required

  • Inventory Linux hosts using XFS and identify kernels that predate the referenced stable commits
  • Apply the vendor-provided kernel update that incorporates the upstream fix as soon as it is available for your distribution
  • Restrict access to xfs_scrub and related administrative tooling to trusted operators until patching is complete

Patch Information

The fix adds the missing bitmap destruction on the failure branch of both xchk_dirtree_create_path and xrep_dirtree_create_adoption_path. Stable backports are available in the following upstream commits: commit 0b756de8, commit 1a441c68, commit 3b10ca43, and commit 582f54dc. Consult your Linux distribution's security tracker for the specific package version that includes these commits.

Workarounds

  • Avoid invoking XFS online scrub (xfs_scrub) on affected kernels where the dirtree scrubber repeatedly fails
  • Schedule periodic reboots on long-running hosts that cannot be patched immediately to reclaim leaked kernel memory
  • Limit administrative access to filesystem scrub and repair utilities through sudoers policy or role-based access control
bash
# Verify running kernel version and compare against fixed stable commits
uname -r

# Check whether the installed kernel package includes the XFS dirtree fix
# (replace with your distribution's package manager as appropriate)
rpm -q --changelog kernel | grep -i 'xchk_dirtree_create_path'
dpkg-query -W -f='${Version}\n' linux-image-$(uname -r)

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.