Linux
media: i2c: ov02a10: fix endpoint parsing use-after-free
In the Linux kernel, the following vulnerability has been resolved: media: i2c: ov02a10: fix endpoint parsing use-after-free The ov02a10_check_hwcfg() function calls fwnode_handle_put(ep) immediately after allocating and parsing the endpoint. However, it subsequently calls fwnode_property_read_u32() using the same 'ep' handle, leading to a potential use-after-free. Additionally, reading the optional 'ovti,mipi-clock-voltage' property used to overwrite the 'ret' variable. If the property was missing, 'ret' would become negative, and this failure code would be incorrectly returned at the end of the function, causing probe to fail entirely. Fix the use-after-free by moving fwnode_property_read_u32() before the endpoint is parsed and freed. Avoid the error leak by not assigning the result of fwnode_property_read_u32() to 'ret'.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 9de48ba68f56de9fe20ebd3f9728d22af25f9a91
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 8ddb3b69f67b0632ff3830da18de3e8dcaf5884b
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 4c2988bf1ad2753240a38db10ce23e87ec542f8f
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 213b2489130357c8d3e8d4fb2bdab88791ce3185
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 90f9b421fc6d4f2edab7521efdb1e58571468d33
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 6e13784452785cd8402b228bea53bc6a027ade84
- >= 91807efbe8ec7f591085067d9f96a112e015274b, < 94971ba0592ca77ec99b292226a4b398763315b8
Fixed in 9de48ba68f56de9fe20ebd3f9728d22af25f9a91, 8ddb3b69f67b0632ff3830da18de3e8dcaf5884b, 4c2988bf1ad2753240a38db10ce23e87ec542f8f, 213b2489130357c8d3e8d4fb2bdab88791ce3185, 90f9b421fc6d4f2edab7521efdb1e58571468d33, 6e13784452785cd8402b228bea53bc6a027ade84, 94971ba0592ca77ec99b292226a4b398763315b8
- 5.11
Fixed in 0, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to 9de48ba68f56de9fe20ebd3f9728d22af25f9a91 or 8ddb3b69f67b0632ff3830da18de3e8dcaf5884b or 4c2988bf1ad2753240a38db10ce23e87ec542f8f or 213b2489130357c8d3e8d4fb2bdab88791ce3185 or 90f9b421fc6d4f2edab7521efdb1e58571468d33 or 6e13784452785cd8402b228bea53bc6a027ade84 or 94971ba0592ca77ec99b292226a4b398763315b8 or later.
Upgrade Linux to 0 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 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.