CVE-2024-40937

gve: Clear napi->skb before dev_kfree_skb_any()

9.8 critical EPSS 0.74%

Published 12 Jul 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-40937

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-40937 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, before 75afd8724739ee5ed8165acde5f6ac3988b485cc
affected from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, before d221284991118c0ab16480b53baecd857c0bc442
affected from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, before 2ce5341c36993b776012601921d7688693f8c037
affected from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, before a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50
affected from 9b8dd5e5ea48bbb7532d20c4093a79d8283e4029, before 6f4d93b78ade0a4c2cafd587f7b429ce95abb02e
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
unaffected from 5.15.162 up to and including 5.15.*
unaffected from 6.1.95 up to and including 6.1.*
unaffected from 6.6.35 up to and including 6.6.*
unaffected from 6.9.6 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-40937 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-40937

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-40937
trivy image --scanners vuln IMAGE | grep CVE-2024-40937

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-40937 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.