# CVE-2022-50826: ipu3-imgu: Fix NULL pointer dereference in imgu\_subdev\_set\_selection()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:08:38.950Z
- **Modified:** 2026-06-17T05:24:15.323Z

## Who should check

- Anyone running Linux \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< fa6bbb4894b9b947063c6ff90018a954c5f9f4b3; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 611d617bdb6c5d636a9861ec1c98e813fc8a5556; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 5038ee677606106c91564f9c4557d808d14bad70; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< dc608edf7d45ba0c2ad14c06eccd66474fec7847
- Anyone running Linux 5.14

## 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().

## Affected and fixed versions

- Linux: \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< fa6bbb4894b9b947063c6ff90018a954c5f9f4b3; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 611d617bdb6c5d636a9861ec1c98e813fc8a5556; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 5038ee677606106c91564f9c4557d808d14bad70; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< dc608edf7d45ba0c2ad14c06eccd66474fec7847 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50826. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50826.md
Affected: Linux >= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, < fa6bbb4894b9b947063c6ff90018a954c5f9f4b3; >= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, < 611d617bdb6c5d636a9861ec1c98e813fc8a5556; >= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, < 5038ee677606106c91564f9c4557d808d14bad70; >= 0d346d2a6f54f06f36b224f…
Fixed in: Linux 611d617bdb6c5d636a9861ec1c98e813fc8a5556, Linux 5038ee677606106c91564f9c4557d808d14bad70

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50826 being exploited?

There is no confirmed exploitation: CVE-2022-50826 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50826?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50826?

Linux \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< fa6bbb4894b9b947063c6ff90018a954c5f9f4b3; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 611d617bdb6c5d636a9861ec1c98e813fc8a5556; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< 5038ee677606106c91564f9c4557d808d14bad70; \>= 0d346d2a6f54f06f36b224fd27cd6eafe8c83be9, \< dc608edf7d45ba0c2ad14c06eccd66474fec7847; Linux 5.14.

### Is there a fix for CVE-2022-50826?

Yes. Fixed in Linux 611d617bdb6c5d636a9861ec1c98e813fc8a5556, Linux 5038ee677606106c91564f9c4557d808d14bad70. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50826?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/fa6bbb4894b9b947063c6ff90018a954c5f9f4b3>
- other: <https://git.kernel.org/stable/c/611d617bdb6c5d636a9861ec1c98e813fc8a5556>
- other: <https://git.kernel.org/stable/c/5038ee677606106c91564f9c4557d808d14bad70>
- other: <https://git.kernel.org/stable/c/dc608edf7d45ba0c2ad14c06eccd66474fec7847>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50826>

HTML: <https://flawdb.com/CVE-2022-50826> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50826>
