What’s Vulnerable › Vulnerabilities
CVE-2021-47141: gve: Add NULL pointer checks when freeing irqs.
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-25 · updated 2026-06-17
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: gve: Add NULL pointer checks when freeing irqs. When freeing notification blocks, we index priv->msix_vectors. If we failed to allocate priv->msix_vectors (see abort_with_msix_vectors) this could lead to a NULL pointer dereference if the driver is unloaded.
Affected products
- Linux kernel: from 5.3 before 5.4.124; from 5.5 before 5.10.42; from 5.11 before 5.12.9; 5.13-rc1, 5.13-rc2, 5.13-rc3 — fixed in 5.10.42, 5.12.9, 5.4.124
How to fix
Upgrade to a fixed version: Linux kernel 5.10.42, 5.12.9, 5.4.124. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/5218e919c8d06279884aa0baf76778a6817d5b93
- https://git.kernel.org/stable/c/5278c75266c5094d3c0958793bf12fc90300e580
- https://git.kernel.org/stable/c/821149ee88c206fa37e79c1868cc270518484876
- https://git.kernel.org/stable/c/da21a35c00ff1a1794d4f166d3b3fa8db4d0f6fb
- https://git.kernel.org/stable/c/5218e919c8d06279884aa0baf76778a6817d5b93
- https://git.kernel.org/stable/c/5278c75266c5094d3c0958793bf12fc90300e580
- https://git.kernel.org/stable/c/821149ee88c206fa37e79c1868cc270518484876
- https://git.kernel.org/stable/c/da21a35c00ff1a1794d4f166d3b3fa8db4d0f6fb
Get alerted when CVE-2021-47141 or the next vulnerability affects your stack