CVE-2026-43153

xfs: remove xfs_attr_leaf_hasname

Published May 6, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xfs: remove xfs_attr_leaf_hasname

The calling convention of xfs_attr_leaf_hasname() is problematic, because
it returns a NULL buffer when xfs_attr3_leaf_read fails, a valid buffer
when xfs_attr3_leaf_lookup_int returns -ENOATTR or -EEXIST, and a
non-NULL buffer pointer for an already released buffer when
xfs_attr3_leaf_lookup_int fails with other error values.

Fix this by simply open coding xfs_attr_leaf_hasname in the callers, so
that the buffer release code is done by each caller of
xfs_attr3_leaf_read.

Analysis

AI-generated

Technical impact

The vulnerability arises from the XFS filesystem’s helper function xfs_attr_leaf_hasname returning inconsistent buffer states depending on the outcome of internal read and lookup calls. In some error conditions the function may return a NULL pointer, a valid buffer that is subsequently freed twice, or a dangling pointer that is later dereferenced. These inconsistencies can cause a use‑after‑free or double‑free in kernel memory, potentially leading to data corruption, a kernel panic, or, if an attacker can exercise the failure path, privilege escalation. The weakness is mapped to CWE‑416 and CWE‑825.

Affected Systems

All Linux kernels that implement XFS and have not applied the commit that removes or inlines xfs_attr_leaf_hasname are vulnerable. The patches referenced by the CVE include commit hashes 2fbc8421d1db102c0e5458607e042a23a03648b1, 3a65ea768b8094e4699e72f9ab420eb9e0f3f568, 457121c01f609b9934addbb04d5c1ef638c71c61, and 530082df991903f3330354e99e0cb7b05debfa86. Administrators should treat all kernel versions prior to these commits as affected and should upgrade to a distribution‑maintained kernel that incorporates the fix.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score of less than 1% implies a low probability of exploitation in the wild at present. The vulnerability is not listed in the CISA KEV catalog, meaning no publicly known exploits exist. However, because the flaw involves kernel memory management, a successful local or privileged exploit could precipitate a kernel crash or privilege escalation. The most likely attack vector requires local or elevated access that can trigger the internal error path, resulting in a use‑after‑free or double‑free scenario.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that contains the commit removing xfs_attr_leaf_hasname (for example the latest stable kernel from your distribution).
  • If an immediate update is not possible, unmount any XFS filesystems or disable the XFS module to prevent the vulnerable code path from executing.
  • As a temporary workaround, apply the inline patch that replaces the helper logic in your current kernel source and rebuild the kernel; ensure the patch incorporates proper buffer release on all paths.

Generated by OpenCVE AI on October 23, 2026 at 07:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-Other
Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfs: remove xfs_attr_leaf_hasname The calling convention of xfs_attr_leaf_hasname() is problematic, because it returns a NULL buffer when xfs_attr3_leaf_read fails, a valid buffer when xfs_attr3_leaf_lookup_int returns -ENOATTR or -EEXIST, and a non-NULL buffer pointer for an already released buffer when xfs_attr3_leaf_lookup_int fails with other error values. Fix this by simply open coding xfs_attr_leaf_hasname in the callers, so that the buffer release code is done by each caller of xfs_attr3_leaf_read.
Title xfs: remove xfs_attr_leaf_hasname
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:25 PM
Reserved
May 1, 2026, 2:12 PM
Status
Modified
Published
May 6, 2026, 12:16 PM
Modified
Nov 11, 2026, 9:10 PM
Severity
Moderate
Public date
May 6, 2026, 12:00 AM