{"id":"CVE-2026-31504","aliases":["CVE-2026-31504"],"related":[],"kind":"vulnerability","state":"published","title":"net: fix fanout UAF in packet_release() via NETDEV_UP race","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: corrige UAF de fanout en packet_release() a través de una condición de carrera de NETDEV_UP\n\n’packet_release()’ tiene una ventana de carrera donde ’NETDEV_UP’ puede volver a registrar un socket en el array ’arr[]’ de un grupo de fanout. El nuevo registro no es limpiado por ’fanout_release()’, dejando un puntero colgante en el array de fanout.\n’packet_release()’ NO pone a cero ’po  ->  num’ en su sección ’bind_lock’. Después de liberar ’bind_lock’, ’po  ->  num’ sigue siendo distinto de cero y ’po  ->  ifindex’ sigue coincidiendo con el dispositivo enlazado. Un ’packet_notifier(NETDEV_UP)’ concurrente que ya encontró el socket en ’sklist’ puede volver a registrar el hook.\nPara sockets de fanout, este nuevo registro llama a ’__fanout_link(sk, po)’ que añade el socket de nuevo a ’f  ->  arr[]’ e incrementa ’f  ->  num_members’, pero NO incrementa ’f  ->  sk_ref’.\n\nLa corrección pone ’po  ->  num’ a cero en ’packet_release’ mientras ’bind_lock’ está retenido para evitar que NETDEV_UP enlace, previniendo la ventana de carrera.\n\nEste error fue encontrado tras una auditoría adicional con Claude Code basado en CVE-2025-38617.","source":"nvd"}],"published":"2026-04-22T13:54:23.862Z","modified":"2026-11-11T23:10:00.263Z","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","CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"ee642b1962caa9aa231c01abbd58bc453ae6b66e","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"42cfd7898eeed290c9fb73f732af1f7d6b0a703e","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"1b4c03f8892d955385c202009af7485364731bb9","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"654386baef228c2992dbf604c819e4c7c35fc71b","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"75fe6db23705a1d55160081f7b37db9665b1880b","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"ceccbfc6de720ad633519a226715989cfb065af1","status":"affected"},{"type":"git","introduced":"ce06b03e60fc19c680d1bf873e779bf11c2fc518","fixed":"42156f93d123436f2a27c468f18c966b7e5db796","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.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.1.1","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"3.1"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:10:18.282Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31504","url":"https://www.cve.org/CVERecord?id=CVE-2026-31504","licence":"CVE Terms of Use","modified":"2026-11-10T12:44:43.181Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31504","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31504","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.298Z","epss":{"score":0.00138,"percentile":0.03358,"date":"2026-12-01T12:00:22.000Z"}}