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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-05-29T13:15:55.580Z
- **Modified:** 2026-10-15T22:18:23.573Z

## Who should check

- Anyone running Linux \>= 5dd9488ae41070b69d2f4acb580f77db5705f9ca, \< 00cfc5fad1491796942a948808afb968a0a3f35b; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 226ce0ec38316d9e3739e73a64b6b8304646c658; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 82c1eb32693bc48251d92532975e19160987e5b9; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< aa77294b0f73bb8265987591460cd25b8722c3df; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< a3dfec485401943e315c394c29afe2db8f9481d6; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< e2ab67672b2288521a6146034a971f9a82ffc5c5; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 6e002ecc1c8cfdfc866b9104ab7888da54613e59; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 8478a729c0462273188263136880480729e9efca; a469bab3386aebff33c59506f3a95e35b91118fd; \>= 5.4.24, \< 5.4.294; …
- Anyone running Linux 5.6

## 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.

## Affected and fixed versions

- Linux: \>= 5dd9488ae41070b69d2f4acb580f77db5705f9ca, \< 00cfc5fad1491796942a948808afb968a0a3f35b; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 226ce0ec38316d9e3739e73a64b6b8304646c658; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 82c1eb32693bc48251d92532975e19160987e5b9; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< aa77294b0f73bb8265987591460cd25b8722c3df; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< a3dfec485401943e315c394c29afe2db8f9481d6; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< e2ab67672b2288521a6146034a971f9a82ffc5c5; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 6e002ecc1c8cfdfc866b9104ab7888da54613e59; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 8478a729c0462273188263136880480729e9efca; a469bab3386aebff33c59506f3a95e35b91118fd; \>= 5.4.24, \< 5.4.294; … (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37997. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37997.md
Affected: Linux >= 5dd9488ae41070b69d2f4acb580f77db5705f9ca, < 00cfc5fad1491796942a948808afb968a0a3f35b; >= f66ee0410b1c3481ee75e5db9b34547b4d582465, < 226ce0ec38316d9e3739e73a64b6b8304646c658; >= f66ee0410b1c3481ee75e5db9b34547b4d582465, < 82c1eb32693bc48251d92532975e19160987e5b9; >= f66ee0410b1c3481ee75e5d…
Fixed in: Linux 00cfc5fad1491796942a948808afb968a0a3f35b, Linux 226ce0ec38316d9e3739e73a64b6b8304646c658, Linux 82c1eb32693bc48251d92532975e19160987e5b9, Linux 6e002ecc1c8cfdfc866b9104ab7888da54613e59, Linux 8478a729c0462273188263136880480729e9efca, Linux 5.4.294

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37997 being exploited?

There is no confirmed exploitation: CVE-2025-37997 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37997?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37997?

Linux \>= 5dd9488ae41070b69d2f4acb580f77db5705f9ca, \< 00cfc5fad1491796942a948808afb968a0a3f35b; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 226ce0ec38316d9e3739e73a64b6b8304646c658; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 82c1eb32693bc48251d92532975e19160987e5b9; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< aa77294b0f73bb8265987591460cd25b8722c3df; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< a3dfec485401943e315c394c29afe2db8f9481d6; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< e2ab67672b2288521a6146034a971f9a82ffc5c5; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 6e002ecc1c8cfdfc866b9104ab7888da54613e59; \>= f66ee0410b1c3481ee75e5db9b34547b4d582465, \< 8478a729c0462273188263136880480729e9efca; a469bab3386aebff33c59506f3a95e35b91118fd; \>= 5.4.24, \< 5.4.294; …; Linux 5.6.

### Is there a fix for CVE-2025-37997?

Yes. Fixed in Linux 00cfc5fad1491796942a948808afb968a0a3f35b, Linux 226ce0ec38316d9e3739e73a64b6b8304646c658, Linux 82c1eb32693bc48251d92532975e19160987e5b9, Linux 6e002ecc1c8cfdfc866b9104ab7888da54613e59, Linux 8478a729c0462273188263136880480729e9efca, Linux 5.4.294. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37997?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37997>

HTML: <https://flawdb.com/CVE-2025-37997> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37997>
