{
  "id": "CVE-2026-23231",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-23231",
  "published_at": "2026-03-04T12:58:42.029Z",
  "title": "netfilter: nf_tables: fix use-after-free in nf_tables_addchain()",
  "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": {
    "created_at": "2026-05-04T00:00:00Z",
    "first_seen_at": null,
    "days_after_publication": 60.5,
    "source": "exploitdb",
    "url": "https://www.exploit-db.com/exploits/52549"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: fix use-after-free in nf_tables_addchain()\n\nnf_tables_addchain() publishes the chain to table-\u003echains via\nlist_add_tail_rcu() (in nft_chain_add()) before registering hooks.\nIf nf_tables_register_hook() then fails, the error path calls\nnft_chain_del() (list_del_rcu()) followed by nf_tables_chain_destroy()\nwith no RCU grace period in between.\n\nThis creates two use-after-free conditions:\n\n 1) Control-plane: nf_tables_dump_chains() traverses table-\u003echains\n    under rcu_read_lock(). A concurrent dump can still be walking\n    the chain when the error path frees it.\n\n 2) Packet path: for NFPROTO_INET, nf_register_net_hook() briefly\n    installs the IPv4 hook before IPv6 registration fails.  Packets\n    entering nft_do_chain() via the transient IPv4 hook can still be\n    dereferencing chain-\u003eblob_gen_X when the error path frees the\n    chain.\n\nAdd synchronize_rcu() between nft_chain_del() and the chain destroy\nso that all RCU readers -- both dump threads and in-flight packet\nevaluation -- have finished before the chain is freed.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c 2a6586ecfa4ce1413daaafee250d2590e05f1a33",
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c 7017745068a9068904e1e7a1b170a5785647cc81",
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c f3fe58ce37926a10115ede527d59b91bcc05400a",
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c dbd0af8083dd201f07c49110b2ee93710abdff28",
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b",
          "\u003e= 91c7b38dc9f0de4f7f444b796d14476bc12df7bc, \u003c 71e99ee20fc3f662555118cf1159443250647533"
        ],
        "fixed_in": [
          "2a6586ecfa4ce1413daaafee250d2590e05f1a33",
          "7017745068a9068904e1e7a1b170a5785647cc81",
          "f3fe58ce37926a10115ede527d59b91bcc05400a",
          "dbd0af8083dd201f07c49110b2ee93710abdff28",
          "2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b",
          "71e99ee20fc3f662555118cf1159443250647533"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.16"
        ],
        "fixed_in": [
          "0",
          "6.1.165",
          "6.6.128",
          "6.12.75",
          "6.18.14",
          "6.19.4",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 2a6586ecfa4ce1413daaafee250d2590e05f1a33 or 7017745068a9068904e1e7a1b170a5785647cc81 or f3fe58ce37926a10115ede527d59b91bcc05400a or dbd0af8083dd201f07c49110b2ee93710abdff28 or 2f9a4ffeb763aec822f8ff3d1e82202d27d46d4b or 71e99ee20fc3f662555118cf1159443250647533 or later.",
      "Upgrade Linux to 0 or 6.1.165 or 6.6.128 or 6.12.75 or 6.18.14 or 6.19.4 or 7.0 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/52549",
      "source": "exploitdb",
      "title": "Linux nf_tables 6.19.3 - Local Privilege Escalation",
      "published_at": "2026-05-04T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
