pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.19.7
- CVEs
- CVE-2026-23337
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:01 UTC · Revision 1
Source evidence
pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()
core-osv · Original sourcePublished 25 Mar 2026, 10:27 UTC
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.
osv:CVE-2026-23337
Kernel
Fixed versions: 6.19.7
Complete source record
{
"id": "f5ad3f6c57ae62f8e0fc66f46729c9e0742e16dec5e38f07e036d069b47274cd",
"url": "https://osv.dev/vulnerability/CVE-2026-23337",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()",
"summary": "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.",
"evidence": "osv:CVE-2026-23337",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.19.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-23337",
"aliases": [
"CVE-2026-23337"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "90a18c512884adb49ddc2fb30e94594169aae808"
},
{
"fixed": "63ee429780a5d43b5b4406c6128109b0f47cf2f1"
},
{
"fixed": "7a648d598cb8e8c62af3f0e020a25820a3f3a9a7"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23337.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23337.json"
}
}
],
"modified": "2026-10-28T02:30:53.512270295Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/63ee429780a5d43b5b4406c6128109b0f47cf2f1",
"https://git.kernel.org/stable/c/7a648d598cb8e8c62af3f0e020a25820a3f3a9a7",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23337.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23337",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23337.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23337",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 522029,
"published_at": "2026-03-25T10:27:26.72+00:00"
}