# CVE-2026-80536: xfs: bounds-check buffer log item's dirty bitmap

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-08-26T14:37:11.584Z
- **Modified:** 2026-10-16T20:17:58.070Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< acb4e26295e7f0e685815a3fd3d70bd8329cefa1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f3859c35a4fbc1c1c58431f684f808e43696891d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f7b5fa83e2c192be922121b764415fa8c7549ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7528b42813f02724a78fce1da24d69d1bfc4d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7e32d4eebae6ca24f8a673c107fd7eca1f47afc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8288214459ead7e87d26e5822f62c14a4f2ed6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< edaf5b6bd625356893da20d69a259b34a9de2694; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 813f8136a2ce1fee266d02a7df73db6e8a541604
- Anyone running Linux 2.6.12

## Description

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

xfs: bounds-check buffer log item's dirty bitmap

xlog\_recover\_do\_reg\_buffer() replays each dirty region described by a
buffer log item's bitmap into the buffer read for that item:

	memcpy(xfs\_buf\_offset(bp, (uint)bit \<\< XFS\_BLF\_SHIFT),
		item-\>ri\_buf\[i\].iov\_base,
		nbits \<\< XFS\_BLF\_SHIFT);

The destination offset (bit/nbits, from the logged dirty bitmap) and the
buffer size (from the logged blf\_len) are both attacker-controlled and
otherwise unrelated, yet the only thing bounding the copy is an ASSERT(),
which compiles away on production kernels. A crafted image logging a
small blf\_len together with a bitmap bit past the end of that buffer
drives the memcpy() past the buffer's allocation, corrupting adjacent
kernel heap during mount-time log recovery. This is reachable by anyone
who can get a crafted image mounted -- the malicious-filesystem threat
model XFS already guards against elsewhere.

Turn the ASSERT() into a real XFS\_IS\_CORRUPT() check that aborts recovery
of the buffer with -EFSCORRUPTED, consistent with the validate-and-fail
idiom already used in xlog\_recover\_do\_inode\_buffer() and
xfs\_dquot\_item\_recover.c. xlog\_recover\_do\_reg\_buffer() therefore becomes
STATIC int and its three callers propagate the error.

Found and confirmed with KASAN on a CONFIG\_XFS\_DEBUG=n build: the crafted
image trips a slab-out-of-bounds write before this change and fails
recovery cleanly with -EFSCORRUPTED after it.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< acb4e26295e7f0e685815a3fd3d70bd8329cefa1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f3859c35a4fbc1c1c58431f684f808e43696891d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f7b5fa83e2c192be922121b764415fa8c7549ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7528b42813f02724a78fce1da24d69d1bfc4d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7e32d4eebae6ca24f8a673c107fd7eca1f47afc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8288214459ead7e87d26e5822f62c14a4f2ed6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< edaf5b6bd625356893da20d69a259b34a9de2694; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 813f8136a2ce1fee266d02a7df73db6e8a541604 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 813f8136a2ce1fee266d02a7df73db6e8a541604 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80536. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80536.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < acb4e26295e7f0e685815a3fd3d70bd8329cefa1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f3859c35a4fbc1c1c58431f684f808e43696891d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f7b5fa83e2c192be922121b764415fa8c7549ea1; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 7e32d4eebae6ca24f8a673c107fd7eca1f47afc2, Linux 813f8136a2ce1fee266d02a7df73db6e8a541604

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80536 being exploited?

There is no confirmed exploitation: CVE-2026-80536 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80536?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-80536?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< acb4e26295e7f0e685815a3fd3d70bd8329cefa1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f3859c35a4fbc1c1c58431f684f808e43696891d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f7b5fa83e2c192be922121b764415fa8c7549ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7528b42813f02724a78fce1da24d69d1bfc4d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7e32d4eebae6ca24f8a673c107fd7eca1f47afc2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8288214459ead7e87d26e5822f62c14a4f2ed6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< edaf5b6bd625356893da20d69a259b34a9de2694; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 813f8136a2ce1fee266d02a7df73db6e8a541604; Linux 2.6.12.

### Is there a fix for CVE-2026-80536?

Yes. Fixed in Linux 7e32d4eebae6ca24f8a673c107fd7eca1f47afc2, Linux 813f8136a2ce1fee266d02a7df73db6e8a541604. Upgrade Linux to 813f8136a2ce1fee266d02a7df73db6e8a541604 or later.

### How do I check if I'm affected by CVE-2026-80536?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/acb4e26295e7f0e685815a3fd3d70bd8329cefa1>
- other: <https://git.kernel.org/stable/c/f3859c35a4fbc1c1c58431f684f808e43696891d>
- other: <https://git.kernel.org/stable/c/f7b5fa83e2c192be922121b764415fa8c7549ea1>
- other: <https://git.kernel.org/stable/c/b7528b42813f02724a78fce1da24d69d1bfc4d38>
- other: <https://git.kernel.org/stable/c/7e32d4eebae6ca24f8a673c107fd7eca1f47afc2>
- other: <https://git.kernel.org/stable/c/f8288214459ead7e87d26e5822f62c14a4f2ed6b>
- other: <https://git.kernel.org/stable/c/edaf5b6bd625356893da20d69a259b34a9de2694>
- other: <https://git.kernel.org/stable/c/813f8136a2ce1fee266d02a7df73db6e8a541604>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80536>

HTML: <https://flawdb.com/CVE-2026-80536> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80536>
