# CVE-2025-37997: netfilter: ipset: fix region locking in hash types

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 8% of CVEs (2026-12-01)
- Published: 2025-05-29T13:15:55.580Z
- Modified: 2026-10-15T22:18:23.573Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: ipset: fix region locking in hash types

Region locking introduced in v5.6-rc4 contained three macros to handle
the region locks: ahash_bucket_start(), ahash_bucket_end() which gave
back the start and end hash bucket values belonging to a given region
lock and ahash_region() which should give back the region lock belonging
to a given hash bucket. The latter was incorrect which can lead to a
race condition between the garbage collector and adding new elements
when a hash type of set is defined with timeouts.

(As written by CVE List.)

## Affected

- Linux Linux: from 5dd9488ae41070b69d2f4acb580f77db5705f9ca before 00cfc5fad1491796942a948808afb968a0a3f35b; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before 226ce0ec38316d9e3739e73a64b6b8304646c658; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before 82c1eb32693bc48251d92532975e19160987e5b9; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before aa77294b0f73bb8265987591460cd25b8722c3df; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before a3dfec485401943e315c394c29afe2db8f9481d6; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before e2ab67672b2288521a6146034a971f9a82ffc5c5; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before 6e002ecc1c8cfdfc866b9104ab7888da54613e59; from f66ee0410b1c3481ee75e5db9b34547b4d582465 before 8478a729c0462273188263136880480729e9efca; a469bab3386aebff33c59506f3a95e35b91118fd; from 5.4.24 before 5.4.294; from 5.5.8 before 5.6; 5.6 (not affected: before 5.6; from 5.4.294 up to 5.4.*; from 5.10.238 up to 5.10.*; from 5.15.183 up to 5.15.*; from 6.1.139 up to 6.1.*; from 6.6.91 up to 6.6.*; from 6.12.29 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.4.24 before 5.4.294; from 5.5.8 before 5.6; from 5.6.1 before 5.10.238; from 5.11 before 5.15.183; from 5.16 before 6.1.139; from 6.2 before 6.6.91; from 6.7 before 6.12.29; from 6.13 before 6.14.7; 5.6; 6.15
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b> (patch)
- <https://git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658> (patch)
- <https://git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9> (patch)
- <https://git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df> (patch)
- <https://git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6> (patch)
- <https://git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5> (patch)
- <https://git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59> (patch)
- <https://git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-37997](https://www.cve.org/CVERecord?id=CVE-2025-37997), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-37997](https://nvd.nist.gov/vuln/detail/CVE-2025-37997), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-37997 · Whole record: https://cve.day/CVE-2025-37997.json · Rebuilt by cve.day 2026-11-25T22:58:58.554Z
