{"id":"CVE-2026-98321","aliases":["CVE-2026-98321"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: nf_nat: unregister and release hooks on error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_nat: unregister and release hooks on error\n\nIf nf_hook_entries_insert_raw() fails, the NAT hooks get never released,\nresulting in a memleak.\n\nPostpone setting nat_proto_net->nat_hook_ops when the hooks are\nregistered to simplify the error path to decide whether the nat hooks\nneed unwinding.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_nat: unregister and release hooks on error\n\nIf nf_hook_entries_insert_raw() fails, the NAT hooks get never released,\nresulting in a memleak.\n\nPostpone setting nat_proto_net->nat_hook_ops when the hooks are\nregistered to simplify the error path to decide whether the nat hooks\nneed unwinding.","source":"cvelist"}],"published":"2026-10-06T08:46:15.546Z","modified":"2026-10-19T10:18:34.267Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1cd472bf036ca038e783ef5f058f54e45b7e8180","fixed":"79084567cd082fb4482e1ea457580e7d6504dd99","status":"affected"},{"type":"git","introduced":"1cd472bf036ca038e783ef5f058f54e45b7e8180","fixed":"df80342f4bfc023ad7d6703df5e27f583ff0cb8d","status":"affected"},{"type":"git","introduced":"1cd472bf036ca038e783ef5f058f54e45b7e8180","fixed":"cbdd39ce42530a193c56beb206a3356cb6d01016","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/79084567cd082fb4482e1ea457580e7d6504dd99","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df80342f4bfc023ad7d6703df5e27f583ff0cb8d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cbdd39ce42530a193c56beb206a3356cb6d01016","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98321","url":"https://www.cve.org/CVERecord?id=CVE-2026-98321","licence":"CVE Terms of Use","modified":"2026-10-19T09:17:31.752Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98321","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98321","licence":"Public domain","modified":"2026-10-19T10:18:34.267Z"}],"updatedAt":"2026-11-25T22:59:42.329Z","epss":{"score":0.00173,"percentile":0.0708,"date":"2026-12-01T12:00:22.000Z"}}