{"id":"CVE-2026-90107","aliases":["CVE-2026-90107"],"related":[],"kind":"vulnerability","state":"published","title":"net/smc: free pending qentry in smc_llc_flow_stop() before memset","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: free pending qentry in smc_llc_flow_stop() before memset\n\nsmc_llc_flow_stop() resets a flow struct with a blind memset:\n\n\tspin_lock_bh(&lgr->llc_flow_lock);\n\tmemset(flow, 0, sizeof(*flow));\n\tflow->type = SMC_LLC_FLOW_NONE;\n\tspin_unlock_bh(&lgr->llc_flow_lock);\n\nIf flow->qentry is non-NULL at this point the pointer is overwritten without the\nallocation being freed, leaking one kmalloc object.\n\nA late-arriving duplicate CONFIRM_LINK or ADD_LINK_CONT message can set\nflow->qentry after the legitimate message has been consumed by the waiter via\nsmc_llc_flow_qentry_clr() (which NULLs the pointer but leaves flow->type\nnon-zero) but before the flow completes and smc_llc_flow_stop() runs.  In that\nwindow the duplicate is stashed into flow->qentry, and then lost when\nsmc_llc_flow_stop() zeros the struct.\n\nCall smc_llc_flow_qentry_del() inside the lock before the memset.\nsmc_llc_flow_qentry_del() already checks flow->qentry before freeing, so the\nnormal case where no entry is pending is a no-op.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: free pending qentry in smc_llc_flow_stop() before memset\n\nsmc_llc_flow_stop() resets a flow struct with a blind memset:\n\n\tspin_lock_bh(&lgr->llc_flow_lock);\n\tmemset(flow, 0, sizeof(*flow));\n\tflow->type = SMC_LLC_FLOW_NONE;\n\tspin_unlock_bh(&lgr->llc_flow_lock);\n\nIf flow->qentry is non-NULL at this point the pointer is overwritten without the\nallocation being freed, leaking one kmalloc object.\n\nA late-arriving duplicate CONFIRM_LINK or ADD_LINK_CONT message can set\nflow->qentry after the legitimate message has been consumed by the waiter via\nsmc_llc_flow_qentry_clr() (which NULLs the pointer but leaves flow->type\nnon-zero) but before the flow completes and smc_llc_flow_stop() runs.  In that\nwindow the duplicate is stashed into flow->qentry, and then lost when\nsmc_llc_flow_stop() zeros the struct.\n\nCall smc_llc_flow_qentry_del() inside the lock before the memset.\nsmc_llc_flow_qentry_del() already checks flow->qentry before freeing, so the\nnormal case where no entry is pending is a no-op.","source":"cvelist"}],"published":"2026-09-17T16:06:16.157Z","modified":"2026-10-19T09:19:00.003Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"8e3deb150a5237b672c4579e69a6deb02027dbed","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"11bc373ee6630709f0c2da2e7860c23d503c9e9d","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"032aec7d03c9102616b98fea74f8f7145e7f867c","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"957dba2b8b5aebfe09caa6a6b22b958079082eab","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"f03aa5d36ae3c4068a1c3885146be99aa7fd9307","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"0879ea157acc1ac6752f6fcb755d1f91a2359238","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"5ff429dd6725fa6c1e17a4ed0be8ab675f67a98b","status":"affected"},{"type":"git","introduced":"555da9af827d95134656fa459c8f3ece04dd867a","fixed":"5ee0ceddc7785c6dcf4a8107fef01f0414a354f4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","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.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","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/8e3deb150a5237b672c4579e69a6deb02027dbed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/11bc373ee6630709f0c2da2e7860c23d503c9e9d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/032aec7d03c9102616b98fea74f8f7145e7f867c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/957dba2b8b5aebfe09caa6a6b22b958079082eab","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f03aa5d36ae3c4068a1c3885146be99aa7fd9307","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0879ea157acc1ac6752f6fcb755d1f91a2359238","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ff429dd6725fa6c1e17a4ed0be8ab675f67a98b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ee0ceddc7785c6dcf4a8107fef01f0414a354f4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90107","url":"https://www.cve.org/CVERecord?id=CVE-2026-90107","licence":"CVE Terms of Use","modified":"2026-10-19T08:58:05.815Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90107","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90107","licence":"Public domain","modified":"2026-10-19T09:19:00.003Z"}],"updatedAt":"2026-11-25T22:59:39.305Z","epss":{"score":0.00216,"percentile":0.1283,"date":"2026-12-02T12:00:21.000Z"}}