{"id":"CVE-2026-43153","state":"PUBLISHED","title":"xfs: remove xfs_attr_leaf_hasname","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: remove xfs_attr_leaf_hasname\n\nThe calling convention of xfs_attr_leaf_hasname() is problematic, because\nit returns a NULL buffer when xfs_attr3_leaf_read fails, a valid buffer\nwhen xfs_attr3_leaf_lookup_int returns -ENOATTR or -EEXIST, and a\nnon-NULL buffer pointer for an already released buffer when\nxfs_attr3_leaf_lookup_int fails with other error values.\n\nFix this by simply open coding xfs_attr_leaf_hasname in the callers, so\nthat the buffer release code is done by each caller of\nxfs_attr3_leaf_read.","publishedAt":"2026-05-06T11:27:34.446Z","updatedAt":"2026-10-30T12:25:04.870Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"dfb3474230d392f809359f15aeaa9be4b1798199","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"759e44a6cba8e81d945ffc269a326ec39e7f54f5","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"2fbc8421d1db102c0e5458607e042a23a03648b1","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"457121c01f609b9934addbb04d5c1ef638c71c61","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"530082df991903f3330354e99e0cb7b05debfa86","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"3a65ea768b8094e4699e72f9ab420eb9e0f3f568","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/libxfs/xfs_attr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/libxfs/xfs_attr.c"]}],"references":["https://git.kernel.org/stable/c/dfb3474230d392f809359f15aeaa9be4b1798199","https://git.kernel.org/stable/c/759e44a6cba8e81d945ffc269a326ec39e7f54f5","https://git.kernel.org/stable/c/2fbc8421d1db102c0e5458607e042a23a03648b1","https://git.kernel.org/stable/c/457121c01f609b9934addbb04d5c1ef638c71c61","https://git.kernel.org/stable/c/530082df991903f3330354e99e0cb7b05debfa86","https://git.kernel.org/stable/c/3a65ea768b8094e4699e72f9ab420eb9e0f3f568"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-30T12:42:04.495Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/43xxx/CVE-2026-43153.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43153","state":"PUBLISHED","datePublished":"2026-05-06T11:27:34.446Z","dateUpdated":"2026-10-30T12:25:04.870Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-01T14:12:55.989Z"},"containers":{"cna":{"title":"xfs: remove xfs_attr_leaf_hasname","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: remove xfs_attr_leaf_hasname\n\nThe calling convention of xfs_attr_leaf_hasname() is problematic, because\nit returns a NULL buffer when xfs_attr3_leaf_read fails, a valid buffer\nwhen xfs_attr3_leaf_lookup_int returns -ENOATTR or -EEXIST, and a\nnon-NULL buffer pointer for an already released buffer when\nxfs_attr3_leaf_lookup_int fails with other error values.\n\nFix this by simply open coding xfs_attr_leaf_hasname in the callers, so\nthat the buffer release code is done by each caller of\nxfs_attr3_leaf_read."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"dfb3474230d392f809359f15aeaa9be4b1798199","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"759e44a6cba8e81d945ffc269a326ec39e7f54f5","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"2fbc8421d1db102c0e5458607e042a23a03648b1","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"457121c01f609b9934addbb04d5c1ef638c71c61","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"530082df991903f3330354e99e0cb7b05debfa86","versionType":"git"},{"version":"07120f1abdff80f3d1351f733661abe28d609535","status":"affected","lessThan":"3a65ea768b8094e4699e72f9ab420eb9e0f3f568","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/libxfs/xfs_attr.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/libxfs/xfs_attr.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dfb3474230d392f809359f15aeaa9be4b1798199"},{"url":"https://git.kernel.org/stable/c/759e44a6cba8e81d945ffc269a326ec39e7f54f5"},{"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"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable XFS attr path is reached through local extended-attribute syscalls such as setxattr/removexattr on a mounted XFS filesystem, not through network packet processing.\nAC:L - Given a crafted or corrupted one-block XFS attribute leaf, the erroneous buffer release path is deterministic and does not require winning a race or depending on heap layout to trigger.\nPR:L - An unprivileged local user can reach the update path through user.* xattrs on regular files or directories for which they have normal write permission; the trigger does not require CAP_SYS_ADMIN once the filesystem is mounted.\nUI:N - The attacker can invoke the xattr operation directly; no additional victim action is needed for the vulnerable code path after the XFS filesystem is available.\nS:U - The corruption occurs inside the kernel/XFS buffer management path and does not cross a separate security authority such as a VM or device isolation boundary.\nC:H - The stale xfs_buf pointer can be released a second time, creating use-after-free/refcount corruption in kernel buffer/log-item objects, which can reasonably support kernel memory disclosure primitives.\nI:H - The double release is kernel memory corruption of reusable buffer-management objects, which is reasonably treatable as exploitable for arbitrary write or control-flow impact under the required higher-severity rule.\nA:H - At minimum, the stale or already freed buffer/log-item path can cause a kernel oops, panic, deadlock, or filesystem shutdown when repeatedly triggered."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:25:04.870Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.18.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.19.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-43153","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T15:15:12.446055Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T19:16:22.333Z"}}]}}}