CVE-2024-40937

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-40937
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40937.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-40937
Downstream
Related
Published
2024-07-12T12:25:13.807Z
Modified
2025-11-28T02:35:32.295930Z
Summary
gve: Clear napi->skb before dev_kfree_skb_any()
Details

In the Linux kernel, the following vulnerability has been resolved:

gve: Clear napi->skb before devkfreeskb_any()

gverxfreeskb incorrectly leaves napi->skb referencing an skb after it is freed with devkfreeskbany(). This can result in a subsequent call to napigetfrags returning a dangling pointer.

Fix this by clearing napi->skb before the skb is freed.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40937.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9b8dd5e5ea48bbb7532d20c4093a79d8283e4029
Fixed
75afd8724739ee5ed8165acde5f6ac3988b485cc
Fixed
d221284991118c0ab16480b53baecd857c0bc442
Fixed
2ce5341c36993b776012601921d7688693f8c037
Fixed
a68184d5b420ea4fc7e6b7ceb52bbc66f90d3c50
Fixed
6f4d93b78ade0a4c2cafd587f7b429ce95abb02e

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.0
Fixed
5.15.162
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.95
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.35
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.6