CVE-2022-49163
JSON

7.1high

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

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.13 before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2NVD

All scores

Linux7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: imx-jpeg: corrige un error de acceso a la matriz fuera de los límites Cuando ocurre un error al analizar jpeg, la ranura aún no se adquiere, puede ser el valor predeterminado MXC_MAX_SLOTS. Si el controlador accede a la ranura usando el número de ranura incorrecto, accederá a la matriz fuera de los límites. El resultado es que el controlador cambiará num_domains, que sigue a slot_data en struct mxc_jpeg_dev. Luego, el controlador no separará el dominio pm en rmmod, lo que provocará un pánico del kernel al intentar insmod nuevamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49163 changed 2026-08-05CVE Terms of Use
NVDCVE-2022-49163 changed 2026-08-04Public domain