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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-29 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-37997, DEBIAN-CVE-2025-37997
- Record: https://cvemate.com/vulnerability/CVE-2025-37997 · JSON: https://cvemate.com/vulnerability/CVE-2025-37997/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.181%, percentile 7.992%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 143)

- debian linux (Debian): \< 6.1.139-1 \| \< 6.12.29-1
- ubuntu linux (Ubuntu): \< 5.4.0-219.239 \| \< 5.15.0-143.153 \| \< 6.8.0-63.66
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1148.158 \| \< 5.15.0-1087.94 \| \< 6.8.0-1031.33
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1087.94~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1148.158~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1009.9~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1031.33~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1148.158+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1087.94+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1153.160 \| \< 5.15.0-1092.101 \| \< 6.8.0-1031.36
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 45)

- <https://git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b>
- <https://git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658>
- <https://git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9>
- <https://git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df>
- <https://git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6>
- <https://git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5>
- <https://git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59>
- <https://git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>
- <https://ubuntu.com/security/CVE-2025-37997>
- <https://www.cve.org/CVERecord?id=CVE-2025-37997>
- <https://git.kernel.org/linus/8478a729c0462273188263136880480729e9efca>
- <https://ubuntu.com/security/notices/USN-7608-1>
- <https://ubuntu.com/security/notices/USN-7608-2>
- <https://ubuntu.com/security/notices/USN-7608-3>
- <https://ubuntu.com/security/notices/USN-7609-1>
- <https://ubuntu.com/security/notices/USN-7609-2>
- <https://ubuntu.com/security/notices/USN-7610-1>
- <https://ubuntu.com/security/notices/USN-7611-1>

---

Data as of 2026-12-05T03:08:31.223Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
