Skip to main content
← All vulnerabilities
CVE-2024-26910

netfilter: ipset: fix performance regression in swap operation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.269, 5.10.210, 5.15.149, 6.1.79, 6.6.18, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.4.264 · fixed in 5.4.269; From 5.10.204 · fixed in 5.10.210; From 5.15.143 · fixed in 5.15.149; From 6.1.68 · fixed in 6.1.79; From 6.6.7 · fixed in 6.6.18; From 4.19.302 · fixed in 4.20

  • Linux Linux

    6.7

References 7

git.kernel.org