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 98BBE1D7999 for ; Mon, 20 Oct 2025 15:29:08 +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=1760974148; cv=none; b=K+PDk+NacOvMgM3470VGdbMr3VUvipzYQRCo/WBK3K/Pq0rflzSEFBCBUNVUQ6wnSgev9YRAgjSvh5joVbmBfDueTDZC8gFIK7tA1ENYjl2fAnOI/0P8iYqLCc9T3jZLxUil0TVBcblWf4EUH2qbkNu+wVBykPmHnE5/7MAgwKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974148; c=relaxed/simple; bh=lI+MwtBuAD0zUPvtjt8CXA6GRTJVPX6P7iHD9vId7+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HV3Mh5tS/NzCCiv97ZX+Mgl8UE6o0ZvuoJBYEiOG05vEpQ32TyjWmQ5+E/P8Ax/bjUaXTNo2N/S74ZSUlNd29JxUYE+EgUiQq9TW015MKl+r45n7yDdu/vPRKPV+7yqoqX+MHGth9EP/eGS/P51yvUEF1bCxabBAUwiyHgKR8lk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tk9tS2Nf; 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="Tk9tS2Nf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C005CC4CEFE; Mon, 20 Oct 2025 15:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760974148; bh=lI+MwtBuAD0zUPvtjt8CXA6GRTJVPX6P7iHD9vId7+k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tk9tS2NfJVh+suxmJzetV8P2cT7/dkhvRlGjp1XT0hHYuyP5XepQpfetvV7r5+Anr xY3Pa70Jp5Ew6MLS/ZyxOT64ShGY3hn9bd42IqkOsq6X/kjcrfd6D7gVmYQAaKLMoq y1lqSCbQjaNqGGdAfmEwxmS/tvRcD+vvkCVYpHfQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40015: media: stm32-csi: Fix dereference before NULL check Date: Mon, 20 Oct 2025 17:29:06 +0200 Message-ID: <2025102004-CVE-2025-40015-2fe0@gregkh> X-Mailer: git-send-email 2.51.1.dirty 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=2307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hJJdUX84iFsa0JVKp74BBZMHYMkXDoie4oJ/M33/N2U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnfQh12F5zXYpWcnepkPl9xscqh/FcN7zWNK4S2VSWvP jYtlVO8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy+C/D/KDElXF7PqY0uKXu 3mRsuqZlxyKuBQwLLmnbsU69qJy587Au69t9iYcbFotyAAA= 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: stm32-csi: Fix dereference before NULL check In 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while assigning a value to the 'src_pad'. However the same value is being checked against NULL at a later point of time indicating that there are chances that the value can be NULL. Move the dereference after the NULL check. The Linux kernel CVE team has assigned CVE-2025-40015 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit e7bad98c205d17c745de9d83ebf73e53cbf99d48 and fixed in 6.16.11 with commit 1f053d82e59c785b2b939cbed12f13657f84b296 Issue introduced in 6.15 with commit e7bad98c205d17c745de9d83ebf73e53cbf99d48 and fixed in 6.17.1 with commit 4eeafff163e80d576c5efc1360ae310c0ceedd02 Issue introduced in 6.15 with commit e7bad98c205d17c745de9d83ebf73e53cbf99d48 and fixed in 6.18-rc1 with commit 80eaf32672871bd2623ce6ba13ffc1f018756580 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-40015 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/st/stm32/stm32-csi.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/1f053d82e59c785b2b939cbed12f13657f84b296 https://git.kernel.org/stable/c/4eeafff163e80d576c5efc1360ae310c0ceedd02 https://git.kernel.org/stable/c/80eaf32672871bd2623ce6ba13ffc1f018756580