CVE-2024-42269 netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init().

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel netfilter module allows local attackers to cause a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42269?

CVE-2024-42269 is a medium-severity vulnerability in Linux kernel, published on 17 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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().

Weakness: CWE-476

Which versions are affected by CVE-2024-42269?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42269?

Apply the vendor's patch.

Is CVE-2024-42269 being exploited?

There is no known exploitation of CVE-2024-42269 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-47811, AZL-47829, BELL-CVE-2024-42269, DEBIAN-CVE-2024-42269, GHSA-m5gr-96cr-6qvm, UBUNTU-CVE-2024-42269.

Is CVE-2024-42269 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free