In the Linux kernel, the following vulnerability has been resolved:
net: ngbe: fix memory leak in ngbe_probe() error path
When ngbeswinit() is called, memory is allocated for wx->rsskey in wxinitrsskey(). However, in ngbeprobe() function, the subsequent error paths after ngbeswinit() don't free the rsskey. Fix that by freeing it in error path along with wx->mac_table.
Also change the label to which execution jumps when ngbeswinit() fails, because otherwise, it could lead to a double free for rsskey, when the mactable allocation fails in wxswinit().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37874.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37874.json"
[
{
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c",
"function": "ngbe_probe"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c2b66a31c7a4866400f7e6fb43cb32021bfca01",
"deprecated": false,
"digest": {
"function_hash": "327458363938467061843412287779964536856",
"length": 4319.0
},
"id": "CVE-2025-37874-03f1b394",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c2b66a31c7a4866400f7e6fb43cb32021bfca01",
"deprecated": false,
"digest": {
"line_hashes": [
"140462974595532947957909457035472870941",
"217952028566273592417472146589702664671",
"152648932156126390242496186907779496084",
"247518921405719915328835970357793887459",
"261756865256140171570255312291769593685",
"260978059851191179511227686633959239666",
"271964488202356206232565515308368522953",
"199504412728203259434112005742388167011"
],
"threshold": 0.9
},
"id": "CVE-2025-37874-a0181a9e",
"signature_type": "Line"
}
]