{"id":"CVE-2026-99606","summary":"net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data\n\nWhile bytes spliced off the RMB are still in a pipe, recvmsg() waits\nfor the pipe to release them before it copies the data behind them.\nThe path to that wait skips the timeout and signal checks, and\nsmc_rx_wait() returns at once on RCV_SHUTDOWN. With a signal pending,\nafter SHUT_RD, or once the peer closes or shuts down writing,\nrecvmsg() spins on a CPU until the pipe is drained, and SIGKILL cannot\nstop it. MSG_DONTWAIT and an expired SO_RCVTIMEO wait there too\ninstead of returning -EAGAIN.\n\nCheck the timeout and signals before that wait, and end it when the\npipe releases the data or the connection is killed, not on RCV_SHUTDOWN.\nA zero-length read returns 0 without waiting for the pipe; a\nnon-blocking one returns -EAGAIN while poll() still reports the socket\nreadable (splice() can still take those bytes). The wait sets\nSOCKWQ_ASYNC_WAITDATA like smc_rx_wait(), so a byte arriving behind\nthe pipe raises no SIGIO on a reader already asleep for it, and a full\nbarrier orders its wait queue entry before its read of splice_pending,\nso no wake is lost.","modified":"2026-11-20T07:00:52.227450093Z","published":"2026-11-20T05:49:30.483Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99606.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/16bbd8c8381c01598ae91bc72e62f617353d9bd9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8288ba942cfd20621c05e16978b7c3da91513ae1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/883b66d11ee3ed89cc22599280d3c319cf38903f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f97e7bce1cb1f2c7fc3c0afb1818c7e568624ef7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99606.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99606"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f"},{"fixed":"16bbd8c8381c01598ae91bc72e62f617353d9bd9"},{"fixed":"f97e7bce1cb1f2c7fc3c0afb1818c7e568624ef7"},{"fixed":"883b66d11ee3ed89cc22599280d3c319cf38903f"},{"fixed":"8288ba942cfd20621c05e16978b7c3da91513ae1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99606.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99606.json"}}],"schema_version":"1.9.2"}