CVE-2024-26910 netfilter: ipset: fix performance regression in swap operation

Medium 4.7 Published Updated

A race condition in the Linux kernel's ipset swap operation causes performance regression, potentially leading to denial of service.

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

CVE-2024-26910 is a medium-severity vulnerability in Linux kernel, published on 17 Apr 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: ipset: fix performance regression in swap operation

The patch "netfilter: ipset: fix race condition between swap/destroy and kernel side add/del/test", commit 28628fa9 fixes a race condition. But the synchronize_rcu() added to the swap function unnecessarily slows it down: it can safely be moved to destroy and use call_rcu() instead.

Eric Dumazet pointed out that simply calling the destroy functions as rcu callback does not work: sets with timeout use garbage collectors which need cancelling at destroy which can wait. Therefore the destroy functions are split into two: cancelling garbage collectors safely at executing the command received by netlink and moving the remaining part only into the rcu callback.

Weakness: CWE-362

Which versions are affected by CVE-2024-26910?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26910?

Apply the vendor's patch.

Is CVE-2024-26910 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26910, DEBIAN-CVE-2024-26910, GHSA-4p7x-7wc6-4gf5, UBUNTU-CVE-2024-26910.

Is CVE-2024-26910 in your software?

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

Check your SBOMs for free