# CVE-2026-23423: btrfs: free pages on error in btrfs_uring_read_extent()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-03T13:24:31.966Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

btrfs: free pages on error in btrfs_uring_read_extent()

In this function the 'pages' object is never freed in the hopes that it is
picked up by btrfs_uring_read_finished() whenever that executes in the
future. But that's just the happy path. Along the way previous
allocations might have gone wrong, or we might not get -EIOCBQUEUED from
btrfs_encoded_read_regular_fill_pages(). In all these cases, we go to a
cleanup section that frees all memory allocated by this function without
assuming any deferred execution, and this also needs to happen for the
'pages' allocation.

(As written by CVE List.)

## Affected

- Linux Linux: from 34310c442e175f286b4c06ab5caa4e0b267ea31c before d4f210de01eaccac61eee657f676045ef9771d07; from 34310c442e175f286b4c06ab5caa4e0b267ea31c before 628895890b0c9ac9129129e89455da7db95ba343; from 34310c442e175f286b4c06ab5caa4e0b267ea31c before 3f501412f2079ca14bf68a18d80a2b7a823f1f64; 6.13 (not affected: before 6.13; from 6.18.17 up to 6.18.*; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.13.1 before 6.18.17; from 6.19 before 6.19.7; 6.13; 7.0

## References

- <https://git.kernel.org/stable/c/d4f210de01eaccac61eee657f676045ef9771d07> (patch)
- <https://git.kernel.org/stable/c/628895890b0c9ac9129129e89455da7db95ba343> (patch)
- <https://git.kernel.org/stable/c/3f501412f2079ca14bf68a18d80a2b7a823f1f64> (patch)

## Sources

- CVE List: [CVE-2026-23423](https://www.cve.org/CVERecord?id=CVE-2026-23423), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23423](https://nvd.nist.gov/vuln/detail/CVE-2026-23423), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-23423 · Whole record: https://cve.day/CVE-2026-23423.json · Rebuilt by cve.day 2026-11-25T22:59:17.866Z
