{"id":"CVE-2024-40940","summary":"net/mlx5: Fix tainted pointer delete is case of flow rules creation fail","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix tainted pointer delete is case of flow rules creation fail\n\nIn case of flow rule creation fail in mlx5_lag_create_port_sel_table(),\ninstead of previously created rules, the tainted pointer is deleted\ndeveral times.\nFix this bug by using correct flow rules pointers.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","modified":"2026-03-20T12:37:24.606857Z","published":"2024-07-12T12:25:15.808Z","related":["SUSE-SU-2024:2802-1","SUSE-SU-2024:2894-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2947-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40940.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/229bedbf62b13af5aba6525ad10b62ad38d9ccb5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/531eab2da27dd42d68dfb841d82e987f4a6738b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a03a3fa12769e25f4385bee587afe1445aee7f7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d857df86837ac1c30592e8a068204d16feac9930"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40940"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"352899f384d4aefa77ede6310d08c1b515612a8f"},{"fixed":"531eab2da27dd42d68dfb841d82e987f4a6738b8"},{"fixed":"d857df86837ac1c30592e8a068204d16feac9930"},{"fixed":"a03a3fa12769e25f4385bee587afe1445aee7f7a"},{"fixed":"229bedbf62b13af5aba6525ad10b62ad38d9ccb5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40940.json"}}],"schema_version":"1.7.5"}