{"id":"CVE-2024-26910","summary":"netfilter: ipset: fix performance regression in swap operation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ipset: fix performance regression in swap operation\n\nThe patch \"netfilter: ipset: fix race condition between swap/destroy\nand kernel side add/del/test\", commit 28628fa9 fixes a race condition.\nBut the synchronize_rcu() added to the swap function unnecessarily slows\nit down: it can safely be moved to destroy and use call_rcu() instead.\n\nEric Dumazet pointed out that simply calling the destroy functions as\nrcu callback does not work: sets with timeout use garbage collectors\nwhich need cancelling at destroy which can wait. Therefore the destroy\nfunctions are split into two: cancelling garbage collectors safely at\nexecuting the command received by netlink and moving the remaining\npart only into the rcu callback.","modified":"2026-04-02T10:06:23.909402Z","published":"2024-04-17T15:59:21.967Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26910.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/653bc5e6d9995d7d5f497c665b321875a626161c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/970709a67696b100a57b33af1a3d75fc34b747eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/97f7cf1cd80eeed3b7c808b7c12463295c751001"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a24d5f2ac8ef702a58e55ec276aad29b4bd97e05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b93a6756a01f4fd2f329a39216f9824c56a66397"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2dc077d8f722a1c73a24e674f925602ee5ece49"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c7f2733e5011bfd136f1ca93497394d43aa76225"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26910.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26910"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"427deb5ba5661c4ae1cfb35955d2e01bd5f3090a"},{"fixed":"c7f2733e5011bfd136f1ca93497394d43aa76225"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e7152a138a5ac77439ff4e7a7533448a7d4c260d"},{"fixed":"a24d5f2ac8ef702a58e55ec276aad29b4bd97e05"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8bb930c3a1eacec1b14817f565ff81667c7c5dfa"},{"fixed":"c2dc077d8f722a1c73a24e674f925602ee5ece49"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"875ee3a09e27b7adb7006ca6d16faf7f33415aa5"},{"fixed":"653bc5e6d9995d7d5f497c665b321875a626161c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"23c31036f862582f98386120aee55c9ae23d7899"},{"fixed":"b93a6756a01f4fd2f329a39216f9824c56a66397"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"28628fa952fefc7f2072ce6e8016968cc452b1ba"},{"fixed":"970709a67696b100a57b33af1a3d75fc34b747eb"},{"fixed":"97f7cf1cd80eeed3b7c808b7c12463295c751001"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"a12606e5ad0cee8f4ba3ec68561c4d6275d2df57"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26910.json"}}],"schema_version":"1.7.5"}