CVE-2026-80535

xfs: don't double-lock when deleting a self-referential directory

Published Aug 26, 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 double-lock when deleting a self-referential directory

LOLLM notices that the dirtree scrubber can detect a directory that
refers to itself. In this case, it's not correct for the directory tree
repair code to try to iolock/ilock both sc->ip and dp, because they're
the same inode. Fix this by detecting that corner case and handling it
appropriately.

Analysis

AI-generated

Technical impact

A self‑referential directory within an XFS filesystem triggers a deadlock because the cleanup code attempts to acquire the same inode lock twice. This double locking can stall the kernel’s directory repair routine, leading to a kernel hang or crash and causing a service interruption for processes that rely on XFS or for the entire system. The flaw originates from a missing guard that would detect the self‑referential condition and avoid reacquiring the lock.

Affected Systems

Linux kernels with XFS support that have not applied the fix in commit 17bc347cbdfb125eddac0a815b1f6c1f6eb56676 (or the related commits referenced) are affected. The vulnerability is limited to systems that employ XFS filesystems on those kernel versions.

Risk and Exploitability

No EPSS score is available and the issue is not listed in the CISA KEV catalog. The description does not reveal any publicly disclosed exploits, and exploitation would require the ability to create or manipulate a self‑referential directory in XFS, implying local or privileged access. Given that the flaw can cause a kernel deadlock, the CVSS score of 5.5 indicates moderate severity; however, the lack of exploitation data suggests the likelihood of being attacked is uncertain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the self‑referential directory deletion fix, using the reference commits provided in the advisory.
  • If a kernel upgrade is not feasible, cherry‑pick the patch that implements the self‑referential directory check from the referenced commits into your kernel source tree, rebuild, and install the new kernel.
  • Reboot the system to load the updated kernel and ensure XFS filesystems resume normal operation.

Generated by OpenCVE AI on August 27, 2026 at 03:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4788-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Weaknesses CWE-764
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-399
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfs: don't double-lock when deleting a self-referential directory LOLLM notices that the dirtree scrubber can detect a directory that refers to itself. In this case, it's not correct for the directory tree repair code to try to iolock/ilock both sc->ip and dp, because they're the same inode. Fix this by detecting that corner case and handling it appropriately.
Title xfs: don't double-lock when deleting a self-referential directory
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-764

    Multiple Locks of a Critical Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 26, 2026, 2:37 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 26, 2026, 3:17 PM
Modified
Aug 26, 2026, 3:17 PM
Severity
Low
Public date
Aug 26, 2026, 12:00 AM