# CVE-2022-48661: gpio: mockup: Fix potential resource leakage when register a chip

- 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 13% of CVEs (2026-12-01)
- Published: 2024-04-28T13:01:26.940Z
- Modified: 2026-06-17T05:15:51.363Z
- Weaknesses: CWE-404
- 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: mockup: Fix potential resource leakage when register a chip

If creation of software node fails, the locally allocated string
array is left unfreed. Free it on error path.

(As written by CVE List.)

## Affected

- Linux Linux: from 6fda593f3082ef1aa783ac13e89f673fd69a2cb6 before 9b26723e058faaf11b532fb4aa16d6849d581790; from 6fda593f3082ef1aa783ac13e89f673fd69a2cb6 before 41f857033c44442a27f591fda8d986e7c9e42872; from 6fda593f3082ef1aa783ac13e89f673fd69a2cb6 before 02743c4091ccfb246f5cdbbe3f44b152d5d12933; 5.15 (not affected: before 5.15; from 5.15.71 up to 5.15.*; from 5.19.12 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.15 before 5.15.71; from 5.16 before 5.19.12

## References

- <https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790> (patch)
- <https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872> (patch)
- <https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-48661 · Whole record: https://cve.day/CVE-2022-48661.json · Rebuilt by cve.day 2026-11-25T22:58:19.790Z
