Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100316; b=3oVs1fBV7VcUxnpXtc2upAyfVP1KU+/RZMFD0+QCZtuAW7dOVs55T8+/6y9RwUsWPs3R 9adPWP84oDXgcmOZYIBQTAzYk3aU2AgvB9Ss3XHspZyoaOj1z5XTQNDTg3dOD1jpIjMOE XwEUMI1BTiLKfqWPSzZV6eFqbjf3YQ+aOKuUUsK5EK4rEzdhm7PXSZbn8kHrQIVxjfvLh d+jVn7ogOp4ZY+EhK38LINKC/zpDOaOvyEYT3Fae2AUuXwAtYkkYh9A95J3VI2wTv69hU ke5dP1JDkfNfY/uMgFaNjTIxiRs4ys5jhSWoO83362vUJdXt8FR9K2Cno923IsM96KQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100316; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=zmk76D7bHrvY6AgiKgbIalK8WV/iMP2c0zt4sX4rd4U=; b=HHo8yaFZ3Tjm0JlhBqaxr114xwcAo9QGdTJjysOq7vuvH+ekeZZaIP+0LEDBae/sECAm H/iF3gvQeHeoIwULRwmaP52AUE2zPixWEitZCcPhC2GNSdmDrEy85pdio3HEtrghCj497 fyyDM9IPhorYqZl9AjxNImPnPp0cmO/9eKUhbXp9kmXKwZ1BlNHlJPxsO3Wa7SXj97eth EAgqhheeD1UaYOr5LOzamiGEi0OpahleJcpQzkCAbRRwl9cSKptIEyK6Q88FXtbrMFwk8 2Y5a2Ny5pXodmDcoVyCNiP+BXURSjhTyi1CMXA3Yy3RxoX/LCnStN5TvmT0amfyhzZQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=bT950wyQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0435606A320 for ; Thu, 19 Nov 2026 14:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=bT950wyQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD07C1F000C4; Thu, 19 Nov 2026 14:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100315; bh=zmk76D7bHrvY6AgiKgbIalK8WV/iMP2c0zt4sX4rd4U=; h=From:To:Cc:Subject:Date:Reply-To; b=bT950wyQr9Jwz1GstUwH1AFs+f3VwiyqUd1Lo2I2/rY4REerh+KmmyXMQquoZp5Rp 17mXqPhKXX8KEYJSdxAdfjZJUkMz584lSJhSdAfVMIkSOk5StE4Id/AOAgSRcebG4i kv4enUm9W/Dh19qwF0F7TBw84Z37IvNafMF6biB0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99467: media: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers Date: Thu, 19 Nov 2026 15:26:05 +0100 Message-ID: <2026111910-CVE-2026-99467-4bd2@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2908; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6T+rAxqtCSSQZ2Dga3DknLrf5HUM0dBE5F6ezw8+4e8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2brYA7ZrLduSJLVq/zqhE0kx/4Oe+ATxZO7y/daYf y8rSndVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE9QXD/Oppdxillz7YrKCo 8Effiet3+WEvH4YFE/5dK7yTlilQK35/UV3WXr3Vi9y8AQ== 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: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers In vmalloc mode the frame-completion IRQ queues mcam_frame_work() on cam->s_bh_work, which memcpy()s from the dma_bufs[] that mcam_free_dma_bufs() frees with dma_free_coherent(). mccic_shutdown() frees those buffers without stopping the controller, so while streaming a late frame IRQ can re-arm the work after the buffers are gone, causing a use-after-free. Stop the controller in mccic_shutdown() when streaming is still active (gated on an open fd, which holds a runtime-PM reference, so the device is powered), cancel s_bh_work in mcam_free_dma_bufs(), and move INIT_WORK() into mccic_register() before the device can be published. The Linux kernel CVE team has assigned CVE-2026-99467 to this issue. Affected and fixed versions =========================== Issue introduced in 3.1 with commit 67a8dbbc4e04cd256987b189352472a59aff73be and fixed in 6.12.117 with commit 8445398f75ed573cd8eafaa01273c10990e05eae Issue introduced in 3.1 with commit 67a8dbbc4e04cd256987b189352472a59aff73be and fixed in 6.18.61 with commit 12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07 Issue introduced in 3.1 with commit 67a8dbbc4e04cd256987b189352472a59aff73be and fixed in 7.3.2 with commit 71de8e33596c9c8b3e20e51e18883e6c5f25f7a4 Issue introduced in 3.1 with commit 67a8dbbc4e04cd256987b189352472a59aff73be and fixed in 7.4-rc1 with commit 0f29f84317c1e35f6a9265277be33e60d3fc8c1c 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-2026-99467 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/marvell/mcam-core.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/8445398f75ed573cd8eafaa01273c10990e05eae https://git.kernel.org/stable/c/12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07 https://git.kernel.org/stable/c/71de8e33596c9c8b3e20e51e18883e6c5f25f7a4 https://git.kernel.org/stable/c/0f29f84317c1e35f6a9265277be33e60d3fc8c1c