netfilter: ipset: fix performance regression in swap operation (Linux Linux)

CVE-2024-26910
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 427deb5ba5661c4ae1cfb35955d2e01bd5f3090a < c7f2733e5011bfd136f1ca93497394d43aa76225 ; affected e7152a138a5ac77439ff4e7a7533448a7d4c260d < a24d5f2ac8ef702a58e55ec276aad29b4bd97e05 ; affected 8bb930c3a1eacec1b14817f565ff81667c7c5dfa < c2dc077d8f722a1c73a24e674f925602ee5ece49 ; affected 875ee3a09e27b7adb7006ca6d16faf7f33415aa5 < 653bc5e6d9995d7d5f497c665b321875a626161c ; affected 23c31036f862582f98386120aee55c9ae23d7899 < b93a6756a01f4fd2f329a39216f9824c56a66397 ; affected 28628fa952fefc7f2072ce6e8016968cc452b1ba < 970709a67696b100a57b33af1a3d75fc34b747eb
Linux · Linuxaffected 6.7 ; unaffected 0 < 6.7 ; unaffected 5.4.269 ≤ 5.4.* ; unaffected 5.10.210 ≤ 5.10.* ; unaffected 5.15.149 ≤ 5.15.* ; unaffected 6.1.79 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD