In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Fix variable not being completed when function returns
When cmdallocindex(), fails cmdworkhandler() needs to complete ent->slotted before returning early. Otherwise the task which issued the command may hang:
mlx5core 0000:01:00.0: cmdworkhandler:877:(pid 3880418): failed to allocate command entry INFO: task kworker/13:2:4055883 blocked for more than 120 seconds. Not tainted 4.19.90-25.44.v2101.ky10.aarch64 #1 "echo 0 > /proc/sys/kernel/hungtasktimeoutsecs" disables this message. kworker/13:2 D 0 4055883 2 0x00000228 Workqueue: events mlx5etxdimwork [mlx5core] Call trace: _switchto+0xe8/0x150 _schedule+0x2a8/0x9b8 schedule+0x2c/0x88 scheduletimeout+0x204/0x478 waitforcommon+0x154/0x250 waitforcompletion+0x28/0x38 cmdexec+0x7a0/0xa00 [mlx5core] mlx5cmdexec+0x54/0x80 [mlx5core] mlx5coremodifycq+0x6c/0x80 [mlx5core] mlx5coremodifycqmoderation+0xa0/0xb8 [mlx5core] mlx5etxdimwork+0x54/0x68 [mlx5core] processonework+0x1b0/0x448 workerthread+0x54/0x468 kthread+0x134/0x138 retfrom_fork+0x10/0x18
[
{
"id": "CVE-2025-21662-136912b9",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36124081f6ffd9dfaad48830bdf106bb82a9457d",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"32289376846618713426574859004837842503",
"43451174133709265742956770061861676093",
"331585365323560498095498903934860473951",
"274595096913865424615908523091426313320"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-2939c038",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@229cc10284373fbe754e623b7033dca7e7470ec8",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"32289376846618713426574859004837842503",
"43451174133709265742956770061861676093",
"331585365323560498095498903934860473951",
"274595096913865424615908523091426313320"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-41bf4ff8",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e2909c6bec9048f49d0c8e16887c63b50b14647",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"32289376846618713426574859004837842503",
"43451174133709265742956770061861676093",
"331585365323560498095498903934860473951",
"274595096913865424615908523091426313320"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-5d6546f4",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36124081f6ffd9dfaad48830bdf106bb82a9457d",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c",
"function": "cmd_work_handler"
},
"deprecated": false,
"digest": {
"length": 2829.0,
"function_hash": "274203186510965785110679462406561847280"
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-79e425d0",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e2909c6bec9048f49d0c8e16887c63b50b14647",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c",
"function": "cmd_work_handler"
},
"deprecated": false,
"digest": {
"length": 2829.0,
"function_hash": "274203186510965785110679462406561847280"
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-a461583f",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@229cc10284373fbe754e623b7033dca7e7470ec8",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c",
"function": "cmd_work_handler"
},
"deprecated": false,
"digest": {
"length": 2829.0,
"function_hash": "274203186510965785110679462406561847280"
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-c1b1321d",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0a2808767ac39f64b1d9a0ff865c255073cf3d4",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c",
"function": "cmd_work_handler"
},
"deprecated": false,
"digest": {
"length": 2829.0,
"function_hash": "274203186510965785110679462406561847280"
},
"signature_version": "v1"
},
{
"id": "CVE-2025-21662-e55deafe",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0a2808767ac39f64b1d9a0ff865c255073cf3d4",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"32289376846618713426574859004837842503",
"43451174133709265742956770061861676093",
"331585365323560498095498903934860473951",
"274595096913865424615908523091426313320"
],
"threshold": 0.9
},
"signature_version": "v1"
}
]