CVE-2026-43153 PUBLISHED

xfs: remove xfs_attr_leaf_hasname

Assigner: Linux
Reserved: 01.05.2026 Published: 06.05.2026 Updated: 06.05.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 07120f1abdff80f3d1351f733661abe28d609535 to 2fbc8421d1db102c0e5458607e042a23a03648b1 (excl.)
  • affected from 07120f1abdff80f3d1351f733661abe28d609535 to 457121c01f609b9934addbb04d5c1ef638c71c61 (excl.)
  • affected from 07120f1abdff80f3d1351f733661abe28d609535 to 530082df991903f3330354e99e0cb7b05debfa86 (excl.)
  • affected from 07120f1abdff80f3d1351f733661abe28d609535 to 3a65ea768b8094e4699e72f9ab420eb9e0f3f568 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.9 is affected
  • unaffected from 0 to 5.9 (excl.)
  • unaffected from 6.12.75 to 6.12.* (incl.)
  • unaffected from 6.18.16 to 6.18.* (incl.)
  • unaffected from 6.19.6 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References