{"id":"CVE-2026-68338","aliases":["CVE-2026-68338"],"related":[],"kind":"vulnerability","state":"published","title":"net/packet: avoid fanout hook re-registration after unregister","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: avoid fanout hook re-registration after unregister\n\npacket_set_ring() temporarily detaches a socket from packet delivery while\nreconfiguring its ring. It records the previous running state, clears\npo->num, unregisters the protocol hook when needed, drops po->bind_lock,\nand later restores po->num and re-registers the hook from the saved\nwas_running value.\n\nThat unlocked window can race with NETDEV_UNREGISTER. The notifier can\nobserve the socket as not running, skip __unregister_prot_hook(), and\ninvalidate the per-socket binding by setting po->ifindex to -1 and clearing\npo->prot_hook.dev. A one-member fanout group can still retain its shared\nfanout hook device pointer. When packet_set_ring() resumes, re-registering\nsolely from the stale was_running state can re-add the fanout hook after\nthe device has been unregistered.\n\nTreat po->ifindex == -1 as an invalidated binding after reacquiring\npo->bind_lock. This is distinct from ifindex 0, the normal\nunbound/wildcard state: ifindex -1 marks an existing device binding that\nwas invalidated when the device was unregistered. Restore po->num as\nbefore, but do not re-register the hook if device unregister already\ndetached the socket.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: avoid fanout hook re-registration after unregister\n\npacket_set_ring() temporarily detaches a socket from packet delivery while\nreconfiguring its ring. It records the previous running state, clears\npo->num, unregisters the protocol hook when needed, drops po->bind_lock,\nand later restores po->num and re-registers the hook from the saved\nwas_running value.\n\nThat unlocked window can race with NETDEV_UNREGISTER. The notifier can\nobserve the socket as not running, skip __unregister_prot_hook(), and\ninvalidate the per-socket binding by setting po->ifindex to -1 and clearing\npo->prot_hook.dev. A one-member fanout group can still retain its shared\nfanout hook device pointer. When packet_set_ring() resumes, re-registering\nsolely from the stale was_running state can re-add the fanout hook after\nthe device has been unregistered.\n\nTreat po->ifindex == -1 as an invalidated binding after reacquiring\npo->bind_lock. This is distinct from ifindex 0, the normal\nunbound/wildcard state: ifindex -1 marks an existing device binding that\nwas invalidated when the device was unregistered. Restore po->num as\nbefore, but do not re-register the hook if device unregister already\ndetached the socket.","source":"cvelist"}],"published":"2026-08-10T12:03:14.549Z","modified":"2026-10-19T22:17:13.900Z","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":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"acb40ebfa5c4d62f84339fcbf713f2a9fd033a71","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"c820f4b7f2fa38f8769db0d0cefdd94e2721504d","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"4628efbdc7affd094181f5263e65c1062e31f15f","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"80ec024d53a05c60ad1d08968dcf745f10c1665c","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"0a052e0808e015e68144a9877e6ef42b952c49fa","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"1bc55c29cd85818e9052f17deb287d5a11fb817f","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"a885387dae7986a55bae5c77a15bdd447f64e9b9","status":"affected"},{"type":"git","introduced":"dc99f600698dcac69b8f56dda9a8a00d645c5ffc","fixed":"50aff80475abd3533eef4320477037e6fcc6b56e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.1","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/acb40ebfa5c4d62f84339fcbf713f2a9fd033a71","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c820f4b7f2fa38f8769db0d0cefdd94e2721504d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4628efbdc7affd094181f5263e65c1062e31f15f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80ec024d53a05c60ad1d08968dcf745f10c1665c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a052e0808e015e68144a9877e6ef42b952c49fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bc55c29cd85818e9052f17deb287d5a11fb817f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a885387dae7986a55bae5c77a15bdd447f64e9b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50aff80475abd3533eef4320477037e6fcc6b56e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:47:16.591Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68338","url":"https://www.cve.org/CVERecord?id=CVE-2026-68338","licence":"CVE Terms of Use","modified":"2026-10-19T21:09:05.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68338","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68338","licence":"Public domain","modified":"2026-10-19T22:17:13.900Z"}],"updatedAt":"2026-11-25T22:59:32.091Z","epss":{"score":0.00136,"percentile":0.03285,"date":"2026-12-01T12:00:22.000Z"}}