{"id":"CVE-2026-64023","state":"PUBLISHED","title":"gpio: aggregator: fix a potential use-after-free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: aggregator: fix a potential use-after-free\n\nOn error we free aggr->lookups->dev_id before removing the entry from\nthe lookup table. If a concurrent thread calls gpiod_find() before we\nremove the entry, it could iterate over the list and call\ngpiod_match_lookup_table() which unconditionally dereferences dev_id\nwhen calling strcmp(). Reverse the order of cleanup.","publishedAt":"2026-07-19T15:39:15.980Z","updatedAt":"2026-08-05T12:38:17.707Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"ea28b286649b70618e9dd3e895812417a7712a11","versionType":"git"},{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"7ac4183a41ba048af89eddd82fe8be64619d0871","versionType":"git"},{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"30c073cab97afb31901f94de9605177b6b84367e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-aggregator.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-aggregator.c"]}],"references":["https://git.kernel.org/stable/c/ea28b286649b70618e9dd3e895812417a7712a11","https://git.kernel.org/stable/c/7ac4183a41ba048af89eddd82fe8be64619d0871","https://git.kernel.org/stable/c/30c073cab97afb31901f94de9605177b6b84367e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64023.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64023","state":"PUBLISHED","datePublished":"2026-07-19T15:39:15.980Z","dateUpdated":"2026-08-05T12:38:17.707Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.027Z"},"containers":{"cna":{"title":"gpio: aggregator: fix a potential use-after-free","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: aggregator: fix a potential use-after-free\n\nOn error we free aggr->lookups->dev_id before removing the entry from\nthe lookup table. If a concurrent thread calls gpiod_find() before we\nremove the entry, it could iterate over the list and call\ngpiod_match_lookup_table() which unconditionally dereferences dev_id\nwhen calling strcmp(). Reverse the order of cleanup."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"ea28b286649b70618e9dd3e895812417a7712a11","versionType":"git"},{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"7ac4183a41ba048af89eddd82fe8be64619d0871","versionType":"git"},{"version":"86f162e73d2d81ef6d819c06a3b6c2fda77a79b8","status":"affected","lessThan":"30c073cab97afb31901f94de9605177b6b84367e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-aggregator.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-aggregator.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ea28b286649b70618e9dd3e895812417a7712a11"},{"url":"https://git.kernel.org/stable/c/7ac4183a41ba048af89eddd82fe8be64619d0871"},{"url":"https://git.kernel.org/stable/c/30c073cab97afb31901f94de9605177b6b84367e"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires writing to the gpio-aggregator configfs interface at /sys/kernel/config/gpio-aggregator/ (live attribute) or equivalent sysfs driver attributes; there is no network, adjacent, or physical attack path.\nAC:L - The attacker can reliably win the race by concurrently triggering failed aggregator activation (live=1 with probe-forcing config) and GPIO lookup activity (gpiod_find via parallel activations or device probing); both race sides are attacker-controlled.\nPR:L - Default configfs/sysfs access is root-only, but industrial/embedded GPIO-aggregator deployments commonly delegate configfs management to local service accounts; any local user with write access to the gpio-aggregator configfs tree can exploit without full init-namespace root.\nUI:N - Exploitation is fully attacker-driven through configfs writes and concurrent threads; no victim interaction is required.\nS:U - Impact is confined to kernel memory via the GPIO lookup-table UAF; this is standard local kernel privilege escalation/memory corruption, not a cross-boundary escape (VM, IOMMU, or sandbox).\nC:H - The use-after-free dereferences freed dev_id memory in strcmp() during gpiod_match_lookup_table(), enabling arbitrary kernel heap reads and information disclosure.\nI:H - Use-after-free on a global lookup-table entry can be leveraged with heap grooming for memory corruption and potential arbitrary write or code execution, not merely a bounded modification.\nA:H - Dereferencing freed dev_id memory can cause kernel oops/panic from invalid memory access; UAF bugs inherently threaten system availability even when not fully exploited."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:38:17.707Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}