CVE-2026-139382: rpmsg: virtio: fix error handling in TX buffer wait
In the Linux kernel, the following vulnerability has been resolved:
rpmsg: virtio: fix error handling in TX buffer wait
The TX buffer wait loop in rpmsgsendoffchannelraw() ignores the possibility of waiteventinterruptibletimeout() returning a negative value, which happens when the wait is interrupted by a signal. In that case the loop spins back around and re-arms the wait instead of propagating the signal, which can stall a task that is trying to be killed.
Separately, on a genuine timeout (return value 0) the function returns -ERESTARTSYS, which is reserved for signal-interrupted syscalls that the kernel may restart. A timeout is not a signal and should not be treated as restartable; return -ETIMEDOUT instead.
Handle both cases explicitly: return err directly when negative, and return -ETIMEDOUT on timeout.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In rpmsg_send_offchannel_raw(), propagate a negative return from wait_event_interruptible_timeout() directly; when it returns 0 for a timeout, return -ETIMEDOUT instead of treating it as restartable.