# CVE-2023-54080: btrfs: zoned: skip splitting and logical rewriting on pre-alloc write

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:06:12.625Z
- **Modified:** 2026-06-17T06:46:46.080Z

## Who should check

- Anyone running Linux \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< d3cfa44164688a076e8b476cafb5df87d07cfa63; \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< c02d35d89b317994bd713ba82e160c5e7f22d9c8
- Anyone running Linux 6.5

## Description

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

btrfs: zoned: skip splitting and logical rewriting on pre-alloc write

When doing a relocation, there is a chance that at the time of
btrfs\_reloc\_clone\_csums(), there is no checksum for the corresponding
region.

In this case, btrfs\_finish\_ordered\_zoned()'s sum points to an invalid item
and so ordered\_extent's logical is set to some invalid value. Then,
btrfs\_lookup\_block\_group() in btrfs\_zone\_finish\_endio() failed to find a
block group and will hit an assert or a null pointer dereference as
following.

This can be reprodcued by running btrfs/028 several times (e.g, 4 to 16
times) with a null\_blk setup. The device's zone size and capacity is set to
32 MB and the storage size is set to 5 GB on my setup.

    KASAN: null-ptr-deref in range \[0x0000000000000088-0x000000000000008f\]
    CPU: 6 PID: 3105720 Comm: kworker/u16:13 Tainted: G        W          6.5.0-rc6-kts+ \#1
    Hardware name: Supermicro Super Server/X10SRL-F, BIOS 2.0 12/17/2015
    Workqueue: btrfs-endio-write btrfs\_work\_helper \[btrfs\]
    RIP: 0010:btrfs\_zone\_finish\_endio.part.0+0x34/0x160 \[btrfs\]
    Code: 41 54 49 89 fc 55 48 89 f5 53 e8 57 7d fc ff 48 8d b8 88 00 00 00 48 89 c3 48 b8 00 00 00 00 00
    \> 3c 02 00 0f 85 02 01 00 00 f6 83 88 00 00 00 01 0f 84 a8 00 00
    RSP: 0018:ffff88833cf87b08 EFLAGS: 00010206
    RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
    RDX: 0000000000000011 RSI: 0000000000000004 RDI: 0000000000000088
    RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed102877b827
    R10: ffff888143bdc13b R11: ffff888125b1cbc0 R12: ffff888143bdc000
    R13: 0000000000007000 R14: ffff888125b1cba8 R15: 0000000000000000
    FS:  0000000000000000(0000) GS:ffff88881e500000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 00007f3ed85223d5 CR3: 00000001519b4005 CR4: 00000000001706e0
    Call Trace:
     \<TASK\>
     ? die\_addr+0x3c/0xa0
     ? exc\_general\_protection+0x148/0x220
     ? asm\_exc\_general\_protection+0x22/0x30
     ? btrfs\_zone\_finish\_endio.part.0+0x34/0x160 \[btrfs\]
     ? btrfs\_zone\_finish\_endio.part.0+0x19/0x160 \[btrfs\]
     btrfs\_finish\_one\_ordered+0x7b8/0x1de0 \[btrfs\]
     ? rcu\_is\_watching+0x11/0xb0
     ? lock\_release+0x47a/0x620
     ? btrfs\_finish\_ordered\_zoned+0x59b/0x800 \[btrfs\]
     ? \_\_pfx\_btrfs\_finish\_one\_ordered+0x10/0x10 \[btrfs\]
     ? btrfs\_finish\_ordered\_zoned+0x358/0x800 \[btrfs\]
     ? \_\_smp\_call\_single\_queue+0x124/0x350
     ? rcu\_is\_watching+0x11/0xb0
     btrfs\_work\_helper+0x19f/0xc60 \[btrfs\]
     ? \_\_pfx\_try\_to\_wake\_up+0x10/0x10
     ? \_raw\_spin\_unlock\_irq+0x24/0x50
     ? rcu\_is\_watching+0x11/0xb0
     process\_one\_work+0x8c1/0x1430
     ? \_\_pfx\_lock\_acquire+0x10/0x10
     ? \_\_pfx\_process\_one\_work+0x10/0x10
     ? \_\_pfx\_do\_raw\_spin\_lock+0x10/0x10
     ? \_raw\_spin\_lock\_irq+0x52/0x60
     worker\_thread+0x100/0x12c0
     ? \_\_kthread\_parkme+0xc1/0x1f0
     ? \_\_pfx\_worker\_thread+0x10/0x10
     kthread+0x2ea/0x3c0
     ? \_\_pfx\_kthread+0x10/0x10
     ret\_from\_fork+0x30/0x70
     ? \_\_pfx\_kthread+0x10/0x10
     ret\_from\_fork\_asm+0x1b/0x30
     \</TASK\>

On the zoned mode, writing to pre-allocated region means data relocation
write. Such write always uses WRITE command so there is no need of splitting
and rewriting logical address. Thus, we can just skip the function for the
case.

## Affected and fixed versions

- Linux: \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< d3cfa44164688a076e8b476cafb5df87d07cfa63; \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< c02d35d89b317994bd713ba82e160c5e7f22d9c8 (cvelist)
- Linux: 6.5 (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-2023-54080. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54080.md
Affected: Linux >= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, < d3cfa44164688a076e8b476cafb5df87d07cfa63; >= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, < c02d35d89b317994bd713ba82e160c5e7f22d9c8; Linux 6.5
Fixed in: no fixed version listed yet

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-2023-54080 being exploited?

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

### How serious is CVE-2023-54080?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54080?

Linux \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< d3cfa44164688a076e8b476cafb5df87d07cfa63; \>= cbfce4c7fbde23cc8bcba44822a58c728caf6ec9, \< c02d35d89b317994bd713ba82e160c5e7f22d9c8; Linux 6.5.

### Is there a fix for CVE-2023-54080?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54080?

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/d3cfa44164688a076e8b476cafb5df87d07cfa63>
- other: <https://git.kernel.org/stable/c/c02d35d89b317994bd713ba82e160c5e7f22d9c8>

## 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-2023-54080>

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