# CVE-2022-49163: media: imx-jpeg: fix a bug of accessing array out of bounds

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:24.043Z
- Modified: 2026-08-05T08:54:10.174Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

media: imx-jpeg: fix a bug of accessing array out of bounds

When error occurs in parsing jpeg, the slot isn't acquired yet, it may
be the default value MXC_MAX_SLOTS.
If the driver access the slot using the incorrect slot number, it will
access array out of bounds.
The result is the driver will change num_domains, which follows
slot_data in struct mxc_jpeg_dev.
Then the driver won't detach the pm domain at rmmod, which will lead to
kernel panic when trying to insmod again.

(As written by CVE List.)

## Affected

- Linux Linux: from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 20c8b90430c5d6c4a3936eaa7c35aac670581487; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before e209e6db2e527db6a93b14c2deedf969caca78fc; from 2db16c6ed72ce644d5639b3ed15e5817442db4ba before 97558d170a1236280407e8d29a7d095d2c2ed554; 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

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747> (patch)
- <https://git.kernel.org/stable/c/20c8b90430c5d6c4a3936eaa7c35aac670581487> (patch)
- <https://git.kernel.org/stable/c/e209e6db2e527db6a93b14c2deedf969caca78fc> (patch)
- <https://git.kernel.org/stable/c/97558d170a1236280407e8d29a7d095d2c2ed554> (patch)

## Sources

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

---

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