{
  "id": "CVE-2026-31504",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31504",
  "published_at": "2026-04-22T13:54:23.862Z",
  "title": "net: fix fanout UAF in packet_release() via NETDEV_UP race",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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-\u003enum` in its `bind_lock` section.\nAfter releasing `bind_lock`, `po-\u003enum` is still non-zero and `po-\u003eifindex`\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-\u003earr[]` and increments `f-\u003enum_members`,\nbut does NOT increment `f-\u003esk_ref`.\n\nThe fix sets `po-\u003enum` 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.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:3.1:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c ee642b1962caa9aa231c01abbd58bc453ae6b66e",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c 42cfd7898eeed290c9fb73f732af1f7d6b0a703e",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c 1b4c03f8892d955385c202009af7485364731bb9",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c 654386baef228c2992dbf604c819e4c7c35fc71b",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c 75fe6db23705a1d55160081f7b37db9665b1880b",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c ceccbfc6de720ad633519a226715989cfb065af1",
          "\u003e= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \u003c 42156f93d123436f2a27c468f18c966b7e5db796"
        ],
        "fixed_in": [
          "ee642b1962caa9aa231c01abbd58bc453ae6b66e",
          "42cfd7898eeed290c9fb73f732af1f7d6b0a703e",
          "1b4c03f8892d955385c202009af7485364731bb9",
          "654386baef228c2992dbf604c819e4c7c35fc71b",
          "75fe6db23705a1d55160081f7b37db9665b1880b",
          "d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6",
          "ceccbfc6de720ad633519a226715989cfb065af1",
          "42156f93d123436f2a27c468f18c966b7e5db796"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.1"
        ],
        "fixed_in": [
          "0",
          "5.10.253",
          "5.15.203",
          "6.1.168",
          "6.6.131",
          "6.12.80",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ee642b1962caa9aa231c01abbd58bc453ae6b66e or 42cfd7898eeed290c9fb73f732af1f7d6b0a703e or 1b4c03f8892d955385c202009af7485364731bb9 or 654386baef228c2992dbf604c819e4c7c35fc71b or 75fe6db23705a1d55160081f7b37db9665b1880b or d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6 or ceccbfc6de720ad633519a226715989cfb065af1 or 42156f93d123436f2a27c468f18c966b7e5db796 or later.",
      "Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.168 or 6.6.131 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
