netfilter: ipset: fix region locking in hash types
Summary
| CVE | CVE-2025-37997 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-05-29 14:15:36 UTC |
| Updated | 2026-07-30 06:22:43 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-667
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 5dd9488ae41070b69d2f4acb580f77db5705f9ca 00cfc5fad1491796942a948808afb968a0a3f35b git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 226ce0ec38316d9e3739e73a64b6b8304646c658 git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 82c1eb32693bc48251d92532975e19160987e5b9 git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 aa77294b0f73bb8265987591460cd25b8722c3df git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 a3dfec485401943e315c394c29afe2db8f9481d6 git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 e2ab67672b2288521a6146034a971f9a82ffc5c5 git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 6e002ecc1c8cfdfc866b9104ab7888da54613e59 git | Not specified |
| CNA | Linux | Linux | affected f66ee0410b1c3481ee75e5db9b34547b4d582465 8478a729c0462273188263136880480729e9efca git | Not specified |
| CNA | Linux | Linux | affected a469bab3386aebff33c59506f3a95e35b91118fd git | Not specified |
| CNA | Linux | Linux | affected 5.4.24 5.4.294 semver | Not specified |
| CNA | Linux | Linux | affected 5.5.8 5.6 semver | Not specified |
| CNA | Linux | Linux | affected 5.6 | Not specified |
| CNA | Linux | Linux | unaffected 5.6 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.294 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.238 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.183 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.139 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.91 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.29 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.14.7 6.14.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.15 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/82c1eb32693bc48251d92532975e19160987e5b9 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/08/msg00010.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Third Party Advisory |
| git.kernel.org/stable/c/8478a729c0462273188263136880480729e9efca | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/00cfc5fad1491796942a948808afb968a0a3f35b | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/6e002ecc1c8cfdfc866b9104ab7888da54613e59 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e2ab67672b2288521a6146034a971f9a82ffc5c5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/10/msg00007.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Third Party Advisory |
| git.kernel.org/stable/c/226ce0ec38316d9e3739e73a64b6b8304646c658 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/aa77294b0f73bb8265987591460cd25b8722c3df | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a3dfec485401943e315c394c29afe2db8f9481d6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.