Bug 2297521 (CVE-2024-40937) - CVE-2024-40937 kernel: gve: Clear napi->skb before dev_kfree_skb_any()
Summary: CVE-2024-40937 kernel: gve: Clear napi->skb before dev_kfree_skb_any()
Keywords:
Status: NEW
Alias: CVE-2024-40937
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-12 13:36 UTC by OSIDB Bzimport
Modified: 2024-09-23 01:52 UTC (History)
4 users (show)

Fixed In Version: kernel 5.15.162, kernel 6.1.95, kernel 6.6.35, kernel 6.9.6, kernel 6.10-rc4
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-12 13:36:03 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.