# CVE-2026-23337: pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-03-25T10:27:26.720Z
- Modified: 2026-06-17T10:21:21.150Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()

In pinconf_generic_parse_dt_config(), if parse_dt_cfg() fails, it returns
directly. This bypasses the cleanup logic and results in a memory leak of
the cfg buffer.

Fix this by jumping to the out label on failure, ensuring kfree(cfg) is
called before returning.

(As written by CVE List.)

## Affected

- Linux Linux: from 90a18c512884adb49ddc2fb30e94594169aae808 before 63ee429780a5d43b5b4406c6128109b0f47cf2f1; from 90a18c512884adb49ddc2fb30e94594169aae808 before 7a648d598cb8e8c62af3f0e020a25820a3f3a9a7; 6.19 (not affected: before 6.19; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.19.1 before 6.19.7; 6.19; 7.0

## References

- <https://git.kernel.org/stable/c/63ee429780a5d43b5b4406c6128109b0f47cf2f1> (patch)
- <https://git.kernel.org/stable/c/7a648d598cb8e8c62af3f0e020a25820a3f3a9a7> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-23337 · Whole record: https://cve.day/CVE-2026-23337.json · Rebuilt by cve.day 2026-11-25T22:59:16.677Z
