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.
Published: 2026-05-06
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption potentially leading to a crash or privilege escalation
Action: Apply Patch
AI Analysis

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.

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

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
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

Fri, 30 Oct 2026 12:30:00 +0000


Wed, 21 Oct 2026 12:30:00 +0000


Mon, 19 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 16 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 13 May 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-Other

Fri, 08 May 2026 13:00:00 +0000

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'}


Thu, 07 May 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590

Thu, 07 May 2026 00:15:00 +0000

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


Wed, 06 May 2026 14:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590

Wed, 06 May 2026 12:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:25:04.870Z

Reserved: 2026-05-01T14:12:55.989Z

Link: CVE-2026-43153

cve-icon Vulnrichment

Updated: 2026-10-16T15:15:12.995Z

cve-icon NVD

Status : Modified

Published: 2026-05-06T12:16:33.073

Modified: 2026-10-30T13:18:47.073

Link: CVE-2026-43153

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-06T00:00:00Z

Links: CVE-2026-43153 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T07:45:17Z

Weaknesses