CVE-2026-23337 PUBLISHED

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

Assigner: Linux
Reserved: 13.01.2026 Published: 25.03.2026 Updated: 25.03.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 90a18c512884adb49ddc2fb30e94594169aae808 to 63ee429780a5d43b5b4406c6128109b0f47cf2f1 (excl.)
  • affected from 90a18c512884adb49ddc2fb30e94594169aae808 to 7a648d598cb8e8c62af3f0e020a25820a3f3a9a7 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.19 is affected
  • unaffected from 0 to 6.19 (excl.)
  • unaffected from 6.19.7 to 6.19.* (incl.)
  • unaffected from 7.0-rc3 to * (incl.)

References