CVE-2024-40937

published 12 Jul 2024 · updated 5 Aug 2026

gve: Clear napi->skb before dev_kfree_skb_any()

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 2ce5341c36993b776012601921d7688693f8c037, Kernel 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e, Kernel 75afd8724739ee5ed8165acde5f6ac3988b485cc and 2 more.

In the Linux kernel, the following vulnerability has been resolved: gve: Clear napi->skb before dev_kfree_skb_any() gve_rx_free_skb incorrectly leaves napi->skb referencing an skb after it is freed with dev_kfree_skb_any(). This can result in a subsequent call to napi_get_frags returning a dangling pointer. Fix this by clearing napi->skb before the skb is freed.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.14, >=9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 <2ce5341c36993b776012601921d7688693f8c037, >=9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 <6f4d93b78ade0a4c2cafd587f7b429ce95abb02e, >=9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 <75afd8724739ee5ed8165acde5f6ac3988b485cc, >=9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 <a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50, >=9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 <d221284991118c0ab16480b53baecd857c0bc4422ce5341c36993b776012601921d7688693f8c037, 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e, 75afd8724739ee5ed8165acde5f6ac3988b485cc, a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50, d221284991118c0ab16480b53baecd857c0bc442

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-40937 severity on Zeptric[![CVE-2024-40937](https://zeptric.io/badge/cve/CVE-2024-40937.svg)](https://zeptric.io/cve/CVE-2024-40937)