# CVE-2024-40937: gve: Clear napi-\>skb before dev\_kfree\_skb\_any()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.95% (percentile 60, 2026-11-26)
- **Published:** 2024-07-12T12:25:13.807Z
- **Modified:** 2026-08-05T11:34:07.395Z

## Who should check

- Anyone running Linux \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 75afd8724739ee5ed8165acde5f6ac3988b485cc; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< d221284991118c0ab16480b53baecd857c0bc442; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 2ce5341c36993b776012601921d7688693f8c037; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e
- Anyone running Linux 5.14

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

## Affected and fixed versions

- Linux: \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 75afd8724739ee5ed8165acde5f6ac3988b485cc; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< d221284991118c0ab16480b53baecd857c0bc442; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 2ce5341c36993b776012601921d7688693f8c037; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-40937. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40937.md
Affected: Linux >= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, < 75afd8724739ee5ed8165acde5f6ac3988b485cc; >= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, < d221284991118c0ab16480b53baecd857c0bc442; >= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, < 2ce5341c36993b776012601921d7688693f8c037; >= 9b8dd5e5ea48bbb7532d20c…
Fixed in: Linux 75afd8724739ee5ed8165acde5f6ac3988b485cc, Linux 2ce5341c36993b776012601921d7688693f8c037, Linux 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-40937 being exploited?

There is no confirmed exploitation: CVE-2024-40937 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.95% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-40937?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-40937?

Linux \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 75afd8724739ee5ed8165acde5f6ac3988b485cc; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< d221284991118c0ab16480b53baecd857c0bc442; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 2ce5341c36993b776012601921d7688693f8c037; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50; \>= 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, \< 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e; Linux 5.14.

### Is there a fix for CVE-2024-40937?

Yes. Fixed in Linux 75afd8724739ee5ed8165acde5f6ac3988b485cc, Linux 2ce5341c36993b776012601921d7688693f8c037, Linux 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e. Upgrade Linux to 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e or later.

### How do I check if I'm affected by CVE-2024-40937?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-40937>

HTML: <https://flawdb.com/CVE-2024-40937> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-40937>
