Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected d079f94c90469f413920b9f2b201537fac2ceb06 before 222a9301b086852b90d3b092fef436c3f4e927c4; affected d079f94c90469f413920b9f2b201537fac2ceb06 before 37ff63c5d7119cbc5c6bacdcc658add6008a8e1f; affected d079f94c90469f413920b9f2b201537fac2ceb06 before 6c6f22b7e6cbc4e8c1e359fc9b190419391c3db7; affected d079f94c90469f413920b9f2b201537fac2ceb06 before 931abe1deb65b919d23fa203d7f6d6fbd4fccd8e; affected d079f94c90469f413920b9f2b201537fac2ceb06 before 4b7ee504969e074725e439c949f2483e5fa5572a; affected d079f94c90469f413920b9f2b201537fac2ceb06 before 084973ebd67b28f0945c5d45408f86c58b540110 |
| Linux / Linux | affected 4.20; unaffected 0 before 4.20; unaffected 6.1.183 through 6.1.*; unaffected 6.6.148 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/222a9301b086852b90d3b092fef436c3f4e927c4
- https://git.kernel.org/stable/c/37ff63c5d7119cbc5c6bacdcc658add6008a8e1f
- https://git.kernel.org/stable/c/6c6f22b7e6cbc4e8c1e359fc9b190419391c3db7
- https://git.kernel.org/stable/c/931abe1deb65b919d23fa203d7f6d6fbd4fccd8e
- https://git.kernel.org/stable/c/4b7ee504969e074725e439c949f2483e5fa5572a
- https://git.kernel.org/stable/c/084973ebd67b28f0945c5d45408f86c58b540110