# CVE-2021-47570: staging: r8188eu: fix a memory leak in rtw_wx_read32()

- 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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-05-24T15:12:56.032Z
- Modified: 2026-06-17T04:17:47.463Z
- 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:

staging: r8188eu: fix a memory leak in rtw_wx_read32()

Free "ptmp" before returning -EINVAL.

(As written by CVE List.)

## Affected

- Linux Linux: from 2b42bd58b32155a1be4dd78991845dec05aaef9e before c8d3775745adacf9784a7a80a82d047051752573; from 2b42bd58b32155a1be4dd78991845dec05aaef9e before be4ea8f383551b9dae11b8dfff1f38b3b5436e9a; 5.15 (not affected: before 5.15; from 5.15.6 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.15 before 5.15.6

## References

- <https://git.kernel.org/stable/c/c8d3775745adacf9784a7a80a82d047051752573> (patch)
- <https://git.kernel.org/stable/c/be4ea8f383551b9dae11b8dfff1f38b3b5436e9a> (patch)

## Sources

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

---

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