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

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-04-17T15:59:21.967Z
- Modified: 2026-06-17T07:18:40.137Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 427deb5ba5661c4ae1cfb35955d2e01bd5f3090a before c7f2733e5011bfd136f1ca93497394d43aa76225; from e7152a138a5ac77439ff4e7a7533448a7d4c260d before a24d5f2ac8ef702a58e55ec276aad29b4bd97e05; from 8bb930c3a1eacec1b14817f565ff81667c7c5dfa before c2dc077d8f722a1c73a24e674f925602ee5ece49; from 875ee3a09e27b7adb7006ca6d16faf7f33415aa5 before 653bc5e6d9995d7d5f497c665b321875a626161c; from 23c31036f862582f98386120aee55c9ae23d7899 before b93a6756a01f4fd2f329a39216f9824c56a66397; from 28628fa952fefc7f2072ce6e8016968cc452b1ba before 970709a67696b100a57b33af1a3d75fc34b747eb; from 28628fa952fefc7f2072ce6e8016968cc452b1ba before 97f7cf1cd80eeed3b7c808b7c12463295c751001; a12606e5ad0cee8f4ba3ec68561c4d6275d2df57; from 5.4.264 before 5.4.269; from 5.10.204 before 5.10.210; from 5.15.143 before 5.15.149; from 6.1.68 before 6.1.79; and 3 more (not affected: before 6.7; from 5.4.269 up to 5.4.*; from 5.10.210 up to 5.10.*; from 5.15.149 up to 5.15.*; from 6.1.79 up to 6.1.*; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 5.4.269; from 5.5 before 5.10.210; from 5.11 before 5.15.149; from 5.16 before 6.1.79; from 6.2 before 6.6.18; from 6.7 before 6.7.6

## References

- <https://git.kernel.org/stable/c/c7f2733e5011bfd136f1ca93497394d43aa76225> (patch)
- <https://git.kernel.org/stable/c/a24d5f2ac8ef702a58e55ec276aad29b4bd97e05> (patch)
- <https://git.kernel.org/stable/c/c2dc077d8f722a1c73a24e674f925602ee5ece49> (patch)
- <https://git.kernel.org/stable/c/653bc5e6d9995d7d5f497c665b321875a626161c> (patch)
- <https://git.kernel.org/stable/c/b93a6756a01f4fd2f329a39216f9824c56a66397> (patch)
- <https://git.kernel.org/stable/c/970709a67696b100a57b33af1a3d75fc34b747eb> (patch)
- <https://git.kernel.org/stable/c/97f7cf1cd80eeed3b7c808b7c12463295c751001> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Sources

- CVE List: [CVE-2024-26910](https://www.cve.org/CVERecord?id=CVE-2024-26910), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-26910](https://nvd.nist.gov/vuln/detail/CVE-2024-26910), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26910 · Whole record: https://cve.day/CVE-2024-26910.json · Rebuilt by cve.day 2026-11-25T22:58:39.408Z
