CVE-2024-46681 pktgen: use cpus_read_lock() in pg_net_init()

Medium 5.5 Published Updated

A race condition in the Linux kernel pktgen module can trigger warnings and potential system instability during network initialization.

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-46681?

CVE-2024-46681 is a medium-severity vulnerability in Linux kernel, published on 13 Sep 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:

pktgen: use cpus_read_lock() in pg_net_init()

I have seen the WARN_ON(smp_processor_id() != cpu) firing in pktgen_thread_worker() during tests.

We must use cpus_read_lock()/cpus_read_unlock() around the for_each_online_cpu(cpu) loop.

While we are at it use WARN_ON_ONCE() to avoid a possible syslog flood.

Which versions are affected by CVE-2024-46681?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46681?

Apply the vendor's patch.

Is CVE-2024-46681 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49328, AZL-49341, BELL-CVE-2024-46681, DEBIAN-CVE-2024-46681, GHSA-5mq7-93mw-h965, ROOT-OS-DEBIAN-11-CVE-2024-46681 and 3 more.

Is CVE-2024-46681 in your software?

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

Check your SBOMs for free