CVE-2026-99842: blk-iocost: abort weight transfer on invalid donation weights
In the Linux kernel, the following vulnerability has been resolved:
blk-iocost: abort weight transfer on invalid donation weights
transfersurpluses() warns and then keeps going when the donation calculation produced invalid weights. The following propagation can then divide by a zero hweightinuse, so the warning is immediately followed by a divide error.
When the check trips, abandon this period's donation transfer and release the walk lists. This trades one period without donation for not crashing; the invalid state is not expected on the normal path.
Developed with assistance from Claude Code (Anthropic): the assistant analysed the failure path, drafted the change and ran the checks listed below. The author reviewed the result and remains responsible for it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel blk-iocost, abort the current weight transfer when donation-weight calculation produces invalid weights, and release the walk lists.
Event History
Frequently Asked Questions
What systems are realistically exposed to this failure?
Linux systems using the blk-iocost I/O controller are relevant. The invalid donation-weight state is described as not expected on the normal path, so the provided information does not establish that ordinary default operation triggers it.
What is the impact when the invalid donation-weight check is reached?
The donation-weight propagation can divide by a zero hweight_inuse value, causing a divide error and potentially crashing the kernel. The fix abandons donation transfer for that period and releases the walk lists instead.
Is there a documented workaround if the fix cannot be applied immediately?
No workaround is provided in the available data. The described remediation is to stop the affected period's donation transfer when invalid weights are detected.