CVE-2026-143166

Not scored yetLast modified Dec 3, 2026

Description

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

btrfs: fix bio counter and bioc leak when async checksumming fails

A single failed checksum allocation can make a later device replace hang forever. btrfs_submit_chunk() takes a dev-replace bio counter reference and a bioc before it hands a write to the checksum worker. If the checksum fails there (e.g., its allocation fails), run_one_async_done() ends the bio but drops neither. The counter then never gets back to zero and the next replace waits for it:

[ 8.369] BTRFS info (device ram0): dev_replace from /dev/ram0 (devid 1) to /dev/ram1 finished [41.534] INFO: task btrfscsum:80 blocked for more than 20 seconds. [41.534] btrfs_rm_dev_replace_blocked+0x135/0x180 [41.534] btrfs_dev_replace_finishing+0xefe/0x13b0

The worker is only used when CONFIG_BTRFS_EXPERIMENTAL is off and the checksum isn't a fast one, e.g., sha256. We hit it on a sha256 filesystem.

We put the bioc and drop the counter in that error branch. We also put the bioc on the synchronous error path and on the btrfs_split_bio() error path, which both only drop the counter. With the fix, the replace doesn't hang anymore.

This bug was identified and confirmed with the help of fault-injection testing on a deterministic hypervisor currently under development. Our C reproducer however hits it within about 35s.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143167In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: clear ->private of deferred free pages free_pages_nolocCVE-2026-143168In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: snapshot the preferred zone against shrink rebuilds getCVE-2026-143169In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: keep the pagesets of an empty zone When the last memoryCVE-2026-143175.3The GiveWP WordPress plugin before 4.16.3 does not restrict the set of available payment gateways to those enabled by the administrator, deCVE-2026-143170In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: don't undo another isolation in alloc_contig_range An aCVE-2026-143171In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: read the zoneref slot once in mempolicy_slab_node() For CVE-2026-143172In the Linux kernel, the following vulnerability has been resolved: mm/mmzone: read the zoneref slot once in zonelist_zone() Memory hotpluCVE-2026-143173In the Linux kernel, the following vulnerability has been resolved: aio: don't let exit_aio() return before complete() is done exit_aio() CVE-2026-143174In the Linux kernel, the following vulnerability has been resolved: eventpoll: wake the next waiter when a woken waiter is killed ProcesseCVE-2026-143175In the Linux kernel, the following vulnerability has been resolved: pidfd: restrict task access ioctls to the caller's pid namespace pidfdCVE-2026-143176In the Linux kernel, the following vulnerability has been resolved: errseq: don't let errseq_check_and_advance() hide later errors errseq_CVE-2026-143177In the Linux kernel, the following vulnerability has been resolved: memstick: core: don't clear dev->driver in memstick_device_remove() me
CVE-2026-143166: Unscored | Vulnix