In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Fix tainted pointer delete is case of flow rules creation fail
In case of flow rule creation fail in mlx5lagcreateportsel_table(), instead of previously created rules, the tainted pointer is deleted deveral times. Fix this bug by using correct flow rules pointers.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"id": "CVE-2024-40940-04f0d33b",
"signature_version": "v1",
"digest": {
"length": 1670.0,
"function_hash": "25286271356143379480414449222168807066"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@531eab2da27dd42d68dfb841d82e987f4a6738b8",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c",
"function": "mlx5_lag_create_port_sel_table"
}
},
{
"id": "CVE-2024-40940-18ab5213",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"115654919120744388173248131798181666502",
"174071972506420511639088922674819025097",
"129816357666325647508321452052290901961",
"126326365162461214251149095675316810564",
"212582191695053077822580049986792791773",
"276058791699922885462465016116288780369"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a03a3fa12769e25f4385bee587afe1445aee7f7a",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c"
}
},
{
"id": "CVE-2024-40940-39ad7cc2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"115654919120744388173248131798181666502",
"174071972506420511639088922674819025097",
"129816357666325647508321452052290901961",
"126326365162461214251149095675316810564",
"212582191695053077822580049986792791773",
"276058791699922885462465016116288780369"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@229bedbf62b13af5aba6525ad10b62ad38d9ccb5",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c"
}
},
{
"id": "CVE-2024-40940-4612f205",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"115654919120744388173248131798181666502",
"174071972506420511639088922674819025097",
"129816357666325647508321452052290901961",
"126326365162461214251149095675316810564",
"212582191695053077822580049986792791773",
"276058791699922885462465016116288780369"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d857df86837ac1c30592e8a068204d16feac9930",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c"
}
},
{
"id": "CVE-2024-40940-7017fb5c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"115654919120744388173248131798181666502",
"174071972506420511639088922674819025097",
"129816357666325647508321452052290901961",
"126326365162461214251149095675316810564",
"212582191695053077822580049986792791773",
"276058791699922885462465016116288780369"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@531eab2da27dd42d68dfb841d82e987f4a6738b8",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c"
}
},
{
"id": "CVE-2024-40940-a0d37aef",
"signature_version": "v1",
"digest": {
"length": 1670.0,
"function_hash": "25286271356143379480414449222168807066"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d857df86837ac1c30592e8a068204d16feac9930",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c",
"function": "mlx5_lag_create_port_sel_table"
}
},
{
"id": "CVE-2024-40940-a546f26e",
"signature_version": "v1",
"digest": {
"length": 1670.0,
"function_hash": "25286271356143379480414449222168807066"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@229bedbf62b13af5aba6525ad10b62ad38d9ccb5",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c",
"function": "mlx5_lag_create_port_sel_table"
}
},
{
"id": "CVE-2024-40940-e85bcc49",
"signature_version": "v1",
"digest": {
"length": 1670.0,
"function_hash": "25286271356143379480414449222168807066"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a03a3fa12769e25f4385bee587afe1445aee7f7a",
"target": {
"file": "drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c",
"function": "mlx5_lag_create_port_sel_table"
}
}
]