CVE-2026-43158

HIGHNVD 8.88.8
EchelonGraph scoreMEDIUM confidence

Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-05-06. NVD baseline CVSS 8.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, nvd
8.8
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 8.8Exploit: NoneExposed: 0

A fix is available — apply it.

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.

CVSS v3
8.8
EG Score
8.8(medium)
EPSS
37.9%
KEV
Not listed

Published

May 6, 2026

Last Modified

May 13, 2026

Advisory Details (8)

Auto-updated May 13, 2026
No patch confirmed yet.
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/ef42a8766ff3fdf51cf72fb36d0859c09d134478
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/d08976725355b9d54d8332fce223fa281cc304a5
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/a396b3d73d51355e50acdb403ba9c4cae4c1174e
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/6a8737afbccc340e718e0b22577312826390be8b
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/43f3b18679615a93bd848afde3602ba160637a46
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/3eefc0c2b78444b64feeb3783c017d6adc3cd3ce
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/38613c01f69e1e77e6b8acab1e8ac665d01c2f15
generic

xfs: fix freemap adjustments when adding xattrs to leaf blocks - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/24ce71852f2cee6581e2cbebc15489ed52bf63b7

Patch Availability(5)

Vendor / EcosystemFixed in / PatchReleasedSource
redhatkernel-0:6.12.0-211.18.1.el10_22026-05-28redhat
redhatkernel-rt-0:4.18.0-553.126.1.rt7.467.el8_102026-05-28redhat
redhatkernel-0:4.18.0-553.126.1.el8_102026-05-28redhat
redhatkernel-0:5.14.0-687.12.1.el9_82026-05-28redhat
linuxKernel @ 5.10.252osv

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 8× in last 7d / 31× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 127 total refreshes for this CVE.

  1. 2026-07-22 14:08 UTCEPSS rescore
  2. 2026-07-21 15:24 UTCEPSS rescore
  3. 2026-07-20 17:08 UTCEPSS rescore
  4. 2026-07-20 09:04 UTCOSV refresh
  5. 2026-07-19 14:31 UTCEPSS rescore
  6. 2026-07-19 02:29 UTCEPSS rescore
  7. 2026-07-18 10:04 UTCEPSS rescore
  8. 2026-07-16 17:03 UTCEPSS rescore
  9. 2026-07-15 16:57 UTCEPSS rescore
  10. 2026-07-15 02:00 UTCEPSS rescore
  11. 2026-07-13 22:30 UTCEPSS rescore
  12. 2026-07-13 06:13 UTCEPSS rescore
  13. 2026-07-12 05:46 UTCEPSS rescore
  14. 2026-07-11 08:27 UTCEPSS rescore
  15. 2026-07-09 19:10 UTCEPSS rescore
  16. 2026-07-08 15:16 UTCEPSS rescore
  17. 2026-07-07 13:46 UTCEPSS rescore
  18. 2026-07-06 16:27 UTCEPSS rescore
  19. 2026-07-06 02:23 UTCEPSS rescore
  20. 2026-07-05 02:30 UTCEPSS rescore
  21. 2026-07-04 06:31 UTCEPSS rescore
  22. 2026-07-01 15:06 UTCEPSS rescore
  23. 2026-06-30 23:22 UTCEPSS rescore
  24. 2026-06-29 14:06 UTCEPSS rescore
  25. 2026-06-28 14:07 UTCEPSS rescore
Show 75 more
  1. 2026-06-28 04:56 UTCEPSS rescore
  2. 2026-06-27 03:08 UTCEPSS rescore
  3. 2026-06-25 13:49 UTCEPSS rescore
  4. 2026-06-25 13:49 UTCEPSS rescore
  5. 2026-06-24 14:05 UTCEPSS rescore
  6. 2026-06-23 21:33 UTCEPSS rescore
  7. 2026-06-22 14:25 UTCEPSS rescore
  8. 2026-06-22 14:25 UTCEPSS rescore
  9. 2026-06-21 14:56 UTCEPSS rescore
  10. 2026-06-21 14:56 UTCEPSS rescore
  11. 2026-06-21 01:59 UTCEPSS rescore
  12. 2026-06-19 19:25 UTCEPSS rescore
  13. 2026-06-18 17:52 UTCEPSS rescore
  14. 2026-06-18 17:52 UTCEPSS rescore
  15. 2026-06-17 17:53 UTCEPSS rescore
  16. 2026-06-16 17:52 UTCEPSS rescore
  17. 2026-06-15 17:49 UTCEPSS rescore
  18. 2026-06-14 20:21 UTCVendor advisory
  19. 2026-06-14 20:21 UTCGHSA enrichment
  20. 2026-06-14 07:38 UTCVendor advisory
  21. 2026-06-14 07:38 UTCGHSA enrichment
  22. 2026-06-13 23:00 UTCEPSS rescore
  23. 2026-06-13 00:36 UTCVendor advisory
  24. 2026-06-13 00:36 UTCGHSA enrichment
  25. 2026-06-12 23:12 UTCEPSS rescore
  26. 2026-06-12 23:12 UTCEPSS rescore
  27. 2026-06-12 03:15 UTCVendor advisory
  28. 2026-06-12 03:15 UTCGHSA enrichment
  29. 2026-06-11 14:32 UTCVendor advisory
  30. 2026-06-11 14:32 UTCGHSA enrichment
  31. 2026-06-11 14:00 UTCEPSS rescore
  32. 2026-06-11 01:49 UTCVendor advisory
  33. 2026-06-11 01:49 UTCGHSA enrichment
  34. 2026-06-10 22:18 UTCEPSS rescore
  35. 2026-06-10 13:22 UTCEPSS rescore
  36. 2026-06-10 13:22 UTCEPSS rescore
  37. 2026-06-10 12:23 UTCVendor advisory
  38. 2026-06-10 12:23 UTCGHSA enrichment
  39. 2026-06-09 23:41 UTCVendor advisory
  40. 2026-06-09 23:41 UTCGHSA enrichment
  41. 2026-06-09 10:58 UTCVendor advisory
  42. 2026-06-09 10:58 UTCGHSA enrichment
  43. 2026-06-08 22:15 UTCVendor advisory
  44. 2026-06-08 22:15 UTCGHSA enrichment
  45. 2026-06-08 14:17 UTCEPSS rescore
  46. 2026-06-08 14:17 UTCEPSS rescore
  47. 2026-06-08 06:59 UTCVendor advisory
  48. 2026-06-08 06:59 UTCGHSA enrichment
  49. 2026-06-07 18:16 UTCVendor advisory
  50. 2026-06-07 18:16 UTCGHSA enrichment
  51. 2026-06-07 15:25 UTCEPSS rescore
  52. 2026-06-07 15:25 UTCEPSS rescore
  53. 2026-06-07 05:33 UTCVendor advisory
  54. 2026-06-07 05:33 UTCGHSA enrichment
  55. 2026-06-06 16:51 UTCVendor advisory
  56. 2026-06-06 16:51 UTCGHSA enrichment
  57. 2026-06-06 13:47 UTCEPSS rescore
  58. 2026-06-06 13:47 UTCEPSS rescore
  59. 2026-06-06 04:05 UTCVendor advisory
  60. 2026-06-06 04:05 UTCGHSA enrichment
  61. 2026-06-05 22:47 UTCEPSS rescore
  62. 2026-06-05 15:22 UTCVendor advisory
  63. 2026-06-05 15:22 UTCGHSA enrichment
  64. 2026-06-05 06:10 UTCEPSS rescore
  65. 2026-06-05 06:10 UTCEPSS rescore
  66. 2026-06-05 02:39 UTCVendor advisory
  67. 2026-06-05 02:39 UTCGHSA enrichment
  68. 2026-06-04 13:56 UTCVendor advisory
  69. 2026-06-04 13:56 UTCGHSA enrichment
  70. 2026-06-04 01:13 UTCVendor advisory
  71. 2026-06-04 01:13 UTCGHSA enrichment
  72. 2026-06-03 12:30 UTCVendor advisory
  73. 2026-06-03 12:30 UTCGHSA enrichment
  74. 2026-06-02 23:47 UTCVendor advisory
  75. 2026-06-02 23:47 UTCGHSA enrichment

Frequently asked(5)

What is CVE-2026-43158?
CVE-2026-43158 is a high vulnerability published on May 6, 2026. 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 >=…
When was CVE-2026-43158 disclosed?
CVE-2026-43158 was first published in the National Vulnerability Database on May 6, 2026, with the most recent update on May 13, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-43158 actively exploited?
CVE-2026-43158 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 37.9% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-43158?
CVE-2026-43158 has a CVSS v3 base score of 8.8 (NVD).
How do I remediate CVE-2026-43158?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-43158, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-43158

Explore →

Is Your Infrastructure Affected by CVE-2026-43158?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.