CVE-2025-37788

cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 01:07 PM UTC
Updated: June 17, 2026 at 09:15 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path In the for loop used to allocate the loc_array and bmap for each port, a memory leak is possible when the allocation for loc_array succeeds, but the allocation for bmap fails. This is because when the control flow goes to the label free_eth_finfo, only the allocations starting from (i-1)th iteration are freed. Fix that by freeing the loc_array in the bmap allocation error path.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.1815.16 ≤ v < 6.1.1355.9 ≤ v < 5.10.2375.9 ≤ v < 5.15.1815.9 ≤ v < 6.1.1355.9 ≤ v < 6.12.255.9 ≤ v < 6.14.45.9 ≤ v < 6.155.9 ≤ v < 6.6.886.13 ≤ v < 6.14.46.2 ≤ v < 6.6.886.7 ≤ v < 6.12.255.96.15 rc16.15 rc2d915c299f1da68a7dbb43895b8741c7b916c9d08
Vendor states this is fixed in 00ffb3724ce743578163f5ade2884374554ca021 (fixed)
Vendor states this is fixed in 08aa59c0be768596467552c129e9f82166779a67 (fixed)
Vendor states this is fixed in 118d05b530343cd9322607b9719405ba254a4183 (fixed)
Vendor states this is fixed in 76deedea08899885f076aba0bb80bd1276446822 (fixed)
Vendor states this is fixed in dafb6e433ab2333b67be05433dc9c6ccbc7b1284 (fixed)
Vendor states this is fixed in e9de08e15aee35b96064960f95997bb6c1209c4b (fixed)
Vendor states this is fixed in fa2d7708955e4f8212fd69bab1da604e60cb0b15 (fixed)
Vendor states this is fixed in 5.10.237 (unaffected)
Vendor states this is fixed in 5.15.181 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)
Vendor states this is fixed in 6.1.135 (unaffected)
Vendor states this is fixed in 6.12.25 (unaffected)
Vendor states this is fixed in 6.14.4 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.88 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/00ffb3724ce743578163f5ade2884374554ca021
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/08aa59c0be768596467552c129e9f82166779a67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/118d05b530343cd9322607b9719405ba254a4183
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/76deedea08899885f076aba0bb80bd1276446822
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dafb6e433ab2333b67be05433dc9c6ccbc7b1284
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e9de08e15aee35b96064960f95997bb6c1209c4b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fa2d7708955e4f8212fd69bab1da604e60cb0b15
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card