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().
[
{
"id": "CVE-2025-37874-03f1b394",
"signature_version": "v1",
"digest": {
"length": 4319.0,
"function_hash": "327458363938467061843412287779964536856"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c2b66a31c7a4866400f7e6fb43cb32021bfca01",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c",
"function": "ngbe_probe"
}
},
{
"id": "CVE-2025-37874-1d2a5aee",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"140462974595532947957909457035472870941",
"217952028566273592417472146589702664671",
"152648932156126390242496186907779496084",
"247518921405719915328835970357793887459",
"261756865256140171570255312291769593685",
"260978059851191179511227686633959239666",
"271964488202356206232565515308368522953",
"199504412728203259434112005742388167011"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@397487338eff1891c4654ce7deaafbf72a1688b2",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c"
}
},
{
"id": "CVE-2025-37874-4f6adcaa",
"signature_version": "v1",
"digest": {
"length": 4193.0,
"function_hash": "155389760047408714207199643224665114727"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c",
"function": "ngbe_probe"
}
},
{
"id": "CVE-2025-37874-7790a0ea",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"140462974595532947957909457035472870941",
"217952028566273592417472146589702664671",
"152648932156126390242496186907779496084",
"247518921405719915328835970357793887459",
"261756865256140171570255312291769593685",
"260978059851191179511227686633959239666",
"271964488202356206232565515308368522953",
"199504412728203259434112005742388167011"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8335a3feb9d0d97e5e8f76d38b6bb8573d5b4a29",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c"
}
},
{
"id": "CVE-2025-37874-8c307acc",
"signature_version": "v1",
"digest": {
"length": 4193.0,
"function_hash": "155389760047408714207199643224665114727"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa80021b77732bc98f73fb69d69c7cc37b9f0d",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c",
"function": "ngbe_probe"
}
},
{
"id": "CVE-2025-37874-8c6d4ee2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"140462974595532947957909457035472870941",
"217952028566273592417472146589702664671",
"152648932156126390242496186907779496084",
"247518921405719915328835970357793887459",
"261756865256140171570255312291769593685",
"260978059851191179511227686633959239666",
"271964488202356206232565515308368522953",
"199504412728203259434112005742388167011"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88fa80021b77732bc98f73fb69d69c7cc37b9f0d",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c"
}
},
{
"id": "CVE-2025-37874-a0181a9e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"140462974595532947957909457035472870941",
"217952028566273592417472146589702664671",
"152648932156126390242496186907779496084",
"247518921405719915328835970357793887459",
"261756865256140171570255312291769593685",
"260978059851191179511227686633959239666",
"271964488202356206232565515308368522953",
"199504412728203259434112005742388167011"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c2b66a31c7a4866400f7e6fb43cb32021bfca01",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c"
}
},
{
"id": "CVE-2025-37874-aaffc63b",
"signature_version": "v1",
"digest": {
"length": 4193.0,
"function_hash": "155389760047408714207199643224665114727"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@397487338eff1891c4654ce7deaafbf72a1688b2",
"target": {
"file": "drivers/net/ethernet/wangxun/ngbe/ngbe_main.c",
"function": "ngbe_probe"
}
}
]