CVE-2026-97546

xfs: don't spin forever on zero-length dirents when salvaging them

Published Sep 25, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xfs: don't spin forever on zero-length dirents when salvaging them

LOLLM noticed that xrep_dir_recover_data can spin forever if it
encounters an unused dirent that claims to have length zero. Fix that,
and prevent the same thing from happening with a zero-length entry.

Analysis

AI-generated

Technical impact

In the Linux kernel, the XFS filesystem recovery routine entered an infinite loop when it encountered an unused directory entry that claimed to have zero length. The result is continuous CPU consumption during salvage operations, effectively denying service. This flaw is a classic denial‑of‑service weakness caused by improper validation of filesystem metadata, a resource exhaustion flaw in the style of CWE‑835.

Affected Systems

All Linux kernel builds that include the XFS filesystem are affected, as the CPE identifier refers to the entire kernel. No specific version range is supplied, so any kernel prior to the implementation of the patch could be vulnerable. Administrators should consult vendor release notes for the kernel version containing the fix.

Risk and Exploitability

The CVSS score is 5.5, indicating a moderate impact, and the EPSS score is below 1%. The vulnerability is not listed in the CISA KEV catalog. Exploitation would require triggering XFS recovery with a crafted corrupted directory entry; the likely attack vector is inferred to be a local or crash‑induced scenario. The infinite loop can lead to CPU exhaustion, so if the system must recover from bad metadata, the risk of a denial‑of‑service attack is high. Operators should treat this as a moderate‑impact issue and prioritize updating the kernel.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the patch implementing the fix for zero‑length dirent handling.
  • If a kernel update is not immediately available, cherry‑pick the patch from the referenced commit and rebuild the kernel before deployment.
  • If the system frequently encounters XFS corruption, consider mounting the filesystem with recovery disabled or in read‑only mode until the patched kernel is in use.

Generated by OpenCVE AI on October 1, 2026 at 10:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
Weaknesses CWE-835
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfs: don't spin forever on zero-length dirents when salvaging them LOLLM noticed that xrep_dir_recover_data can spin forever if it encounters an unused dirent that claims to have length zero. Fix that, and prevent the same thing from happening with a zero-length entry.
Title xfs: don't spin forever on zero-length dirents when salvaging them
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:09 AM
Reserved
Sep 24, 2026, 4:01 PM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 19, 2026, 10:17 AM
Severity
Low
Public date
Sep 25, 2026, 12:00 AM