{"id":"CVE-2026-139382","summary":"rpmsg: virtio: fix error handling in TX buffer wait","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nrpmsg: virtio: fix error handling in TX buffer wait\n\nThe TX buffer wait loop in rpmsg_send_offchannel_raw() ignores the\npossibility of wait_event_interruptible_timeout() returning a\nnegative value, which happens when the wait is interrupted by a\nsignal. In that case the loop spins back around and re-arms the\nwait instead of propagating the signal, which can stall a task\nthat is trying to be killed.\n\nSeparately, on a genuine timeout (return value 0) the function\nreturns -ERESTARTSYS, which is reserved for signal-interrupted\nsyscalls that the kernel may restart. A timeout is not a signal\nand should not be treated as restartable; return -ETIMEDOUT\ninstead.\n\nHandle both cases explicitly: return err directly when negative,\nand return -ETIMEDOUT on timeout.","modified":"2026-12-01T21:02:37.888905119Z","published":"2026-11-30T13:34:14.404Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139382.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0151502df7e31146594898b82b6a5d4a5956624c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35ecb54916792d5f639353f8d24b9b7fda7812b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/470bea7b52c17e0a94a691a748544bd5ed264b05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b9a2f644a0979adfd58f7f28354115ae2364f87"},{"type":"WEB","url":"https://git.kernel.org/stable/c/743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7dd4cffdf4c2a496ccf783303a03d687a2127baf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139382.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139382"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bcabbccabffe7326f046f25737ba1084f463c65c"},{"fixed":"470bea7b52c17e0a94a691a748544bd5ed264b05"},{"fixed":"4b9a2f644a0979adfd58f7f28354115ae2364f87"},{"fixed":"f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e"},{"fixed":"743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf"},{"fixed":"0151502df7e31146594898b82b6a5d4a5956624c"},{"fixed":"35ecb54916792d5f639353f8d24b9b7fda7812b1"},{"fixed":"7dd4cffdf4c2a496ccf783303a03d687a2127baf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139382.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139382.json"}}],"schema_version":"1.9.2"}