CVE-2025-37997

netfilter: ipset: fix region locking in hash types

Published May 29, 2025 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4271-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4327-1 linux security update
EUVD EUVD EUVD-2025-16383 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.
Ubuntu USN Ubuntu USN USN-7608-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-2 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-3 Linux kernel (Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-5 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-6 Linux kernel (Xilinx ZynqMP) vulnerabilities
Ubuntu USN Ubuntu USN USN-7608-7 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-7609-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7609-2 Linux kernel (Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-7609-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-7609-4 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-7609-5 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-7610-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7610-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7610-3 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-7611-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7611-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-7611-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-7611-4 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-7618-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-7628-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-7653-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-7655-1 Linux kernel (Intel IoTG) vulnerabilities
Ubuntu USN Ubuntu USN USN-7665-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-7671-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7671-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-7671-3 Linux kernel (IoT) vulnerabilities
Ubuntu USN Ubuntu USN USN-7686-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-7712-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-7712-2 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Debian
Debian debian Linux
Weaknesses CWE-667
CPEs cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.6:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.6:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.6:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.6:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.6:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*
Vendors & Products Debian
Debian debian Linux
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
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.
Title netfilter: ipset: fix region locking in hash types
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 15, 2026, 9:52 PM
Reserved
Apr 16, 2025, 4:51 AM
Status
Modified
Published
May 29, 2025, 2:15 PM
Modified
Oct 15, 2026, 10:18 PM
Severity
Moderate
Public date
May 29, 2025, 12:00 AM