{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-37874","id":"CVE-2025-37874","title":"net: ngbe: fix memory leak in ngbe_probe() error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ngbe: fix memory leak in ngbe_probe() error path\n\nWhen ngbe_sw_init() is called, memory is allocated for wx->rss_key\nin wx_init_rss_key(). However, in ngbe_probe() function, the subsequent\nerror paths after ngbe_sw_init() don't free the rss_key. Fix that by\nfreeing it in error path along with wx->mac_table.\n\nAlso change the ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ngbe: fix memory leak in ngbe_probe() error path\n\nWhen ngbe_sw_init() is called, memory is allocated for wx->rss_key\nin wx_init_rss_key(). However, in ngbe_probe() function, the subsequent\nerror paths after ngbe_sw_init() don't free the rss_key. Fix that by\nfreeing it in error path along with wx->mac_table.\n\nAlso change the label to which execution jumps when ngbe_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().","published":"2025-05-09T06:44:02.314Z","updated":"2026-10-28T02:30:29.902603258Z","reserved":"2025-04-16T04:51:23.960Z","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":"02338c484ab6250b81f0266ffb40d53c3efe0f47","lessThan":"7c2b66a31c7a4866400f7e6fb43cb32021bfca01","status":"affected","versionType":"git"},{"version":"02338c484ab6250b81f0266ffb40d53c3efe0f47","lessThan":"8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29","status":"affected","versionType":"git"},{"version":"02338c484ab6250b81f0266ffb40d53c3efe0f47","lessThan":"397487338eff1891c4654ce7deaafbf72a1688b2","status":"affected","versionType":"git"},{"version":"02338c484ab6250b81f0266ffb40d53c3efe0f47","lessThan":"88fa80021b77732bc98f73fb69d69c7cc37b9f0d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","lessThan":"6.2","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/7c2b66a31c7a4866400f7e6fb43cb32021bfca01","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/397487338eff1891c4654ce7deaafbf72a1688b2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/88fa80021b77732bc98f73fb69d69c7cc37b9f0d","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37874.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37874","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":null,"epss":0.00319,"epssPercentile":0.25424,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-37874","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37874","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-37874","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-37874","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}