In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, Fix memory leak in hwspoolbuddy_init error path
In the error path of hwspoolbuddy_init(), the buddy allocator cleanup doesn't free the allocator structure itself, causing a memory leak.
Add the missing kfree() to properly release all allocated memory.
[
{
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c"
},
"id": "CVE-2025-39830-225f12cf",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86d13a6f49cb68aa91bd718b1b627e72e77285c1",
"digest": {
"line_hashes": [
"193835221365387561082101449102458890678",
"217602036612769063613533697881496409132",
"285128138314035135803762110127975678793",
"335842555425992488845087538173617268753"
],
"threshold": 0.9
}
},
{
"target": {
"function": "hws_pool_buddy_init",
"file": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c"
},
"id": "CVE-2025-39830-5589bc99",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c0a959bebdc1ada13cf9a8242f177c5400299e6",
"digest": {
"function_hash": "173805097038891940801497545644052290365",
"length": 454.0
}
},
{
"target": {
"function": "hws_pool_buddy_init",
"file": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c"
},
"id": "CVE-2025-39830-56fb54c2",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86d13a6f49cb68aa91bd718b1b627e72e77285c1",
"digest": {
"function_hash": "173805097038891940801497545644052290365",
"length": 454.0
}
},
{
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pool.c"
},
"id": "CVE-2025-39830-fc6a43c2",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c0a959bebdc1ada13cf9a8242f177c5400299e6",
"digest": {
"line_hashes": [
"193835221365387561082101449102458890678",
"217602036612769063613533697881496409132",
"285128138314035135803762110127975678793",
"335842555425992488845087538173617268753"
],
"threshold": 0.9
}
}
]