Bug 2348226 (CVE-2022-49163) - CVE-2022-49163 kernel: media: imx-jpeg: fix a bug of accessing array out of bounds
Summary: CVE-2022-49163 kernel: media: imx-jpeg: fix a bug of accessing array out of b...
Keywords:
Status: NEW
Alias: CVE-2022-49163
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:22 UTC by OSIDB Bzimport
Modified: 2025-02-26 15:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:22:00 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 10:48:49 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022611-CVE-2022-49163-f5bc@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 15:21:48 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022611-CVE-2022-49163-f5bc@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.