---
id: CVE-2026-43153
title: 'xfs: remove xfs_attr_leaf_hasname'
summary: |-
  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 …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 07120f1abdff80f3d1351f733661abe28d609535 <
    2fbc8421d1db102c0e5458607e042a23a03648b1
  - >-
    Linux >= 07120f1abdff80f3d1351f733661abe28d609535 <
    457121c01f609b9934addbb04d5c1ef638c71c61
  - >-
    Linux >= 07120f1abdff80f3d1351f733661abe28d609535 <
    530082df991903f3330354e99e0cb7b05debfa86
  - >-
    Linux >= 07120f1abdff80f3d1351f733661abe28d609535 <
    3a65ea768b8094e4699e72f9ab420eb9e0f3f568
  - Linux 5.9
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T15:15:12.446055Z'
published: '2026-05-06'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T15:20:34.702Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-43153'
references:
  - url: 'https://git.kernel.org/stable/c/2fbc8421d1db102c0e5458607e042a23a03648b1'
  - url: 'https://git.kernel.org/stable/c/457121c01f609b9934addbb04d5c1ef638c71c61'
  - url: 'https://git.kernel.org/stable/c/530082df991903f3330354e99e0cb7b05debfa86'
  - url: 'https://git.kernel.org/stable/c/3a65ea768b8094e4699e72f9ab420eb9e0f3f568'
tags:
  - cve.org
epss: 0.00175
epssPercentile: 0.06561
ingestedAt: '2026-10-16T17:24:46.685Z'
---

## Overview

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.

## Affected

- `Linux >= 07120f1abdff80f3d1351f733661abe28d609535 < 2fbc8421d1db102c0e5458607e042a23a03648b1`
- `Linux >= 07120f1abdff80f3d1351f733661abe28d609535 < 457121c01f609b9934addbb04d5c1ef638c71c61`
- `Linux >= 07120f1abdff80f3d1351f733661abe28d609535 < 530082df991903f3330354e99e0cb7b05debfa86`
- `Linux >= 07120f1abdff80f3d1351f733661abe28d609535 < 3a65ea768b8094e4699e72f9ab420eb9e0f3f568`
- `Linux 5.9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
