{"id":"CVE-2025-37788","aliases":["CVE-2025-37788"],"related":[],"kind":"vulnerability","state":"published","title":"cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path\n\nIn the for loop used to allocate the loc_array and bmap for each port, a\nmemory leak is possible when the allocation for loc_array succeeds,\nbut the allocation for bmap fails. This is because when the control flow\ngoes to the label free_eth_finfo, only the allocations starting from\n(i-1)th iteration are freed.\n\nFix that by freeing the loc_array in the bmap allocation error path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path\n\nIn the for loop used to allocate the loc_array and bmap for each port, a\nmemory leak is possible when the allocation for loc_array succeeds,\nbut the allocation for bmap fails. This is because when the control flow\ngoes to the label free_eth_finfo, only the allocations starting from\n(i-1)th iteration are freed.\n\nFix that by freeing the loc_array in the bmap allocation error path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cxgb4: Se corrige la fuga de memoria en la ruta de error de cxgb4_init_ethtool_filters(). En el bucle for utilizado para asignar loc_array y bmap para cada puerto, es posible que se produzca una fuga de memoria cuando la asignación de loc_array se realiza correctamente, pero la de bmap falla. Esto se debe a que, cuando el flujo de control accede a la etiqueta free_eth_finfo, solo se liberan las asignaciones a partir de la iteración (i-1). Para solucionar esto, libere loc_array en la ruta de error de asignación de bmap.","source":"nvd"}],"published":"2025-05-01T13:07:22.208Z","modified":"2026-11-05T21:17:52.477Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"e9de08e15aee35b96064960f95997bb6c1209c4b","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"118d05b530343cd9322607b9719405ba254a4183","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"fa2d7708955e4f8212fd69bab1da604e60cb0b15","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"08aa59c0be768596467552c129e9f82166779a67","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"dafb6e433ab2333b67be05433dc9c6ccbc7b1284","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"76deedea08899885f076aba0bb80bd1276446822","status":"affected"},{"type":"git","introduced":"d915c299f1da68a7dbb43895b8741c7b916c9d08","fixed":"00ffb3724ce743578163f5ade2884374554ca021","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.237","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.135","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.88","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.25","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.4","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.9","fixed":"5.10.237"},{"status":"affected","introduced":"5.11","fixed":"5.15.181"},{"status":"affected","introduced":"5.16","fixed":"6.1.135"},{"status":"affected","introduced":"6.2","fixed":"6.6.88"},{"status":"affected","introduced":"6.7","fixed":"6.12.25"},{"status":"affected","introduced":"6.13","fixed":"6.14.4"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e9de08e15aee35b96064960f95997bb6c1209c4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/118d05b530343cd9322607b9719405ba254a4183","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa2d7708955e4f8212fd69bab1da604e60cb0b15","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08aa59c0be768596467552c129e9f82166779a67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dafb6e433ab2333b67be05433dc9c6ccbc7b1284","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76deedea08899885f076aba0bb80bd1276446822","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00ffb3724ce743578163f5ade2884374554ca021","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:40:43.010Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37788","url":"https://www.cve.org/CVERecord?id=CVE-2025-37788","licence":"CVE Terms of Use","modified":"2026-11-05T20:41:53.885Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37788","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37788","licence":"Public domain","modified":"2026-11-05T21:17:52.477Z"}],"updatedAt":"2026-11-25T22:58:57.332Z","epss":{"score":0.00207,"percentile":0.11362,"date":"2026-12-01T12:00:22.000Z"}}