Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-43158

published high CVSS 3.1 · 8.8

xfs: fix freemap adjustments when adding xattrs to leaf blocks

Published
06 May 2026, 11:27:37 UTC
Updated
19 Oct 2026, 19:16:22 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d08976725355b9d54d8332fce223fa281cc304a5 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 6a8737afbccc340e718e0b22577312826390be8b · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a396b3d73d51355e50acdb403ba9c4cae4c1174e · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 38613c01f69e1e77e6b8acab1e8ac665d01c2f15 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ef42a8766ff3fdf51cf72fb36d0859c09d134478 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 43f3b18679615a93bd848afde3602ba160637a46 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 24ce71852f2cee6581e2cbebc15489ed52bf63b7 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3eefc0c2b78444b64feeb3783c017d6adc3cd3ce · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.10.252 through 5.10.* (unaffected · semver) · 5.15.202 through 5.15.* (unaffected · semver) · 6.1.165 through 6.1.* (unaffected · semver) · 6.6.128 through 6.6.* (unaffected · semver) · 6.12.75 through 6.12.* (unaffected · semver) · 6.18.16 through 6.18.* (unaffected · semver) · 6.19.6 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2026-115 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2026-100 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1543 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-211.18.1.el10_2 ALSA-2026:21557
AlmaLinux 10 kernel-doc Advisory build 6.12.0-211.18.1.el10_2 ALSA-2026:21557
Show 100 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2026-1544 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1702 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.126.1.rt7.467.el8_10 ALSA-2026:21745
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 perf Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.126.1.el8_10 ALSA-2026:21706
AlmaLinux 9 kernel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-doc Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-headers Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-tools Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-687.12.1.el9_8 ALSA-2026:21556

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: xfs: fix freemap adjustments when adding xattrs to leaf blocks xfs/592 and xfs/794 both trip this assertion in the leaf block freemap adjustment code after ~20 minutes of running on my test VMs: ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) + xfs_attr3_leaf_hdr_size(leaf)); Upon enabling quite a lot more debugging code, I narrowed this down to fsstress trying to set a local extended attribute with namelen=3 and valuelen=71. This results in an entry size of 80 bytes. At the start of xfs_attr3_leaf_add_work, the freemap looks like this: i 0 base 448 size 0 rhs 448 count 46 i 1 base 388 size 132 rhs 448 count 46 i 2 base 2120 size 4 rhs 448 count 46 firstused = 520 where "rhs" is the first byte past the end of the leaf entry array. This is inconsistent -- the entries array ends at byte 448, but freemap[1] says there's free space starting at byte 388! By the end of the function, the freemap is in worse shape: i 0 base 456 size 0 rhs 456 count 47 i 1 base 388 size 52 rhs 456 count 47 i 2 base 2120 size 4 rhs 456 count 47 firstused = 440 Important note: 388 is not aligned with the entries array element size of 8 bytes. Based on the incorrect freemap, the name area starts at byte 440, which is below the end of the entries array! That's why the assertion triggers and the filesystem shuts down. How did we end up here? First, recall from the previous patch that the freemap array in an xattr leaf block is not intended to be a comprehensive map of all free space in the leaf block. In other words, it's perfectly legal to have a leaf block with: * 376 bytes in use by the entries array * freemap[0] has [base = 376, size = 8] * freemap[1] has [base = 388, size = 1500] * the space between 376 and 388 is free, but the freemap stopped tracking that some time ago If we add one xattr, the entries array grows to 384 bytes, and freemap[0] becomes [base = 384, size = 0]. So far, so good. But if we add a second xattr, the entries array grows to 392 bytes, and freemap[0] gets pushed up to [base = 392, size = 0]. This is bad, because freemap[1] hasn't been updated, and now the entries array and the free space claim the same space. The fix here is to adjust all freemap entries so that none of them collide with the entries array. Note that this fix relies on commit 2a2b5932db6758 ("xfs: fix attr leaf header freemap.size underflow") and the previous patch that resets zero length freemap entries to have base = 0.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

71

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The vulnerable XFS xattr add path is reachable locally via setxattr/fsetxattr, and also remotely on XFS-backed network file servers through in-kernel nfsd NFSv4 SETXATTR and ksmbd xattr/ACL operations that call into vfs_setxattr. Scoring the most severe reasonable deployment, a network file server exposes this over the network. AC:L - The attacker controls the xattr names, values, and operation sequence needed to shape the leaf freemap state; this is not a race and does not depend on conditions outside attacker control. The fsstress reproducer indicates the bug can be triggered by ordinary repeated xattr operations. PR:L - The attacker needs write permission to a file or directory on the affected XFS filesystem/export, but no administrative capability is required for user.* xattrs. This is basic user/share access rather than real root or CAP_SYS_ADMIN. UI:N - No victim action is required once the attacker has access to a writable XFS file or exported share. The attacker can invoke the xattr operation directly. S:U - The vulnerability corrupts XFS/kernel filesystem metadata within the same kernel security authority. It does not cross a VM, IOMMU, or sandbox boundary. C:H - The bug causes attacker-controlled corruption of xattr leaf entries in a kernel metadata buffer, and those entries drive later xattr parsing offsets and namespace interpretation. Under the required uncertainty rule, this memory/metadata corruption is treated as potentially leveragable for high confidentiality impact. I:H - The faulty freemap lets xattr name/value data be allocated on top of the leaf entry array, corrupting XFS metadata and potentially access-control/security xattr state. This is attacker-controlled metadata corruption with documented data-loss potential, so integrity impact is High. A:H - The known failure mode trips XFS corruption assertions/verifiers and shuts down the filesystem. A remote or local write-capable attacker can repeat the operation to cause high availability impact.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d08976725355b9d54d8332fce223fa281cc304a5 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 6a8737afbccc340e718e0b22577312826390be8b (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a396b3d73d51355e50acdb403ba9c4cae4c1174e (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 38613c01f69e1e77e6b8acab1e8ac665d01c2f15 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ef42a8766ff3fdf51cf72fb36d0859c09d134478 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 43f3b18679615a93bd848afde3602ba160637a46 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 24ce71852f2cee6581e2cbebc15489ed52bf63b7 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3eefc0c2b78444b64feeb3783c017d6adc3cd3ce (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.10.252 through 5.10.* (unaffected · semver)5.15.202 through 5.15.* (unaffected · semver)6.1.165 through 6.1.* (unaffected · semver)6.6.128 through 6.6.* (unaffected · semver)6.12.75 through 6.12.* (unaffected · semver)6.18.16 through 6.18.* (unaffected · semver)6.19.6 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-664 CWE-664 Improper Control of a Resource Through its Lifetime (CISA-ADP · adp)

References

8

Provider assertions

2

Linux · cna

xfs: fix freemap adjustments when adding xattrs to leaf blocks

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
1c7a54a4e3b40096b8291ce50a96820074fbc8827f41875e3c193c549b0d110d
Ingested
19 Oct 2026, 19:18:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected