Linux
xfs: remove xfs_attr_leaf_hasname
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 07120f1abdff80f3d1351f733661abe28d609535, < dfb3474230d392f809359f15aeaa9be4b1798199
- >= 07120f1abdff80f3d1351f733661abe28d609535, < 759e44a6cba8e81d945ffc269a326ec39e7f54f5
- >= 07120f1abdff80f3d1351f733661abe28d609535, < 2fbc8421d1db102c0e5458607e042a23a03648b1
- >= 07120f1abdff80f3d1351f733661abe28d609535, < 457121c01f609b9934addbb04d5c1ef638c71c61
- >= 07120f1abdff80f3d1351f733661abe28d609535, < 530082df991903f3330354e99e0cb7b05debfa86
- >= 07120f1abdff80f3d1351f733661abe28d609535, < 3a65ea768b8094e4699e72f9ab420eb9e0f3f568
Fixed in dfb3474230d392f809359f15aeaa9be4b1798199, 759e44a6cba8e81d945ffc269a326ec39e7f54f5, 2fbc8421d1db102c0e5458607e042a23a03648b1, 457121c01f609b9934addbb04d5c1ef638c71c61, 530082df991903f3330354e99e0cb7b05debfa86, 3a65ea768b8094e4699e72f9ab420eb9e0f3f568
- 5.9
Fixed in 0, 6.1.191, 6.6.160, 6.12.75, 6.18.16, 6.19.6, 7.0
Mitigation
Upgrade Linux to dfb3474230d392f809359f15aeaa9be4b1798199 or 759e44a6cba8e81d945ffc269a326ec39e7f54f5 or 2fbc8421d1db102c0e5458607e042a23a03648b1 or 457121c01f609b9934addbb04d5c1ef638c71c61 or 530082df991903f3330354e99e0cb7b05debfa86 or 3a65ea768b8094e4699e72f9ab420eb9e0f3f568 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.75 or 6.18.16 or 6.19.6 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.