CVE-2026-43187

xfs: delete attr leaf freemap entries when empty

8.8 high EPSS 0.47%

Published 6 May 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-43187

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-43187 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

xfs: delete attr leaf freemap entries when empty

Back in commit 2a2b5932db6758 ("xfs: fix attr leaf header freemap.size underflow"), Brian Foster observed that it's possible for a small freemap at the end of the end of the xattr entries array to experience a size underflow when subtracting the space consumed by an expansion of the entries array. There are only three freemap entries, which means that it is not a complete index of all free space in the leaf block.

This code can leave behind a zero-length freemap entry with a nonzero base. Subsequent setxattr operations can increase the base up to the point that it overlaps with another freemap entry. This isn't in and of itself a problem because the code in _leaf_add that finds free space ignores any freemap entry with zero size.

However, there's another bug in the freemap update code in _leaf_add, which is that it fails to update a freemap entry that begins midway through the xattr entry that was just appended to the array. That can result in the freemap containing two entries with the same base but different sizes (0 for the "pushed-up" entry, nonzero for the entry that's actually tracking free space). A subsequent _leaf_add can then allocate xattr namevalue entries on top of the entries array, leading to data loss. But fixing that is for later.

For now, eliminate the possibility of confusion by zeroing out the base of any freemap entry that has zero size. Because the freemap is not intended to be a complete index of free space, a subsequent failure to find any free space for a new xattr will trigger block compaction, which regenerates the freemap.

It looks like this bug has been in the codebase for quite a long time.

Severity (CVSS)

8.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.47%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-190 Integer Overflow or Wraparound

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f3c0d1fc1eadbb4adbee5ab7757d41d35f48325b
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before aa9083d97e2157da3c6fb45ddb1a97af7f188f7f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a631899025d47ea1aa6464d76db5b4d3b6d196fd
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ffaf5c99d0f862db021fb1af8b813c1416b1beb2
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e1b8c6452ee99a30e188a88f3f3f804fb1c6004a
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f31a8334e1c54b126fcecf98645a49b6bc5ad399
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 479b05fc3ee272090f671b06a41f3da8aa78eece
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6f13c1d2a6271c2e73226864a0e83de2770b6f34
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.10.252 up to and including 5.10.*
unaffected from 5.15.202 up to and including 5.15.*
unaffected from 6.1.165 up to and including 6.1.*
unaffected from 6.6.128 up to and including 6.6.*
unaffected from 6.12.75 up to and including 6.12.*
unaffected from 6.18.16 up to and including 6.18.*
unaffected from 6.19.6 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-43187 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-43187

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-43187
trivy image --scanners vuln IMAGE | grep CVE-2026-43187

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-43187 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.