CVE-2026-98321
Linux: netfilter: nf_nat: unregister and release hooks on error
CVSS
NoneNot scoredExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.17%Chance of exploitation activity in the next 30 days, higher than 6% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 79084567cd082fb4482e1ea457580e7d6504dd99LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_nat: unregister and release hooks on error
If nf_hook_entries_insert_raw() fails, the NAT hooks get never released, resulting in a memleak.
Postpone setting nat_proto_net->nat_hook_ops when the hooks are registered to simplify the error path to decide whether the nat hooks need unwinding.
Text from CVE List
Affected versions 8
- Linuxaffected: 1cd472bf036ca038e783ef5f058f54e45b7e8180 before 79084567cd082fb4482e1ea457580e7d6504dd99CVE List
- Linuxaffected: 1cd472bf036ca038e783ef5f058f54e45b7e8180 before df80342f4bfc023ad7d6703df5e27f583ff0cb8dCVE List
- Linuxaffected: 1cd472bf036ca038e783ef5f058f54e45b7e8180 before cbdd39ce42530a193c56beb206a3356cb6d01016CVE List
- Linuxaffected: 4.18CVE List
- Linuxunaffected: all versions before 4.18CVE List
- Linuxunaffected: 6.18.54 through 6.18.*CVE List
- Linuxunaffected: 7.2.8 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List