CVE-2026-139745: virtio_ccw: always take irq_lock in the classic interrupt handler
In the Linux kernel, the following vulnerability has been resolved:
virtioccw: always take irqlock in the classic interrupt handler
virtioccwinthandler() takes vcdev->irqlock around its vringinterrupt() calls only when VIRTIOHARDENNOTIFICATION is enabled.
The virtio shutdown path calls synchronizecbs() even when notification hardening is disabled. virtioresetdevice() now does so after the transport reset too.
For classic interrupts, synchronizecbs() takes vcdev->irqlock for writing, but the interrupt handler does not take the matching read lock in that configuration. synchronizecbs() can return while a callback is still running.
Take the read lock unconditionally so the write side can synchronize with the callbacks.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In virtio_ccw_int_handler(), always take vcdev->irq_lock around vring_interrupt() calls for classic interrupts, regardless of whether VIRTIO_HARDEN_NOTIFICATION is enabled.