# CVE-2023-52706: gpio: sim: fix a memory leak

- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-21T15:22:54.679Z
- Modified: 2026-06-17T06:43:23.593Z
- 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:

gpio: sim: fix a memory leak

Fix an inverted logic bug in gpio_sim_remove_hogs() that leads to GPIO
hog structures never being freed.

(As written by CVE List.)

## Affected

- Linux Linux: from cb8c474e79be458f58e9df073f51ca159f3a2aa0 before 854e1ecff266033d3149666d3c5b8b0e174b4210; from cb8c474e79be458f58e9df073f51ca159f3a2aa0 before 79eeab1d85e0fee4c0bc36f3b6ddf3920f39f74b; 5.17 (not affected: before 5.17; from 6.1.13 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.17 before 6.1.13; 6.2

## References

- <https://git.kernel.org/stable/c/854e1ecff266033d3149666d3c5b8b0e174b4210> (patch)
- <https://git.kernel.org/stable/c/79eeab1d85e0fee4c0bc36f3b6ddf3920f39f74b> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52706 · Whole record: https://cve.day/CVE-2023-52706.json · Rebuilt by cve.day 2026-11-25T22:58:33.987Z
