CVE-2026-139436: block: take i_rwsem for the splice read path
block: take irwsem for the splice read path
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
Take inode_lock_shared() around filemap_splice_read() in the block-device splice read path to lock against set_blocksize().
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The race requires a splice read from a block device while the device block size is changed concurrently with BLKBSZSET. The reported reproducer toggles the block size between 512 bytes and 64K.
What is the likely impact if the race is triggered?
On a kernel built with CONFIG_DEBUG_VM, the race can insert a folio smaller than the mapping's minimum folio order and trigger a VM_BUG_ON_FOLIO assertion. The supplied trace shows this resulting in a kernel BUG and invalid-opcode Oops.
How can I determine whether a system is exposed to the reported failure mode?
Investigate whether local workloads can both issue splice reads against block devices and change their block size through BLKBSZSET concurrently. A CONFIG_DEBUG_VM kernel may report the specific folio-order assertion in __filemap_add_folio if the race occurs.
What can be done if the resolved kernel update cannot be deployed immediately?
Avoid concurrent block-device splice reads and BLKBSZSET block-size changes. In particular, do not toggle a device's block size while processes may be splicing data from that device.