CVE-2025-37872

net: txgbe: fix memory leak in txgbe_probe() error path

MEDIUM
5.5
CVSS Score
Published: May 9, 2025 at 06:44 AM UTC
Updated: June 17, 2026 at 09:15 AM UTC
1 product affected across 1 vendorLinux Kernel

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.3%

Description

In the Linux kernel, the following vulnerability has been resolved: net: txgbe: fix memory leak in txgbe_probe() error path When txgbe_sw_init() is called, memory is allocated for wx->rss_key in wx_init_rss_key(). However, in txgbe_probe() function, the subsequent error paths after txgbe_sw_init() don't free the rss_key. Fix that by freeing it in error path along with wx->mac_table. Also change the label to which execution jumps when txgbe_sw_init() fails, because otherwise, it could lead to a double free for rss_key, when the mac_table allocation fails in wx_sw_init().

Affected

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

6.13 ≤ v < 6.14.46.8 ≤ v < 6.12.256.8 ≤ v < 6.14.46.8 ≤ v < 6.156.15 rc16.15 rc26.8937d46ecc5f941b26270bdf7ce37495f12b25955
Vendor states this is fixed in 635863d93deb8e352d63a8eba852efeaf1ac3539 (fixed)
Vendor states this is fixed in 837197a722919f5b0eeb967fe7cb0cc1e83173b9 (fixed)
Vendor states this is fixed in b2727326d0a53709380aa147018085d71a6d4843 (fixed)
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.8 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/635863d93deb8e352d63a8eba852efeaf1ac3539
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/837197a722919f5b0eeb967fe7cb0cc1e83173b9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b2727326d0a53709380aa147018085d71a6d4843

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