CVE-2026-99962: writeback: clear old wb dirty state after inode switches
In the Linux kernel, the following vulnerability has been resolved:
writeback: clear old wb dirty state after inode switches
Switching an inode to another wb updates the target wb's dirty-I/O state, but no longer checks whether the source wb's dirty-I/O lists became empty. The check was lost when inodeiolistdellocked(inode, oldwb) was removed to support tracking clean attached inodes.
If the last dirty inode is moved, WBhasdirtyio remains set on the old wb and its bandwidth contribution remains in bdi->totwritebandwidth. This can keep an empty wb scheduled for periodic writeback and overstate the total bandwidth used to distribute writeback work.
Call wbiolistsdepopulated() on the old wb after the batch of inode switches, while its listlock is still held. This clears the flag and removes the bandwidth contribution if its dirty-I/O lists are empty.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Call wb_io_lists_depopulated() on the old wb after the batch of inode switches, while its list_lock is still held.