# CVE-2025-37872: net: txgbe: fix memory leak in txgbe_probe() error path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2025-05-09T06:44:00.570Z
- Modified: 2026-06-17T09:15:36.570Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 937d46ecc5f941b26270bdf7ce37495f12b25955 before 635863d93deb8e352d63a8eba852efeaf1ac3539; from 937d46ecc5f941b26270bdf7ce37495f12b25955 before 837197a722919f5b0eeb967fe7cb0cc1e83173b9; from 937d46ecc5f941b26270bdf7ce37495f12b25955 before b2727326d0a53709380aa147018085d71a6d4843; 6.8 (not affected: before 6.8; from 6.12.25 up to 6.12.*; from 6.14.4 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.8 before 6.12.25; from 6.13 before 6.14.4; 6.15

## References

- <https://git.kernel.org/stable/c/635863d93deb8e352d63a8eba852efeaf1ac3539> (patch)
- <https://git.kernel.org/stable/c/837197a722919f5b0eeb967fe7cb0cc1e83173b9> (patch)
- <https://git.kernel.org/stable/c/b2727326d0a53709380aa147018085d71a6d4843> (patch)

## Sources

- CVE List: [CVE-2025-37872](https://www.cve.org/CVERecord?id=CVE-2025-37872), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37872](https://nvd.nist.gov/vuln/detail/CVE-2025-37872), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37872 · Whole record: https://cve.day/CVE-2025-37872.json · Rebuilt by cve.day 2026-11-25T22:58:57.856Z
