# CVE-2022-49165: media: imx-jpeg: Prevent decoding NV12M jpegs into single-planar buffers

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:25.028Z
- Modified: 2026-06-17T05:17:15.473Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: imx-jpeg: Prevent decoding NV12M jpegs into single-planar buffers

If the application queues an NV12M jpeg as output buffer, but then
queues a single planar capture buffer, the kernel will crash with
"Unable to handle kernel NULL pointer dereference" in mxc_jpeg_addrs,
prevent this by finishing the job with error.

(As written by CVE List.)

## Affected

- Linux Linux: from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before eff76b180751e5e55c872d17755680c3b83ba9ab; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 8d075ede7d24f19dc817c5bd517a53f0524f9031; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 4eb591c47c82a6a6ad293ed108c3cb77115fbc25; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 417591a766b3c040c346044541ff949c0b2bb7b2; 5.13 (not affected: before 5.13; from 5.15.33 up to 5.15.*; from 5.16.19 up to 5.16.*; from 5.17.2 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 5.13 before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## References

- <https://git.kernel.org/stable/c/eff76b180751e5e55c872d17755680c3b83ba9ab> (patch)
- <https://git.kernel.org/stable/c/8d075ede7d24f19dc817c5bd517a53f0524f9031> (patch)
- <https://git.kernel.org/stable/c/4eb591c47c82a6a6ad293ed108c3cb77115fbc25> (patch)
- <https://git.kernel.org/stable/c/417591a766b3c040c346044541ff949c0b2bb7b2> (patch)

## Sources

- CVE List: [CVE-2022-49165](https://www.cve.org/CVERecord?id=CVE-2022-49165), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49165](https://nvd.nist.gov/vuln/detail/CVE-2022-49165), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49165 · Whole record: https://cve.day/CVE-2022-49165.json · Rebuilt by cve.day 2026-11-25T22:58:20.241Z
