[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025070427-CVE-2025-38225-75f6@gregkh>
Date: Fri, 4 Jul 2025 15:37:54 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38225: media: imx-jpeg: Cleanup after an allocation error
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: imx-jpeg: Cleanup after an allocation error
When allocation failures are not cleaned up by the driver, further
allocation errors will be false-positives, which will cause buffers to
remain uninitialized and cause NULL pointer dereferences.
Ensure proper cleanup of failed allocations to prevent these issues.
The Linux kernel CVE team has assigned CVE-2025-38225 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.6.95 with commit ec26be7d6355a05552a0d0c1e73031f83aa4dc7f
Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.12.35 with commit 0ee9469f818a0b4de3c0e7aecd733c103820d181
Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.15.4 with commit 6d0efe7d35c75394f32ff9d0650a007642d23857
Issue introduced in 5.13 with commit 2db16c6ed72ce644d5639b3ed15e5817442db4ba and fixed in 6.16-rc1 with commit 7500bb9cf164edbb2c8117d57620227b1a4a8369
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-38225
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/ec26be7d6355a05552a0d0c1e73031f83aa4dc7f
https://git.kernel.org/stable/c/0ee9469f818a0b4de3c0e7aecd733c103820d181
https://git.kernel.org/stable/c/6d0efe7d35c75394f32ff9d0650a007642d23857
https://git.kernel.org/stable/c/7500bb9cf164edbb2c8117d57620227b1a4a8369
Powered by blists - more mailing lists