{"id":"CVE-2026-139382","state":"PUBLISHED","title":"rpmsg: virtio: fix error handling in TX buffer wait","description":"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.","publishedAt":"2026-11-30T13:34:14.404Z","updatedAt":"2026-11-30T13:34:14.404Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"470bea7b52c17e0a94a691a748544bd5ed264b05","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"4b9a2f644a0979adfd58f7f28354115ae2364f87","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"0151502df7e31146594898b82b6a5d4a5956624c","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"35ecb54916792d5f639353f8d24b9b7fda7812b1","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"7dd4cffdf4c2a496ccf783303a03d687a2127baf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/rpmsg/virtio_rpmsg_bus.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.4","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/rpmsg/virtio_rpmsg_bus.c"]}],"references":["https://git.kernel.org/stable/c/470bea7b52c17e0a94a691a748544bd5ed264b05","https://git.kernel.org/stable/c/4b9a2f644a0979adfd58f7f28354115ae2364f87","https://git.kernel.org/stable/c/f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e","https://git.kernel.org/stable/c/743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf","https://git.kernel.org/stable/c/0151502df7e31146594898b82b6a5d4a5956624c","https://git.kernel.org/stable/c/35ecb54916792d5f639353f8d24b9b7fda7812b1","https://git.kernel.org/stable/c/7dd4cffdf4c2a496ccf783303a03d687a2127baf"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139382.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139382","state":"PUBLISHED","datePublished":"2026-11-30T13:34:14.404Z","dateUpdated":"2026-11-30T13:34:14.404Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.930Z"},"containers":{"cna":{"title":"rpmsg: virtio: fix error handling in TX buffer wait","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"470bea7b52c17e0a94a691a748544bd5ed264b05","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"4b9a2f644a0979adfd58f7f28354115ae2364f87","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"0151502df7e31146594898b82b6a5d4a5956624c","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"35ecb54916792d5f639353f8d24b9b7fda7812b1","versionType":"git"},{"version":"bcabbccabffe7326f046f25737ba1084f463c65c","status":"affected","lessThan":"7dd4cffdf4c2a496ccf783303a03d687a2127baf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/rpmsg/virtio_rpmsg_bus.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.4","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/rpmsg/virtio_rpmsg_bus.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/470bea7b52c17e0a94a691a748544bd5ed264b05"},{"url":"https://git.kernel.org/stable/c/4b9a2f644a0979adfd58f7f28354115ae2364f87"},{"url":"https://git.kernel.org/stable/c/f175dabbac2e9b29c1d4ecd9d2abc9074ea07b6e"},{"url":"https://git.kernel.org/stable/c/743a3ff31b88853a097ff76c8f4e0bfb4f7bf8bf"},{"url":"https://git.kernel.org/stable/c/0151502df7e31146594898b82b6a5d4a5956624c"},{"url":"https://git.kernel.org/stable/c/35ecb54916792d5f639353f8d24b9b7fda7812b1"},{"url":"https://git.kernel.org/stable/c/7dd4cffdf4c2a496ccf783303a03d687a2127baf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:14.404Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}