Skip to contentSkip to conversation

CVE-2026-98963: btrfs: always return -EIOCBQUEUED after btrfs_uring_read_extent_endio

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

btrfs: always return -EIOCBQUEUED after btrfs_uring_read_extent_endio

If all bios finish before btrfs_encoded_read_regular_fill_pages() returns, it calls btrfs_uring_read_extent_endio() and previously returned the I/O status. A negative errno then made btrfs_uring_read_extent() unlock and free while btrfs_uring_read_finished() did the same again.

Return -EIOCBQUEUED so only the deferred path cleans up.

The Linux kernel CVE team has assigned CVE-2026-98963 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 6.18.57 with commit 033dda5b321f01661de518a8d5c8607ae8675b14
	Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 7.2.11 with commit a449433b0e3d4a3715d0bbee078f8c603f03c9f6
	Issue introduced in 6.13 with commit 34310c442e175f286b4c06ab5caa4e0b267ea31c and fixed in 7.3 with commit 80a8dbb30d2b00b9c671b02bd73f700f6d20100f

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98963

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/btrfs/inode.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/033dda5b321f01661de518a8d5c8607ae8675b14
	https://git.kernel.org/stable/c/a449433b0e3d4a3715d0bbee078f8c603f03c9f6
	https://git.kernel.org/stable/c/80a8dbb30d2b00b9c671b02bd73f700f6d20100f