# CVE-2024-40937: gve: Clear napi->skb before dev_kfree_skb_any()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-07-12T12:25:13.807Z
- Modified: 2026-08-05T11:34:07.395Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 before 75afd8724739ee5ed8165acde5f6ac3988b485cc; from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 before d221284991118c0ab16480b53baecd857c0bc442; from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 before 2ce5341c36993b776012601921d7688693f8c037; from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 before a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50; from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029 before 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e; 5.14 (not affected: before 5.14; from 5.15.162 up to 5.15.*; from 6.1.95 up to 6.1.*; from 6.6.35 up to 6.6.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.14 before 5.15.162; from 5.16 before 6.1.95; from 6.2 before 6.6.35; from 6.7 before 6.9.6; 6.10

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/75afd8724739ee5ed8165acde5f6ac3988b485cc> (patch)
- <https://git.kernel.org/stable/c/d221284991118c0ab16480b53baecd857c0bc442> (patch)
- <https://git.kernel.org/stable/c/2ce5341c36993b776012601921d7688693f8c037> (patch)
- <https://git.kernel.org/stable/c/a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50> (patch)
- <https://git.kernel.org/stable/c/6f4d93b78ade0a4c2cafd587f7b429ce95abb02e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-40937](https://www.cve.org/CVERecord?id=CVE-2024-40937), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-40937](https://nvd.nist.gov/vuln/detail/CVE-2024-40937), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-40937 · Whole record: https://cve.day/CVE-2024-40937.json · Rebuilt by cve.day 2026-11-25T22:58:42.848Z
