Linux
gpio: aggregator: fix a potential use-after-free
In the Linux kernel, the following vulnerability has been resolved: gpio: aggregator: fix a potential use-after-free On error we free aggr->lookups->dev_id before removing the entry from the lookup table. If a concurrent thread calls gpiod_find() before we remove the entry, it could iterate over the list and call gpiod_match_lookup_table() which unconditionally dereferences dev_id when calling strcmp(). Reverse the order of cleanup.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8, < ea28b286649b70618e9dd3e895812417a7712a11
- >= 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8, < 7ac4183a41ba048af89eddd82fe8be64619d0871
- >= 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8, < 30c073cab97afb31901f94de9605177b6b84367e
Fixed in ea28b286649b70618e9dd3e895812417a7712a11, 7ac4183a41ba048af89eddd82fe8be64619d0871, 30c073cab97afb31901f94de9605177b6b84367e
- 6.16
Fixed in 0, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to ea28b286649b70618e9dd3e895812417a7712a11 or 7ac4183a41ba048af89eddd82fe8be64619d0871 or 30c073cab97afb31901f94de9605177b6b84367e or later.
Upgrade Linux to 0 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.