Linux
media: stm32: dcmi: unregister notifier on probe failure
In the Linux kernel, the following vulnerability has been resolved: media: stm32: dcmi: unregister notifier on probe failure dcmi_graph_init() registers the async notifier before dcmi_probe() toggles the reset line. If reset_control_assert() or reset_control_deassert() fails afterwards, probe returns through err_cleanup and the driver core will not call dcmi_remove(). Unregister the notifier before cleaning it up on that error path, matching the successful remove path and the V4L2 async notifier lifetime rules. [hverkuil: added Fixes tag]
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 222a9301b086852b90d3b092fef436c3f4e927c4
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 37ff63c5d7119cbc5c6bacdcc658add6008a8e1f
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 6c6f22b7e6cbc4e8c1e359fc9b190419391c3db7
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 931abe1deb65b919d23fa203d7f6d6fbd4fccd8e
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 4b7ee504969e074725e439c949f2483e5fa5572a
- >= d079f94c90469f413920b9f2b201537fac2ceb06, < 084973ebd67b28f0945c5d45408f86c58b540110
Fixed in 222a9301b086852b90d3b092fef436c3f4e927c4, 37ff63c5d7119cbc5c6bacdcc658add6008a8e1f, 6c6f22b7e6cbc4e8c1e359fc9b190419391c3db7, 931abe1deb65b919d23fa203d7f6d6fbd4fccd8e, 4b7ee504969e074725e439c949f2483e5fa5572a, 084973ebd67b28f0945c5d45408f86c58b540110
- 4.20
Fixed in 0, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 222a9301b086852b90d3b092fef436c3f4e927c4 or 37ff63c5d7119cbc5c6bacdcc658add6008a8e1f or 6c6f22b7e6cbc4e8c1e359fc9b190419391c3db7 or 931abe1deb65b919d23fa203d7f6d6fbd4fccd8e or 4b7ee504969e074725e439c949f2483e5fa5572a or 084973ebd67b28f0945c5d45408f86c58b540110 or later.
Upgrade Linux to 0 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 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.