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

High 7.8 Published Updated

A race condition in Linux kernel ipset hash types can cause denial of service when timeouts are enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37997?

CVE-2025-37997 is a high-severity vulnerability in Debian Debian Linux, published on 29 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-667

Which versions are affected by CVE-2025-37997?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37997?

Apply the vendor's patch.

Is CVE-2025-37997 being exploited?

There is no known exploitation of CVE-2025-37997 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37997, DEBIAN-CVE-2025-37997, GHSA-jgxp-fpw7-p364, ROOT-OS-DEBIAN-11-CVE-2025-37997, ROOT-OS-DEBIAN-12-CVE-2025-37997, ROOT-OS-UBUNTU-2204-CVE-2025-37997 and 1 more.

Is CVE-2025-37997 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free