# CVE-2023-52643: iio: core: fix memleak in iio_device_register_sysfs

- 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-04-17T09:43:45.813Z
- Modified: 2026-06-17T06:43:14.517Z
- 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:

iio: core: fix memleak in iio_device_register_sysfs

When iio_device_register_sysfs_group() fails, we should
free iio_dev_opaque->chan_attr_group.attrs to prevent
potential memleak.

(As written by CVE List.)

## Affected

- Linux Linux: from 32f171724e5cbecc80594fb6eced057cfdd6eb6f before 1c6d19c8cbf6abcea2c8fca2db26abca2cbf0363; from 32f171724e5cbecc80594fb6eced057cfdd6eb6f before 359f220d0e753bba840eac19ffedcdc816b532f2; from 32f171724e5cbecc80594fb6eced057cfdd6eb6f before b90126c86d83912688501826643ea698f0df1728; from 32f171724e5cbecc80594fb6eced057cfdd6eb6f before 3db312e06851996e7fb27cb5a8ccab4c0f9cdb93; from 32f171724e5cbecc80594fb6eced057cfdd6eb6f before 95a0d596bbd0552a78e13ced43f2be1038883c81; 5.13 (not affected: before 5.13; from 5.15.149 up to 5.15.*; from 6.1.79 up to 6.1.*; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.13 before 5.15.149; from 5.16 before 6.1.79; from 6.2 before 6.6.18; from 6.7 before 6.7.6; 6.8

## References

- <https://git.kernel.org/stable/c/1c6d19c8cbf6abcea2c8fca2db26abca2cbf0363> (patch)
- <https://git.kernel.org/stable/c/359f220d0e753bba840eac19ffedcdc816b532f2> (patch)
- <https://git.kernel.org/stable/c/b90126c86d83912688501826643ea698f0df1728> (patch)
- <https://git.kernel.org/stable/c/3db312e06851996e7fb27cb5a8ccab4c0f9cdb93> (patch)
- <https://git.kernel.org/stable/c/95a0d596bbd0552a78e13ced43f2be1038883c81> (patch)

## Sources

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

---

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