CVE-2022-49163·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.17.2
- Published
- 2025-02-26
Affected versions
From: 5.17
Until: 5.17.2
Fixed in: 5.17.2
How to fix this CVE
Update your Linux kernel to version 5.17.2 or later to patch the array bounds vulnerability in the imx-jpeg media driver. This vulnerability can cause memory corruption and kernel panic during module reloading if JPEG parsing errors occur. Apply the kernel update and reboot your system to resolve the issue.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check the installed kernel version using 'uname -r' and verify if it falls between 5.17 and 5.17.1
- Step 2: Verify if the imx-jpeg driver is loaded by running 'lsmod | grep imx_jpeg' (if present, the vulnerable component is active)
- Step 3: Search kernel logs for JPEG parsing errors using 'dmesg | grep -i jpeg' or 'journalctl -xe | grep -i jpeg'
- Step 4: After updating, run 'uname -r' again to confirm kernel version is 5.17.2 or higher, then verify imx-jpeg loads without errors after module reload
FAQ
What is CVE-2022-49163?
CVE-2022-49163 is an array out-of-bounds vulnerability in the Linux kernel's imx-jpeg media driver that occurs when JPEG parsing fails before acquiring a valid slot index, leading to memory corruption and potential kernel panic on module reload.
Is CVE-2022-49163 being actively exploited?
No, CVE-2022-49163 is not listed as actively exploited in CISA's Known Exploited Vulnerabilities catalog, and no public exploits are available.
What versions of Kernel are affected by CVE-2022-49163?
Linux kernel versions 5.17 through 5.17.1 are affected; the vulnerability was fixed in kernel 5.17.2.
How do I check if my server is vulnerable to CVE-2022-49163?
Run 'uname -r' to check your kernel version; if it shows 5.17.0 or 5.17.1, you are vulnerable. Additionally, check if the imx-jpeg driver is active with 'lsmod | grep imx_jpeg'.
Does Defensia detect CVE-2022-49163?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2022-49163 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49163. Free for 1 server.
Get started free