CVE-2022-50826
ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()
Check your servers for CVE-2022-50826
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50826 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, before fa6bbb4894b9b947063c6ff90018a954c5f9f4b3 affected from 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, before 611d617bdb6c5d636a9861ec1c98e813fc8a5556 affected from 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, before 5038ee677606106c91564f9c4557d808d14bad70 affected from 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, before dc608edf7d45ba0c2ad14c06eccd66474fec7847
Other versions: unaffected
|
| Linux |
affected 5.14 unaffected before 5.14 unaffected from 5.15.87 up to and including 5.15.* unaffected from 6.0.18 up to and including 6.0.* unaffected from 6.1.4 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50826 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50826
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50826
trivy image --scanners vuln IMAGE | grep CVE-2022-50826
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fa6bbb4894b9b947063c6ff90018a954c5f9f4b3 git.kernel.org
- https://git.kernel.org/stable/c/611d617bdb6c5d636a9861ec1c98e813fc8a5556 git.kernel.org
- https://git.kernel.org/stable/c/5038ee677606106c91564f9c4557d808d14bad70 git.kernel.org
- https://git.kernel.org/stable/c/dc608edf7d45ba0c2ad14c06eccd66474fec7847 git.kernel.org
Source: the record CVE-2022-50826 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse