{"id":"CVE-2026-80982","aliases":["CVE-2026-80982"],"related":[],"kind":"vulnerability","state":"published","title":"net/smc: fix use-after-free in smc_rx_pipe_buf_release()","summary":"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->rmb_desc and walks\nconn->lgr, 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->freed 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->rmb_desc and walks\nconn->lgr, 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->freed 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.","source":"cvelist"}],"published":"2026-09-11T19:42:42.243Z","modified":"2026-10-19T09:17:30.643Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"dadd97c8296b23aa816e91ed70041820ae087baa","status":"affected"},{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"df441f3efbb50eb0f120b8de4bf441c31fb0551d","status":"affected"},{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"6a644a7340df978785f3109d1e0726a982ce2c6f","status":"affected"},{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"0761e49aa78c2f1362511054c6e9670653858837","status":"affected"},{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"0926f59ca0f94120895b92180c636a48d0ed3a6d","status":"affected"},{"type":"git","introduced":"9014db202cb764b8e14c53e7bacc81f9a1a2ba7f","fixed":"c924884743e948e25625b7fbf3ee2a9325a204a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/dadd97c8296b23aa816e91ed70041820ae087baa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df441f3efbb50eb0f120b8de4bf441c31fb0551d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a644a7340df978785f3109d1e0726a982ce2c6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0761e49aa78c2f1362511054c6e9670653858837","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0926f59ca0f94120895b92180c636a48d0ed3a6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c924884743e948e25625b7fbf3ee2a9325a204a7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:21:50.317Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80982","url":"https://www.cve.org/CVERecord?id=CVE-2026-80982","licence":"CVE Terms of Use","modified":"2026-10-19T08:46:06.717Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80982","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80982","licence":"Public domain","modified":"2026-10-19T09:17:30.643Z"}],"updatedAt":"2026-11-25T22:59:38.003Z","epss":{"score":0.00164,"percentile":0.05829,"date":"2026-12-01T12:00:22.000Z"}}