CVE-2022-49163

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

HIGH
7.1
CVSS Score
Published: February 26, 2025 at 01:55 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.13 ≤ v < 5.15.335.13 ≤ v < 5.16.195.13 ≤ v < 5.17.25.13 ≤ v < 5.185.16 ≤ v < 5.16.195.17 ≤ v < 5.17.22db16c6ed72ce644d5639b3ed15e5817442db4ba5.13
Vendor states this is fixed in 02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747 (fixed)
Vendor states this is fixed in 20c8b90430c5d6c4a3936eaa7c35aac670581487 (fixed)
Vendor states this is fixed in 97558d170a1236280407e8d29a7d095d2c2ed554 (fixed)
Vendor states this is fixed in e209e6db2e527db6a93b14c2deedf969caca78fc (fixed)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.15.33 (unaffected)
Vendor states this is fixed in 5.16.19 (unaffected)
Vendor states this is fixed in 5.17.2 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/20c8b90430c5d6c4a3936eaa7c35aac670581487
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/97558d170a1236280407e8d29a7d095d2c2ed554
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e209e6db2e527db6a93b14c2deedf969caca78fc

CVSS

7.1HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card