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

High 7.1 Published Updated

A bug in the imx-jpeg driver allows out-of-bounds array access, leading to kernel panic and denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49163?

CVE-2022-49163 is a high-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2022-49163?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49163?

Apply the vendor's patch.

Is CVE-2022-49163 being exploited?

There is no known exploitation of CVE-2022-49163 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49163, GHSA-4rpj-c283-5mg3, UBUNTU-CVE-2022-49163.

Is CVE-2022-49163 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free