{"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-11-17T07:01:52.399743733Z","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":"a12606e5ad0cee8f4ba3ec68561c4d6275d2df57"}]}],"versions":["v5.4.268","v5.4.267","v5.4.266","v5.4.265","v5.4.264","v5.10.209","v5.10.208","v5.10.207","v5.10.206","v5.10.205","v5.10.204","v5.15.148","v5.15.147","v5.15.146","v5.15.145","v5.15.144","v5.15.143","v6.1.78","v6.1.77","v6.1.76","v6.1.75","v6.1.74","v6.1.73","v6.1.72","v6.1.71","v6.1.70","v6.1.69","v6.1.68","v6.6.17","v6.6.16","v6.6.15","v6.6.14","v6.6.13","v6.6.12","v6.6.11","v6.6.10","v6.6.9","v6.6.8","v6.6.7","v4.19.325","v4.19.324","v4.19.323","v4.19.322","v4.19.321","v4.19.320","v4.19.319","v4.19.318","v4.19.317","v4.19.316","v4.19.315","v4.19.314","v4.19.313","v4.19.312","v4.19.311","v4.19.310","v4.19.309","v4.19.308","v4.19.307","v4.19.306","v4.19.305","v4.19.304","v4.19.303","v4.19.302"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26910.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.302"},{"fixed":"4.20"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.4.264"},{"fixed":"5.4.269"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.10.204"},{"fixed":"5.10.210"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.143"},{"fixed":"5.15.149"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.68"},{"fixed":"6.1.79"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.7"},{"fixed":"6.6.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.7.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26910.json"}}],"schema_version":"1.9.2"}