# CVE-2021-47071: uio_hv_generic: Fix a memory leak in error handling paths

- 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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-01T21:15:10.052Z
- Modified: 2026-06-17T04:16:23.267Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

uio_hv_generic: Fix a memory leak in error handling paths

If 'vmbus_establish_gpadl()' fails, the (recv|send)_gpadl will not be
updated and 'hv_uio_cleanup()' in the error handling path will not be
able to free the corresponding buffer.

In such a case, we need to free the buffer explicitly.

(As written by CVE List.)

## Affected

- Linux Linux: from cdfa835c6e5e87d145f9f632b58843de97509f2b before cdd91637d4ef33e2be19a8e16e72e7d00c996d76; from cdfa835c6e5e87d145f9f632b58843de97509f2b before d84b5e912212b05f6b5bde9f682046accfbe0354; from cdfa835c6e5e87d145f9f632b58843de97509f2b before 53486c467e356e06aa37047c984fccd64d78c827; from cdfa835c6e5e87d145f9f632b58843de97509f2b before 3ee098f96b8b6c1a98f7f97915f8873164e6af9d; 4.20 (not affected: before 4.20; from 5.4.122 up to 5.4.*; from 5.10.40 up to 5.10.*; from 5.12.7 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.20 before 5.4.122; from 5.5 before 5.10.40; from 5.11 before 5.12.7; 5.13

## References

- <https://git.kernel.org/stable/c/cdd91637d4ef33e2be19a8e16e72e7d00c996d76> (patch)
- <https://git.kernel.org/stable/c/d84b5e912212b05f6b5bde9f682046accfbe0354> (patch)
- <https://git.kernel.org/stable/c/53486c467e356e06aa37047c984fccd64d78c827> (patch)
- <https://git.kernel.org/stable/c/3ee098f96b8b6c1a98f7f97915f8873164e6af9d> (patch)

## Sources

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

---

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