{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-37788","id":"CVE-2025-37788","title":"cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path","description":"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 allocat","descriptionLong":"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.","published":"2025-05-01T13:07:22.208Z","updated":"2026-11-07T02:31:00.405087390Z","reserved":"2025-04-16T04:51:23.940Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"e9de08e15aee35b96064960f95997bb6c1209c4b","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"118d05b530343cd9322607b9719405ba254a4183","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"fa2d7708955e4f8212fd69bab1da604e60cb0b15","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"08aa59c0be768596467552c129e9f82166779a67","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"dafb6e433ab2333b67be05433dc9c6ccbc7b1284","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"76deedea08899885f076aba0bb80bd1276446822","status":"affected","versionType":"git"},{"version":"d915c299f1da68a7dbb43895b8741c7b916c9d08","lessThan":"00ffb3724ce743578163f5ade2884374554ca021","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","lessThan":"5.9","status":"unaffected","versionType":"semver"},{"version":"5.10.237","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.181","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.135","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.88","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.25","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.4","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e9de08e15aee35b96064960f95997bb6c1209c4b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/118d05b530343cd9322607b9719405ba254a4183","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fa2d7708955e4f8212fd69bab1da604e60cb0b15","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/08aa59c0be768596467552c129e9f82166779a67","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dafb6e433ab2333b67be05433dc9c6ccbc7b1284","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/76deedea08899885f076aba0bb80bd1276446822","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/00ffb3724ce743578163f5ade2884374554ca021","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37788.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37788","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00202,"epssPercentile":0.10233,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-37788","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37788","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-37788","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-37788","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}