{"id":"CVE-2025-37872","summary":"net: txgbe: fix memory leak in txgbe_probe() error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: txgbe: fix memory leak in txgbe_probe() error path\n\nWhen txgbe_sw_init() is called, memory is allocated for wx-\u003erss_key\nin wx_init_rss_key(). However, in txgbe_probe() function, the subsequent\nerror paths after txgbe_sw_init() don't free the rss_key. Fix that by\nfreeing it in error path along with wx-\u003emac_table.\n\nAlso change the label to which execution jumps when txgbe_sw_init()\nfails, because otherwise, it could lead to a double free for rss_key,\nwhen the mac_table allocation fails in wx_sw_init().","modified":"2026-03-20T12:42:31.911564Z","published":"2025-05-09T06:44:00.570Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37872.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/635863d93deb8e352d63a8eba852efeaf1ac3539"},{"type":"WEB","url":"https://git.kernel.org/stable/c/837197a722919f5b0eeb967fe7cb0cc1e83173b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2727326d0a53709380aa147018085d71a6d4843"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37872.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37872"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"937d46ecc5f941b26270bdf7ce37495f12b25955"},{"fixed":"635863d93deb8e352d63a8eba852efeaf1ac3539"},{"fixed":"837197a722919f5b0eeb967fe7cb0cc1e83173b9"},{"fixed":"b2727326d0a53709380aa147018085d71a6d4843"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37872.json"}}],"schema_version":"1.7.5"}