Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4137230AAD1 for ; Fri, 4 Jul 2025 13:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636641; cv=none; b=UW1Yjn/LsGcMVKX5GWWh0448lR+gL7adU5HgTPUE/NDYN2IQIe4T4ifrCpSB96f9w4ztBk6n36Ud1IZ0reJadwb5Ahc9ihCCAMdaDYZFqXr0TfZhhh9adQnyxpCv6azoBEigMiTWnnx5sBhNSTfwDeYzLzl3YnNa1Cop3KB0+U0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636641; c=relaxed/simple; bh=Vm80mNCB7IN/PQvgc30jpe147UycRKZaiC+LNd6KUuo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AmTvEYv5owp89Whpzj6I0fLCpF5MoYg2QFKTa2uCoid+JhTErXqCp26JR0jdokobsbIOFcmiT1qz5SB1DLW/mLuAMBSKEcTx2A33V1/uDo2QIz3tA+FJAp2eFeXqXQM1fGk/jQU2BilQz77p1936Zx+0abdklop6aub2PqqyJew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=chXKeV/3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="chXKeV/3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2F54C4CEEE; Fri, 4 Jul 2025 13:44:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636641; bh=Vm80mNCB7IN/PQvgc30jpe147UycRKZaiC+LNd6KUuo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=chXKeV/3kMGBzp3KOsLsNnGDl4iCnLBnpQDJARwKKFwB8f9hrEdhL7FwkvnfTPi2C /riIR+yYRQqFeBcL4KEpNLQNJXVDjDCQj8RyUTCEXjTuD6kkxXmb4KivFtAph3YmyE lk77pKWbvK4FxfTOnXMCD2EWNuiEHcHLv3xEJuU0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38225: media: imx-jpeg: Cleanup after an allocation error Date: Fri, 4 Jul 2025 15:37:54 +0200 Message-ID: <2025070427-CVE-2025-38225-75f6@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2508; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5SuBJ8vc03J91HEaBhX0ikHSBudoPcguv1HfSKDdIaA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN8VNXUJPXSqSTNmhrhz6tvCnur/oy4L3sz4UlPvrT Zgb+/53RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykPZ9hDrfFR82v9zzKX73q 4n+j+M1wvsF7P4b56bxxu8xj1LcY31i0/M/0i6+z5Q59BAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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