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 F0D432980A8 for ; Wed, 22 Apr 2026 13:55:41 +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=1776866142; cv=none; b=qngV8+zVoHgSajA/Y0fwzbuTl4vdiLYpwQW4tCliBe2TYBq02YapFeX21O3Vc8skH1jAUur2d2sN/zoiULNRYWoWjBSC1V87CpXSOCjjEBJRuWSJrJ/WiX5jCbxr6NfTyC/rPumzJ/LqtcERfxvdvFF0M0lLm0uuOtMA12HRjKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866142; c=relaxed/simple; bh=vR3SV6SQ+xKpX2UGLLNyzAqRX4b6S8eDKsDlgF4smIQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IHlVcFddnFVWWrCPLr4Wa2jzLXd3mnU56C2p3ZrmArW12GSKlTS/ww8dq/QeWSOrR9u+0WRekU9FSwWY9Ju4rlRhIMu//uKm3mLmgFtj3DBAtwmx8OWX76ejv1mpxnzoInc8yx4V5XSScWNnr7sOI9iPHkl8LMGdxp8sQ5GD4ww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dGu3ZNAp; 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="dGu3ZNAp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49406C19425; Wed, 22 Apr 2026 13:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866141; bh=vR3SV6SQ+xKpX2UGLLNyzAqRX4b6S8eDKsDlgF4smIQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=dGu3ZNApAVZVDQOOen6kvvJAsf0mGX1CO15nZAR1TFEzhdAiv3MpQkVOPQnEivy9W 4MIgc1GuMx3vTcUR1RBoSIvmqt2NDktsiH8xvD6MyCkNx3k0PPaOgngcE2b2cAHovS GdJx+tfLz5Lx+mzkb9lWOJLfI2dICmPpA+26jXaw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31473: media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex Date: Wed, 22 Apr 2026 15:54:19 +0200 Message-ID: <2026042255-CVE-2026-31473-fad0@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3727; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Hi4sRfSGBP4ZmAaHR2FdmTosauoiDG8mPrGR8ANuYVA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn22aW0o60kpvqPySM7t7QvT874P5km2uwRIPrnl2 tTvGLGrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZys4thfmj4zPrg/Pow4ZK5 J4P36Bd+4Aj6yrBgxoTPZjxTzZb8CtA8wFrWsv1wuuFlAA== 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: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex MEDIA_REQUEST_IOC_REINIT can run concurrently with VIDIOC_REQBUFS(0) queue teardown paths. This can race request object cleanup against vb2 queue cancellation and lead to use-after-free reports. We already serialize request queueing against STREAMON/OFF with req_queue_mutex. Extend that serialization to REQBUFS, and also take the same mutex in media_request_ioctl_reinit() so REINIT is in the same exclusion domain. This keeps request cleanup and queue cancellation from running in parallel for request-capable devices. The Linux kernel CVE team has assigned CVE-2026-31473 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 5.10.253 with commit 331242998a7ade5c2f65e14988901614629f3db5 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 5.15.203 with commit 2c685e99efb3b3bd2b78699fba6b1cf321975db0 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 6.1.168 with commit 585fd9a2063dacce8b2820f675ef23d5d17434c5 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 6.6.131 with commit 1a0d9083c24fbd5d22f7100f09d11e4d696a5f01 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 6.12.80 with commit d8549a453d5bdc0a71de66ad47a1106703406a56 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 6.18.21 with commit 72b9e81e0203f03c40f3adb457f55bd4c8eb112d Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 6.19.11 with commit cf2023e84f0888f96f4b65dc0804e7f3651969c1 Issue introduced in 4.20 with commit 6093d3002eabd7c2913d97f1d1f4ce34b072acf9 and fixed in 7.0 with commit bef4f4a88b73e4cc550d25f665b8a9952af22773 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-31473 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/mc/mc-request.c drivers/media/v4l2-core/v4l2-ioctl.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/331242998a7ade5c2f65e14988901614629f3db5 https://git.kernel.org/stable/c/2c685e99efb3b3bd2b78699fba6b1cf321975db0 https://git.kernel.org/stable/c/585fd9a2063dacce8b2820f675ef23d5d17434c5 https://git.kernel.org/stable/c/1a0d9083c24fbd5d22f7100f09d11e4d696a5f01 https://git.kernel.org/stable/c/d8549a453d5bdc0a71de66ad47a1106703406a56 https://git.kernel.org/stable/c/72b9e81e0203f03c40f3adb457f55bd4c8eb112d https://git.kernel.org/stable/c/cf2023e84f0888f96f4b65dc0804e7f3651969c1 https://git.kernel.org/stable/c/bef4f4a88b73e4cc550d25f665b8a9952af22773