# CVE-2021-47141: gve: Add NULL pointer checks when freeing irqs.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:39.737Z
- Modified: 2026-06-17T04:16:38.320Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 893ce44df56580fb878ca5af9c4a5fd87567da50 before 821149ee88c206fa37e79c1868cc270518484876; from 893ce44df56580fb878ca5af9c4a5fd87567da50 before da21a35c00ff1a1794d4f166d3b3fa8db4d0f6fb; from 893ce44df56580fb878ca5af9c4a5fd87567da50 before 5278c75266c5094d3c0958793bf12fc90300e580; from 893ce44df56580fb878ca5af9c4a5fd87567da50 before 5218e919c8d06279884aa0baf76778a6817d5b93; 5.3 (not affected: before 5.3; from 5.4.124 up to 5.4.*; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux 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

## References

- <https://git.kernel.org/stable/c/821149ee88c206fa37e79c1868cc270518484876> (patch)
- <https://git.kernel.org/stable/c/da21a35c00ff1a1794d4f166d3b3fa8db4d0f6fb> (patch)
- <https://git.kernel.org/stable/c/5278c75266c5094d3c0958793bf12fc90300e580> (patch)
- <https://git.kernel.org/stable/c/5218e919c8d06279884aa0baf76778a6817d5b93> (patch)

## Sources

- CVE List: [CVE-2021-47141](https://www.cve.org/CVERecord?id=CVE-2021-47141), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47141](https://nvd.nist.gov/vuln/detail/CVE-2021-47141), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47141 · Whole record: https://cve.day/CVE-2021-47141.json · Rebuilt by cve.day 2026-11-25T22:58:08.684Z
