CVE-2026-139382

rpmsg: virtio: fix error handling in TX buffer wait

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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 rpmsg_send_offchannel_raw() ignores the
possibility of wait_event_interruptible_timeout() 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.

Analysis

AI-generated

Technical impact

This vulnerability exists in the Linux kernel rpmsg virtio driver. The driver’s routine that waits for an available transmit buffer incorrectly handles the return values of wait_event_interruptible_timeout(). When the call returns a negative value because the wait was interrupted by a signal, the routine discards the error and re‑enters the wait, allowing a task to spin indefinitely. A genuine timeout is also handled incorrectly: the function returns -ERESTARTSYS instead of -ETIMEDOUT, causing callers to treat the timeout as a signal‑interrupted syscall. Both mistakes can cause a kernel task to become unkillable or block process shutdown, leading to a denial of service or creating a foothold for further privilege escalation.

Affected Systems

All Linux kernel builds that include the rpmsg virtio driver and were released before the patch commit. The affected product is the Linux kernel; any version prior to the commit that introduced the rpmsg virtio fix is vulnerable.

Risk and Exploitability

No CVSS score or EPSS score is published, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector requires local access with the ability to trigger rpmsg off‑channel messaging or to send signals, which implies high privilege, typically root. While the probability of exploitation is therefore low, the impact of a task becoming permanently unkillable could lead to resource exhaustion, system instability, or enable attacker persistence once privileges are gained.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the rpmsg virtio fix, or apply the patch from the referenced Git commit history.
  • If a kernel update is not immediately possible, disable the rpmsg driver or block off‑channel messaging to eliminate the buggy code path.
  • Monitor for processes that become unkillable or exhibit delayed shutdown and restart them as needed to mitigate temporary stalls.

Generated by OpenCVE AI on December 1, 2026 at 07:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-703
Type Values Removed Values Added
Description 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 rpmsg_send_offchannel_raw() ignores the possibility of wait_event_interruptible_timeout() 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.
Title rpmsg: virtio: fix error handling in TX buffer wait
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-703

    Improper Check or Handling of Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM