CVE-2024-40940

published 12 Jul 2024 · updated 11 May 2026

net/mlx5: Fix tainted pointer delete is case of flow rules creation fail

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 229bedbf62b13af5aba6525ad10b62ad38d9ccb5, Kernel 531eab2da27dd42d68dfb841d82e987f4a6738b8, Kernel a03a3fa12769e25f4385bee587afe1445aee7f7a and 1 more.

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 mlx5_lag_create_port_sel_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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.19, >=352899f384d4aefa77ede6310d08c1b515612a8f <229bedbf62b13af5aba6525ad10b62ad38d9ccb5, >=352899f384d4aefa77ede6310d08c1b515612a8f <531eab2da27dd42d68dfb841d82e987f4a6738b8, >=352899f384d4aefa77ede6310d08c1b515612a8f <a03a3fa12769e25f4385bee587afe1445aee7f7a, >=352899f384d4aefa77ede6310d08c1b515612a8f <d857df86837ac1c30592e8a068204d16feac9930229bedbf62b13af5aba6525ad10b62ad38d9ccb5, 531eab2da27dd42d68dfb841d82e987f4a6738b8, a03a3fa12769e25f4385bee587afe1445aee7f7a, d857df86837ac1c30592e8a068204d16feac9930

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-40940 severity on Zeptric[![CVE-2024-40940](https://zeptric.io/badge/cve/CVE-2024-40940.svg)](https://zeptric.io/cve/CVE-2024-40940)