CVE-2026-43158: xfs: fix freemap adjustments when adding xattrs to leaf blocks
Noroxi assessment
Priority: Monitor (action score 35/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.46% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 24ce71852f2cee6581e2cbebc15489ed52bf63b7, 38613c01f69e1e77e6b8acab1e8ac665d01c2f15, 3eefc0c2b78444b64feeb3783c017d6adc3cd3ce.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Linux Linux 24ce71852f2cee6581e2cbebc15489ed52bf63b7, 38613c01f69e1e77e6b8acab1e8ac665d01c2f15, 3eefc0c2b78444b64feeb3783c017d6adc3cd3ce or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2026-11689
- ALSA-2026:21556
- ALSA-2026:21557
- ALSA-2026:21706
- ALSA-2026:21745
- RHSA-2026:21556
- RHSA-2026:21557
- RHSA-2026:21706
- RHSA-2026:21745
- RHSA-2026:26462
- RHSA-2026:26515
- RHSA-2026:26535
- RHSA-2026:26563
- RHSA-2026:26570
- RHSA-2026:27708
- RHSA-2026:27729
- RHSA-2026:27735
- RHSA-2026:33215
- RHSA-2026:41236
- RLSA-2026:21556
- Published
- May 6, 2026
- Updated
- Nov 11, 2026
- EPSS
- 0.4% · 41th percentile
- CWE
- CWE-787
Report tools
Action score
35
Low priority for now.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · Linux
- 8.8
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 2.6.12affected
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before d08976725355b9d54d8332fce223fa281cc304a5affected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before 6a8737afbccc340e718e0b22577312826390be8baffected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before a396b3d73d51355e50acdb403ba9c4cae4c1174eaffected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before 38613c01f69e1e77e6b8acab1e8ac665d01c2f15affected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before ef42a8766ff3fdf51cf72fb36d0859c09d134478affected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before 43f3b18679615a93bd848afde3602ba160637a46affected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before 24ce71852f2cee6581e2cbebc15489ed52bf63b7affected · git
- 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and later · before 3eefc0c2b78444b64feeb3783c017d6adc3cd3ceaffected · git
- before 2.6.12not affected · semver
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel2.6.12.1 and later · before 5.10.252
- linux linux kernel5.11 and later · before 5.15.202
- linux linux kernel5.16 and later · before 6.1.165
- linux linux kernel6.2 and later · before 6.6.128
- linux linux kernel6.7 and later · before 6.12.75
- linux linux kernel6.13 and later · before 6.18.16
- linux linux kernel6.19 and later · before 6.19.6
- linux linux kernel2.6.12
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | kernel | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-devel-matched | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-debug-modules-extra | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-devel-matched | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-64k-modules-extra | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-abi-stablelists | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-cross-headers | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug-devel-matched | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
| AlmaLinux:10 | kernel-debug-modules-core | before 6.12.0-211.18.1.el10_2 | 6.12.0-211.18.1.el10_2 |
+96
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2026-43156May 6, 2026 · net: usb: pegasus: enable basic endpoint checking22Monitor
- ← EarlierCVE-2026-43157May 6, 2026 · octeontx2-af: CGX: fix bitmap leaks22Monitor
- Later →CVE-2026-43160May 6, 2026 · mfd: macsmc: Initialize mutex22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 24ce71852f2cee6581e2cbebc15489ed52bf63b7 | Vendor (CNA) |
| Linux Linux | 38613c01f69e1e77e6b8acab1e8ac665d01c2f15 | Vendor (CNA) |
| Linux Linux | 3eefc0c2b78444b64feeb3783c017d6adc3cd3ce | Vendor (CNA) |
| Linux Linux | 43f3b18679615a93bd848afde3602ba160637a46 | Vendor (CNA) |
| Linux Linux | 6a8737afbccc340e718e0b22577312826390be8b | Vendor (CNA) |
| Linux Linux | a396b3d73d51355e50acdb403ba9c4cae4c1174e | Vendor (CNA) |
| Linux Linux | d08976725355b9d54d8332fce223fa281cc304a5 | Vendor (CNA) |
| Linux Linux | ef42a8766ff3fdf51cf72fb36d0859c09d134478 | Vendor (CNA) |
| almalinux:kernel | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-core | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-devel | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-devel-matched | 5.14.0-687.12.1.el9_8 · AlmaLinux:9 | Package registry (OSV) |
| debian:linux | 6.1.170-1 · Debian:12 | Package registry (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-64k-debug-devel | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-64k-debuginfo | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-64k-devel | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-64k-devel-matched | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-debug-devel | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:kernel-debug-devel-matched | 0:5.14.0-687.12.1.el9_8 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
+5
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-26-0196 · May 8, 2026(Linux Kernel Güvenlik Bildirimi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (2)
- SSVC exploitation— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- git.kernel.org/stable/c/38613c01f69e1e77e6b8acab1e8ac665d01c2f15
- git.kernel.org/stable/c/3eefc0c2b78444b64feeb3783c017d6adc3cd3ce
- git.kernel.org/stable/c/43f3b18679615a93bd848afde3602ba160637a46
- git.kernel.org/stable/c/6a8737afbccc340e718e0b22577312826390be8b
- git.kernel.org/stable/c/a396b3d73d51355e50acdb403ba9c4cae4c1174e
- git.kernel.org/stable/c/d08976725355b9d54d8332fce223fa281cc304a5
- git.kernel.org/stable/c/ef42a8766ff3fdf51cf72fb36d0859c09d134478
Vendor advisories and official records. Exploit/PoC links are deliberately left out.