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 84D7B2586EB for ; Tue, 20 May 2025 16:47:57 +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=1747759677; cv=none; b=tp43N9JnslyI4Hg8c/4G0zLHmvT5LVcGp4jneYjYgAHBr9n27h8LFN/7Gh0PnVK/kPbbKjJ3OpYYqIDnvbnVnH7+oKmwvos8lw88LZY0zMiBwmdSsgfoR7WaPqJF5OAKRHy9Bw0NAHVrAeOgpRb+bUP0dHqU3Wb84W3hxWJGeXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747759677; c=relaxed/simple; bh=j3d0bUFphswhDVmGqbGr19bXYvUb00X7ZvtM7ErxMWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BgO9A7ojKdnf+bSbSFl+vqrN7lZf4SFP/pUR5Q1oWoF1M5EhI0Pur8aZtovADLsXTU1eCPL8kYZR4/ICxgeW/N6rHvQmBtKhe+xQwu5yYD1wqG9o24b19dKR2N5bmD9ZoAAEKYXg69NyguOOKNbBztrPSLrDcG/TXOay3p/wNMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hiqo4RKG; 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="hiqo4RKG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D090C4CEE9; Tue, 20 May 2025 16:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747759677; bh=j3d0bUFphswhDVmGqbGr19bXYvUb00X7ZvtM7ErxMWs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hiqo4RKGj3EZVC7Rk9drLVYbK6TDx+yJMbChZk/DSrFjpkcwyVFoclQyRcAnf0T9v SCfxMMTpvhrmfOHWa5cECeGLVpv5AZUfi+rzwsX7Ghl6v8skLpbbGUyYQ4/wN5T6xs g+4oSgRnoOUfU4eos7+p3KrgFAWum73ORaxcrTRc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37971: staging: bcm2835-camera: Initialise dev in v4l2_dev Date: Tue, 20 May 2025 18:45:50 +0200 Message-ID: <2025052045-CVE-2025-37971-87dd@gregkh> X-Mailer: git-send-email 2.49.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=2458; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JACrXp7RviqL7F4DtOWEYk3hvfd4/bLmi1MdK1EdbmQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6G3c+/qqnN5tv/eKbh0UU3576wXuA921/thNn0Va/N p3V32fwdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEJFwY5mkKb23aIZM1f+Yh gw7VmG1hsz6c/8+w4JTYoyApvYd3VrGYqT63vvP8x/mKewA= 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: staging: bcm2835-camera: Initialise dev in v4l2_dev Commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to vchiq_state") changed mmal_init to pass dev->v4l2_dev.dev to vchiq_mmal_init, however nothing iniitialised dev->v4l2_dev, so we got a NULL pointer dereference. Set dev->v4l2_dev.dev during bcm2835_mmal_probe. The device pointer could be passed into v4l2_device_register to set it, however that also has other effects that would need additional changes. The Linux kernel CVE team has assigned CVE-2025-37971 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 42a2f6664e18874302623f31edef545ef41e1d14 and fixed in 6.12.29 with commit 06753f49336ab161ea0e249a0720125b81b7b31b Issue introduced in 6.10 with commit 42a2f6664e18874302623f31edef545ef41e1d14 and fixed in 6.14.7 with commit b70bdd4923e8b8edbacde2af83ca337bb7005261 Issue introduced in 6.10 with commit 42a2f6664e18874302623f31edef545ef41e1d14 and fixed in 6.15-rc6 with commit 98698ca0e58734bc5c1c24e5bbc7429f981cd186 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-37971 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/staging/vc04_services/bcm2835-camera/bcm2835-camera.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/06753f49336ab161ea0e249a0720125b81b7b31b https://git.kernel.org/stable/c/b70bdd4923e8b8edbacde2af83ca337bb7005261 https://git.kernel.org/stable/c/98698ca0e58734bc5c1c24e5bbc7429f981cd186