{"id":"CVE-2026-31504","published":"2026-04-22T13:54:23Z","modified":"2026-11-10T12:44:43Z","title":"net: fix fanout UAF in packet_release() via NETDEV_UP race","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix fanout UAF in packet_release() via NETDEV_UP race\n\n`packet_release()` has a race window where `NETDEV_UP` can re-register a\nsocket into a fanout group's `arr[]` array. The re-registration is not\ncleaned up by `fanout_release()`, leaving a dangling pointer in the fanout\narray.\n`packet_release()` does NOT zero `po->num` in its `bind_lock` section.\nAfter releasing `bind_lock`, `po->num` is still non-zero and `po->ifindex`\nstill matches the bound device. A concurrent `packet_notifier(NETDEV_UP)`\nthat already found the socket in `sklist` can re-register the hook.\nFor fanout sockets, this re-registration calls `__fanout_link(sk, po)`\nwhich adds the socket back into `f->arr[]` and increments `f->num_members`,\nbut does NOT increment `f->sk_ref`.\n\nThe fix sets `po->num` to zero in `packet_release` while `bind_lock` is\nheld to prevent NETDEV_UP from linking, preventing the race window.\n\nThis bug was found following an additional audit with Claude Code based\non CVE-2025-38617.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00109,"percentile":0.0125,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e","tags":[]},{"url":"https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e","tags":[]},{"url":"https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9","tags":[]},{"url":"https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b","tags":[]},{"url":"https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b","tags":[]},{"url":"https://git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6","tags":[]},{"url":"https://git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1","tags":[]},{"url":"https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":0.25},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1",">= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796"]},{"vendor":"Linux","product":"Linux","versions":["3.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:10:18.282904Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24881","exploited":false,"provenance":"source"}}