CVE-2026-43187
HighIn 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.
CVSS 3.1 score
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-191CVE-2026-43187 is classified as CWE-191
See CWE-191 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
2.6.12
and later are affected. Fixed in
5.10.252,
5.15.202,
6.1.165,
6.6.128,
6.12.75,
6.18.16,
6.19.6,
7.0
and their respective stable series.
References
The following references provide additional information about CVE-2026-43187 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/479b05fc3ee272090f671b06a41f3da8aa78eece
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6f13c1d2a6271c2e73226864a0e83de2770b6f34
-
PatchKernel patch commithttps://git.kernel.org/stable/c/a631899025d47ea1aa6464d76db5b4d3b6d196fd
Frequently asked questions
-
What is CVE-2026-43187?
CVE-2026-43187 is a High severity Linux kernel vulnerability with a CVSS score of 8.8 out of 10 . It affects Linux kernel versions from 2.6.12 onward and has been patched in 5.10.252, 5.15.202, 6.1.165 and others. CVE-2026-43187 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2026-43187?
CVE-2026-43187 has a CVSS score of 8.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2026-43187?
Yes — CVE-2026-43187 has been patched. Fixed versions include 5.10.252, 5.15.202, 6.1.165 and others. If you are running Linux kernel 2.6.12 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-43187 actively exploited?
No — CVE-2026-43187 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.