# CVE-2026-90264: btrfs: always wait for ordered extents to avoid OE races

> 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 7, 2026-11-26)
- **Published:** 2026-09-17T16:08:00.740Z
- **Modified:** 2026-10-30T13:20:48.187Z

## Who should check

- Anyone running Linux \>= 10b1abc1d0c8ae25c2b9ac465515717c68ffff05, \< fa9f6e1958bb05b8a660d9cf2b6f51dee0077290; \>= 097b159d43407b4ea0e5d14ae58a3bbfa5865a24, \< 043b6fd9706e4335851f317352d2717ad40e6d83; \>= ccd5c23122b01de646c80485e2fadac82d1aab62, \< de8f5cb3cb611f96909797b4b017831f5141cbbe; \>= c3a3d3986719026c85950bfa6f41a251fc46e16f, \< 58ce50b1802a446d3b26df1b9c58be1ab8913d0e; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< aaac9b352f7f53f5d2f7e58e612d67d2a2bf7094; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< ec78575dde998c21be7e0cb2503b5620f34b6255; 4b5875cbb85dbf4d11385eb0a7a589c086d76d42; b8df7f486a4617d3096b8fa27148cfa54b1d6a8d; \>= 6.1.178, \< 6.1.191; \>= 6.6.145, \< 6.6.160; …
- Anyone running Linux 7.2

## Description

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

btrfs: always wait for ordered extents to avoid OE races

\[BUG\]
Syzbot reported a bug that there can be conflicting OEs for the same
range:

  BTRFS critical (device loop4): panic in insert\_ordered\_extent:264: overlapping ordered extents, existing oe file\_offset 16384 num\_bytes 430080 flags 0x1089, new oe file\_offset 16384 num\_bytes 430080 flags 0x80 (errno=-17 Object alrea\[  179.162726\]\[ T6897\] BTRFS critical (device loop4): panic in insert\_ordered\_extent:264: overlapping ordered extents, existing oe file\_offset 16384 num\_bytes 430080 flags 0x1089, new oe file\_offset 16384 num\_bytes 430080 flags 0x80 (errno=-17 Object already exists)
  ------------\[ cut here \]------------
  kernel BUG at fs/btrfs/ordered-data.c:264!
  Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
  RIP: 0010:btrfs\_alloc\_ordered\_extent+0x943/0xad0
  Call Trace:
   \<TASK\>
   cow\_file\_range+0x744/0x12a0
   fallback\_to\_cow+0x5ea/0xa00
   run\_delalloc\_nocow+0x110c/0x17a0
   btrfs\_run\_delalloc\_range+0xbe4/0x1c20
   writepage\_delalloc+0x104d/0x1ba0
   btrfs\_writepages+0x1667/0x28b0
   do\_writepages+0x338/0x560
   filemap\_fdatawrite\_range+0x1f2/0x300
   btrfs\_fdatawrite\_range+0x54/0xf0
   btrfs\_direct\_write+0x6a0/0xc30
   btrfs\_do\_write\_iter+0x329/0x790
   do\_iter\_readv\_writev+0x624/0x8d0
   vfs\_writev+0x34c/0x990
   \_\_se\_sys\_pwritev2+0x17a/0x2a0
   do\_syscall\_64+0x174/0x580
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---

\[CAUSE\]
Since commit ff66fe666233 ("btrfs: fix incorrect buffered IO fallback
for append direct writes"), if the direct IO finished short, we will
revert the isize back to the original one, so that append writes can be
respected during the buffered fallback.

Normally we rely on lock\_and\_cleanup\_extent\_if\_need() function during
buffered writeback to wait for any existing ordered extents.

But that ordered extent waiting only happens if the start\_pos is inside
the isize.
Since we have reverted the isize during failed direct IO, we will not
wait for any ordered extents.

This means we can have a race where the direct IO OE is still in the
tree, finished but not yet removed, then we're inserting the OE for the
buffered write, causing the above crash.

\[FIX\]
Make the OE wait to be unconditional, to handle the reverted isize
situation.

And since lock\_and\_cleanup\_extent\_if\_need() now either lock the
extents or return -EAGAIN, also remove the branches that handles
no-extent-locked cases, and rename it to remove the "\_if\_need" suffix.

The following micro benchmark shows the runtime difference for
btrfs\_buffered\_write(), doing \`xfs\_io -f -c "pwrite 0 1m"\` workload,
all values are the average runtime in nano seconds.

      function runtime              \|   before    \|     after
 -----------------------------------+-------------+---------------
 lock\_and\_cleanup\_extent\_if\_need()  \|     58.2    \|    183.0
 btrfs\_buffered\_write()             \|   2115.6    \|   2973.3

The overall runtime of btrfs\_buffered\_write() is still pretty
tiny (still less than 3 micro seconds), I'd say the extra cost is still
acceptable.

An alternative to fix this problem is to wait ordered extents during
iomap\_end() where the isize revert is done.

But that solution will break nowait requirement, as if a nowait direct
IO finished short, we have to wait for the OEs unconditionally or the
next append buffered IO can still hit the same problem.

So here we have to move the wait cost to buffered write, but at least
the code is slightly more streamline.

## Affected and fixed versions

- Linux: \>= 10b1abc1d0c8ae25c2b9ac465515717c68ffff05, \< fa9f6e1958bb05b8a660d9cf2b6f51dee0077290; \>= 097b159d43407b4ea0e5d14ae58a3bbfa5865a24, \< 043b6fd9706e4335851f317352d2717ad40e6d83; \>= ccd5c23122b01de646c80485e2fadac82d1aab62, \< de8f5cb3cb611f96909797b4b017831f5141cbbe; \>= c3a3d3986719026c85950bfa6f41a251fc46e16f, \< 58ce50b1802a446d3b26df1b9c58be1ab8913d0e; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< aaac9b352f7f53f5d2f7e58e612d67d2a2bf7094; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< ec78575dde998c21be7e0cb2503b5620f34b6255; 4b5875cbb85dbf4d11385eb0a7a589c086d76d42; b8df7f486a4617d3096b8fa27148cfa54b1d6a8d; \>= 6.1.178, \< 6.1.191; \>= 6.6.145, \< 6.6.160; … (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-90264.md
Affected: Linux >= 10b1abc1d0c8ae25c2b9ac465515717c68ffff05, < fa9f6e1958bb05b8a660d9cf2b6f51dee0077290; >= 097b159d43407b4ea0e5d14ae58a3bbfa5865a24, < 043b6fd9706e4335851f317352d2717ad40e6d83; >= ccd5c23122b01de646c80485e2fadac82d1aab62, < de8f5cb3cb611f96909797b4b017831f5141cbbe; >= c3a3d3986719026c85950bf…
Fixed in: Linux 043b6fd9706e4335851f317352d2717ad40e6d83, Linux 58ce50b1802a446d3b26df1b9c58be1ab8913d0e, Linux 6.1.191, Linux 6.6.160

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

There is no confirmed exploitation: CVE-2026-90264 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-90264?

It has no CVSS score yet. Unknown.

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

Linux \>= 10b1abc1d0c8ae25c2b9ac465515717c68ffff05, \< fa9f6e1958bb05b8a660d9cf2b6f51dee0077290; \>= 097b159d43407b4ea0e5d14ae58a3bbfa5865a24, \< 043b6fd9706e4335851f317352d2717ad40e6d83; \>= ccd5c23122b01de646c80485e2fadac82d1aab62, \< de8f5cb3cb611f96909797b4b017831f5141cbbe; \>= c3a3d3986719026c85950bfa6f41a251fc46e16f, \< 58ce50b1802a446d3b26df1b9c58be1ab8913d0e; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< aaac9b352f7f53f5d2f7e58e612d67d2a2bf7094; \>= ff66fe6662330226b3f486014c375538d91c44aa, \< ec78575dde998c21be7e0cb2503b5620f34b6255; 4b5875cbb85dbf4d11385eb0a7a589c086d76d42; b8df7f486a4617d3096b8fa27148cfa54b1d6a8d; \>= 6.1.178, \< 6.1.191; \>= 6.6.145, \< 6.6.160; …; Linux 7.2.

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

Yes. Fixed in Linux 043b6fd9706e4335851f317352d2717ad40e6d83, Linux 58ce50b1802a446d3b26df1b9c58be1ab8913d0e, Linux 6.1.191, Linux 6.6.160. No fix listed yet: follow the vendor advisory.

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

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/fa9f6e1958bb05b8a660d9cf2b6f51dee0077290>
- other: <https://git.kernel.org/stable/c/043b6fd9706e4335851f317352d2717ad40e6d83>
- other: <https://git.kernel.org/stable/c/de8f5cb3cb611f96909797b4b017831f5141cbbe>
- other: <https://git.kernel.org/stable/c/58ce50b1802a446d3b26df1b9c58be1ab8913d0e>
- other: <https://git.kernel.org/stable/c/aaac9b352f7f53f5d2f7e58e612d67d2a2bf7094>
- other: <https://git.kernel.org/stable/c/ec78575dde998c21be7e0cb2503b5620f34b6255>

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

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