CVE-2022-50826
ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()
- Published
- Updated
- Reserved
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Calling v4l2_subdev_get_try_crop() and v4l2_subdev_get_try_compose() with a subdev state of NULL leads to a NULL pointer dereference. This can currently happen in imgu_subdev_set_selection() when the state passed in is NULL, as this method first gets pointers to both the "try" and "active" states and only then decides which to use. The same issue has been addressed for imgu_subdev_get_selection() with commit 30d03a0de650 ("ipu3-imgu: Fix NULL pointer dereference in active selection access"). However the issue still persists in imgu_subdev_set_selection(). Therefore, apply a similar fix as done in the aforementioned commit to imgu_subdev_set_selection(). To keep things a bit cleaner, introduce helper functions for "crop" and "compose" access and use them in both imgu_subdev_set_selection() and imgu_subdev_get_selection().
Scores
No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE. NVD status: Deferred.
- EPSS (exploitation in 30 days)
- 0.24% · top 84% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.
Affected products
- affected 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 – < fa6bbb4894b9b947063c6ff90018a954c5f9f4b3
- affected 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 – < 611d617bdb6c5d636a9861ec1c98e813fc8a5556
- affected 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 – < 5038ee677606106c91564f9c4557d808d14bad70
- affected 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9 – < dc608edf7d45ba0c2ad14c06eccd66474fec7847
- affected 5.14
- unaffected < 5.14
- unaffected 5.15.87 – ≤ 5.15.*
- unaffected 6.0.18 – ≤ 6.0.*
- unaffected 6.1.4 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References (4)
- https://git.kernel.org/stable/c/fa6bbb4894b9b947063c6ff90018a954c5f9f4b3 (opens in a new tab)
- https://git.kernel.org/stable/c/611d617bdb6c5d636a9861ec1c98e813fc8a5556 (opens in a new tab)
- https://git.kernel.org/stable/c/5038ee677606106c91564f9c4557d808d14bad70 (opens in a new tab)
- https://git.kernel.org/stable/c/dc608edf7d45ba0c2ad14c06eccd66474fec7847 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50826)Record last updated .