---
id: CVE-2025-37997
title: |-
  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…
summary: |-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-667
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.4.24, < 5.4.294'
  - 'linux_kernel >= 5.5.8, < 5.6'
  - 'linux_kernel >= 5.6.1, < 5.10.238'
  - 'linux_kernel >= 5.11, < 5.15.183'
  - 'linux_kernel >= 5.16, < 6.1.139'
  - 'linux_kernel >= 6.2, < 6.6.91'
  - 'linux_kernel >= 6.7, < 6.12.29'
  - 'linux_kernel >= 6.13, < 6.14.7'
  - linux_kernel = 5.6
  - linux_kernel = 6.15
  - debian_linux = 11.0
patched:
  - linux_kernel 6.14.7
published: '2025-05-29'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:23.573'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-37997'
references:
  - url: 'https://git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
epss: 0.00181
epssPercentile: 0.07607
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:46:37.316861Z'
ingestedAt: '2026-10-15T22:48:25.487Z'
---

## Overview

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

- `linux_kernel >= 5.4.24, < 5.4.294`
- `linux_kernel >= 5.5.8, < 5.6`
- `linux_kernel >= 5.6.1, < 5.10.238`
- `linux_kernel >= 5.11, < 5.15.183`
- `linux_kernel >= 5.16, < 6.1.139`
- `linux_kernel >= 6.2, < 6.6.91`
- `linux_kernel >= 6.7, < 6.12.29`
- `linux_kernel >= 6.13, < 6.14.7`
- `linux_kernel = 5.6`
- `linux_kernel = 6.15`
- `debian_linux = 11.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.14.7`
