# CVE-2026-93255: btrfs: make sure EXTENT\_BUFFER\_READING is cleared under refs\_lock

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-24T15:51:42.056Z
- **Modified:** 2026-10-19T10:17:16.780Z

## Who should check

- Anyone running Linux \>= f5427cab065641a4553d38bb8c4932b8d456c7a7, \< 8f7285d608ed0db7c9f09f341547db5ce1351090; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 2073f3d97b0c5d34fe64812d1237e37bd79c17ec; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 690c2accacb1aca91ab8186d15dee56da8723f31; b0c33c0628c5b0678fcae2e05e7b2764149248f8; \>= 7.1.8, \< 7.2
- Anyone running Linux 7.2

## Description

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

btrfs: make sure EXTENT\_BUFFER\_READING is cleared under refs\_lock

\[FALSE ALERTS\]
There is a bug report that the warning inside
invalidate\_and\_check\_btree\_folios() got triggered during btrfs/298:

 BTRFS info (device sdd): first mount of filesystem f9bf732a-a19b-44b9-99a7-614ddff168e2
 BTRFS info (device sdd): using crc32c checksum algorithm
 BTRFS error (device sdd): failed to find fsid cb2fdb42-b638-4f2f-badd-4127467ba674 when attempting to open seed devices
 BTRFS error (device sdd): failed to read chunk tree: -2
 ------------\[ cut here \]------------
 WARNING: disk-io.c:3342 at invalidate\_and\_check\_btree\_folios+0x260/0x3c0 \[btrfs\], CPU\#4: mount/125993
 CPU: 4 UID: 0 PID: 125993 Comm: mount Tainted: G        W  OE       7.1.0-rc7-custom+ \#1 PREEMPT(full)
 Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20250812-19.fc42 08/12/2025
 Call trace:
  invalidate\_and\_check\_btree\_folios+0x260/0x3c0 \[btrfs\] (P)
  open\_ctree+0x1f50/0x23b0 \[btrfs\]
  btrfs\_get\_tree+0x89c/0xc48 \[btrfs\]
  vfs\_get\_tree+0x30/0x110
  vfs\_cmd\_create+0x58/0xe8
  \_\_arm64\_sys\_fsconfig+0x39c/0x518
  invoke\_syscall.constprop.0+0x48/0x120
  el0\_svc\_common.constprop.0+0x40/0xe8
  do\_el0\_svc+0x24/0x38
  el0\_svc+0x50/0x310
  el0t\_64\_sync\_handler+0xa0/0xe8
  el0t\_64\_sync+0x198/0x1a0
 ---\[ end trace 0000000000000000 \]---
 BTRFS warning (device sdd): unable to release extent buffer 365985792 owner 3 gen 17 refs 3 flags 0x5

\[CAUSE\]
In that invalidate\_and\_check\_btree\_folios() we wait for the eb to finish
its read, then check if it's only held by us and the btree inode.

If not, then do a warning as it may be still held, and could cause
problems.

But there is a small window where the check can lead to false alerts:

    Thread A (Read endio)         \|        Thread B (Unmount)
----------------------------------+-------------------------------------
 end\_bbio\_meta\_read()             \|
 \| The eb has one extra ref held  \|
 \| by the reader, and has         \|
 \| EXTENT\_BUFFER\_READING flag set \| invalidate\_and\_check\_btree\_folios()
 \|                                \| \|
 \|- clear\_extent\_buffer\_reading() \| \|
 \|                                \| \|- wait\_on\_bit\_io();
 \|                                \| \|  The EXTENT\_BUFFER\_READING flag is
 \|                                \| \|  cleared
 \|                                \| \|- if (refcount\_read(eb-\>refs) \> 2)
 \|                                \|    The eb is held by the read, us
 \|                                \|    and btree inode, thus it
 \|                                \|    will trigger the warning
 \|- free\_extent\_buffer()          \|

\[FIX\]
Introduce a helper, free\_extent\_buffer\_clear\_reading().

If the new parameter, @clear\_reading, is set, we will hold the spinlock
at the beginning of free\_extent\_buffer\_clear\_reading() to make sure the
EXTENT\_BUFFER\_READING flag is cleared inside the same critical section
of decreasing refs.

Now free\_extent\_buffer() will just call
free\_extent\_buffer\_clear\_reading() with @clear\_reading set to false, so
no behavior change.

But for end\_bbio\_meta\_read(), it will not clear\_extent\_buffer\_reading()
directly, but pass @clear\_reading as true.

Then inside invalidate\_and\_check\_btree\_folios(), hold the refs\_lock
before reading refs.
So that we eliminate the race window completely.

## Affected and fixed versions

- Linux: \>= f5427cab065641a4553d38bb8c4932b8d456c7a7, \< 8f7285d608ed0db7c9f09f341547db5ce1351090; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 2073f3d97b0c5d34fe64812d1237e37bd79c17ec; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 690c2accacb1aca91ab8186d15dee56da8723f31; b0c33c0628c5b0678fcae2e05e7b2764149248f8; \>= 7.1.8, \< 7.2 (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-93255.md
Affected: Linux >= f5427cab065641a4553d38bb8c4932b8d456c7a7, < 8f7285d608ed0db7c9f09f341547db5ce1351090; >= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, < 2073f3d97b0c5d34fe64812d1237e37bd79c17ec; >= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, < 690c2accacb1aca91ab8186d15dee56da8723f31; b0c33c0628c5b0678fcae2e05e…
Fixed in: Linux 8f7285d608ed0db7c9f09f341547db5ce1351090, Linux 2073f3d97b0c5d34fe64812d1237e37bd79c17ec, Linux 690c2accacb1aca91ab8186d15dee56da8723f31, Linux 7.2

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f5427cab065641a4553d38bb8c4932b8d456c7a7, \< 8f7285d608ed0db7c9f09f341547db5ce1351090; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 2073f3d97b0c5d34fe64812d1237e37bd79c17ec; \>= 83f7e52b7ed1c3e03b79123e20b6f6adf8d886bb, \< 690c2accacb1aca91ab8186d15dee56da8723f31; b0c33c0628c5b0678fcae2e05e7b2764149248f8; \>= 7.1.8, \< 7.2; Linux 7.2.

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

Yes. Fixed in Linux 8f7285d608ed0db7c9f09f341547db5ce1351090, Linux 2073f3d97b0c5d34fe64812d1237e37bd79c17ec, Linux 690c2accacb1aca91ab8186d15dee56da8723f31, Linux 7.2. Upgrade Linux to 7.2 or later.

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

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/8f7285d608ed0db7c9f09f341547db5ce1351090>
- other: <https://git.kernel.org/stable/c/2073f3d97b0c5d34fe64812d1237e37bd79c17ec>
- other: <https://git.kernel.org/stable/c/690c2accacb1aca91ab8186d15dee56da8723f31>

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

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