CVE-2026-98321
netfilter: nf_nat: unregister and release hooks on error
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.54, 7.2.8
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 1cd472bf036ca038e783ef5f058f54e45b7e8180 · fixed in 79084567cd082fb4482e1ea457580e7d6504dd99; From 1cd472bf036ca038e783ef5f058f54e45b7e8180 · fixed in df80342f4bfc023ad7d6703df5e27f583ff0cb8d; From 1cd472bf036ca038e783ef5f058f54e45b7e8180 · fixed in cbdd39ce42530a193c56beb206a3356cb6d01016
- Linux Linux
4.18
- KernelLinux
From 4.18.0 · fixed in 6.18.54; From 6.19.0 · fixed in 7.2.8