{"id":"CVE-2026-80982","summary":"net/smc: fix use-after-free in smc_rx_pipe_buf_release()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: fix use-after-free in smc_rx_pipe_buf_release()\n\nsmc_rx_splice() hands RMB pages to a pipe and takes a socket reference\nper entry so the smc_sock stays alive until the reader finishes. The\nconnection does not: a concurrent close runs smc_conn_free(), which\nreleases the receive buffer back to the link group pool.\n\nsmc_rx_pipe_buf_release() tests sk_state before taking the socket lock.\nThe state can change between the test and the lock, and\nsmc_rx_update_cons() then dereferences conn-\u003ermb_desc and walks\nconn-\u003elgr, which smc_conn_free() has already released. On the\nis_reg_err path smcr_buf_unuse() frees the descriptor outright, so\nthis is a use-after-free.\n\nTake the socket lock first and test conn-\u003efreed instead.\nsmc_conn_free() sets that flag before releasing anything, and every\ncaller holds the socket lock. The two paths exclude each other: either\nthe pipe release runs first with everything valid, or it sees the flag\nand skips the update.","modified":"2026-09-13T03:47:06.274818961Z","published":"2026-09-11T19:42:42.243Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80982.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0761e49aa78c2f1362511054c6e9670653858837"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0926f59ca0f94120895b92180c636a48d0ed3a6d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a644a7340df978785f3109d1e0726a982ce2c6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c924884743e948e25625b7fbf3ee2a9325a204a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80982.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80982"},{"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":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f"},{"fixed":"6a644a7340df978785f3109d1e0726a982ce2c6f"},{"fixed":"0761e49aa78c2f1362511054c6e9670653858837"},{"fixed":"0926f59ca0f94120895b92180c636a48d0ed3a6d"},{"fixed":"c924884743e948e25625b7fbf3ee2a9325a204a7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80982.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80982.json"}}],"schema_version":"1.9.0"}