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.

Affected products

VendorProductVersions
LinuxLinux1cd472bf036ca038e783ef5f058f54e45b7e8180 to <79084567cd082fb4482e1ea457580e7d6504dd99; 1cd472bf036ca038e783ef5f058f54e45b7e8180 to <df80342f4bfc023ad7d6703df5e27f583ff0cb8d; 1cd472bf036ca038e783ef5f058f54e45b7e8180 to <cbdd39ce42530a193c56beb206a3356cb6d01016
LinuxLinux4.18; 0 to <4.18; 6.18.54 to <=6.18.*; 7.2.8 to <=7.2.*; 7.3-rc4 to <=*

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 07 Oct 2026 08:28 UTC.