netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init().
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init().
ip6table_nat_table_init() accesses net->gen->ptr[ip6table_nat_net_ops.id], but the function is exposed to user space before the entry is allocated via register_pernet_subsys().
Let's call register_pernet_subsys() before xt_register_template().
From the CVE record · Linux
The Linux kernel’s netfilter iptables code can dereference a null pointer in ip6table_nat_table_init(). The function is exposed to local user space before its per-network entry is allocated, creating a potential null-pointer dereference if accessed during that window. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected netfilter iptables code should check their versions; affected versions are not specified.