# CVE-2026-23181: btrfs: sync read disk super and set block size

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2026-02-14T16:27:12.137Z
- **Modified:** 2026-06-17T10:21:03.047Z

## Who should check

- Anyone running Linux \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< ccb3c75d57039adb3170ae54a0d470e359705984; \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< 3f29d661e5686f3aa14e6f11537ff5c49846f2e2
- Anyone running Linux 6.15

## Description

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

btrfs: sync read disk super and set block size

When the user performs a btrfs mount, the block device is not set
correctly. The user sets the block size of the block device to 0x4000
by executing the BLKBSZSET command.
Since the block size change also changes the mapping-\>flags value, this
further affects the result of the mapping\_min\_folio\_order() calculation.

Let's analyze the following two scenarios:

Scenario 1: Without executing the BLKBSZSET command, the block size is
0x1000, and mapping\_min\_folio\_order() returns 0;

Scenario 2: After executing the BLKBSZSET command, the block size is
0x4000, and mapping\_min\_folio\_order() returns 2.

do\_read\_cache\_folio() allocates a folio before the BLKBSZSET command
is executed. This results in the allocated folio having an order value
of 0. Later, after BLKBSZSET is executed, the block size increases to
0x4000, and the mapping\_min\_folio\_order() calculation result becomes 2.

This leads to two undesirable consequences:

1. filemap\_add\_folio() triggers a VM\_BUG\_ON\_FOLIO(folio\_order(folio) \<
mapping\_min\_folio\_order(mapping)) assertion.

2. The syzbot report \[1\] shows a null pointer dereference in
create\_empty\_buffers() due to a buffer head allocation failure.

Synchronization should be established based on the inode between the
BLKBSZSET command and read cache page to prevent inconsistencies in
block size or mapping flags before and after folio allocation.

\[1\]
KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
RIP: 0010:create\_empty\_buffers+0x4d/0x480 fs/buffer.c:1694
Call Trace:
 folio\_create\_buffers+0x109/0x150 fs/buffer.c:1802
 block\_read\_full\_folio+0x14c/0x850 fs/buffer.c:2403
 filemap\_read\_folio+0xc8/0x2a0 mm/filemap.c:2496
 do\_read\_cache\_folio+0x266/0x5c0 mm/filemap.c:4096
 do\_read\_cache\_page mm/filemap.c:4162 \[inline\]
 read\_cache\_page\_gfp+0x29/0x120 mm/filemap.c:4195
 btrfs\_read\_disk\_super+0x192/0x500 fs/btrfs/volumes.c:1367

## Affected and fixed versions

- Linux: \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< ccb3c75d57039adb3170ae54a0d470e359705984; \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< 3f29d661e5686f3aa14e6f11537ff5c49846f2e2 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 3f29d661e5686f3aa14e6f11537ff5c49846f2e2 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-23181. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23181.md
Affected: Linux >= 3c20917120ce61f2a123ca0810293872f4c6b5a4, < ccb3c75d57039adb3170ae54a0d470e359705984; >= 3c20917120ce61f2a123ca0810293872f4c6b5a4, < 3f29d661e5686f3aa14e6f11537ff5c49846f2e2; Linux 6.15
Fixed in: Linux 3f29d661e5686f3aa14e6f11537ff5c49846f2e2

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-23181 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< ccb3c75d57039adb3170ae54a0d470e359705984; \>= 3c20917120ce61f2a123ca0810293872f4c6b5a4, \< 3f29d661e5686f3aa14e6f11537ff5c49846f2e2; Linux 6.15.

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

Yes. Fixed in Linux 3f29d661e5686f3aa14e6f11537ff5c49846f2e2. Upgrade Linux to 3f29d661e5686f3aa14e6f11537ff5c49846f2e2 or later.

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

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/ccb3c75d57039adb3170ae54a0d470e359705984>
- other: <https://git.kernel.org/stable/c/3f29d661e5686f3aa14e6f11537ff5c49846f2e2>

## 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-23181>

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