Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 96FD33AFB19 for ; Thu, 28 May 2026 09:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961406; cv=none; b=dout1OHzWjMLLrE80bWCq7w6a+dRCawYmmcElndPiA8AuN5XYF8ZRvQkxuxrBmGdYgn4rELK61kB2/BQ+T8Pr5RNHXnuWZLbf1EwsfTsDC29hIcDNSBNmURGUFWsZacAMGU7q6ZnC+i2lEkbkKzvSX4XfF65EnR/b8b06anFZyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961406; c=relaxed/simple; bh=P7Kj7JSy6kkM+/PAmiW3SOEK1a7hia3iqrejny4VxSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C4/aG/k93Ni1yUDewT69eOWMnBgnC2Woux7eMXiG8eRtjMSLYBVNfADXPaEnNZhy7xZb54aAsT/KgKiVqw+3fNvPntb7TtoxaA1eDAfvG8LaHu4mO8FBzzIhsVPvGiMfzwAMN6ED1uZzjl6o8KpTIeoejOPqV9mHz2V+ZBQAL34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JlFPVHyI; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JlFPVHyI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5E401F000E9; Thu, 28 May 2026 09:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961405; bh=N7UfZG6XI0daZjpdQcvahrWmVSEKTgylcFCCxe3HL8k=; h=From:To:Cc:Subject:Date:Reply-To; b=JlFPVHyIOxhjRcwY8BMwoSxlkgCsZswozq0QE4tmgccxhAaNoI5Oszo6B+85ggMKC tdlX+7RrPfBHLhwFrY23TIIkVt8m77W4imBes3jXO7kD5FI1/iiWHiN1LvLdbwFwB3 2XYOXzw0PIXuWjMELm19NXVk3ZvTbr19LoUsAaIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46210: media: iris: fix use-after-free of fmt_src during MBPF check Date: Thu, 28 May 2026 11:40:45 +0200 Message-ID: <2026052834-CVE-2026-46210-9569@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=3244; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fx4crDhcH9+KWaV0ITDgSAHFogLOfJd/yuRWfHcaPyw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSvJOUOvNr7ZLOrZo7i3ku53Gp6wvaatbnPdh/ee6nx z+bn3dJdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEUjUZFiwVubV23mSOo7my zx2NjBj6RDU0khjmB074qv7imUki65QG1fDAK+6P+z4wAQA= 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: iris: fix use-after-free of fmt_src during MBPF check During concurrency testing, multiple instances can run in parallel, and each instance uses its own inst->lock while the core->lock protects the list of active instances. The race happens because these locks cover different scopes, inst->lock protects only the internals of a single instance, while the Macro Blocks Per Frame (MBPF) checker walks the core list under core->lock and reads fields like fmt_src->width and fmt_src->height. At the same time, iris_close() may free fmt_src and fmt_dst under inst->lock while the instance is still present in the core list. This allows a situation where the MBPF checker, still iterating through the core list, reaches an instance whose fmt_src was already freed by another thread and ends up dereferencing a dangling pointer, resulting in a use-after-free. This happens because the MBPF checker assumes that any instance in the core list is fully valid, but the freeing of fmt_src and fmt_dst without removing the instance from the core list is not correct. The correct ordering is to defer freeing fmt_src and fmt_dst until after the instance has been removed from the core list and all teardown under the core lock has completed, ensuring that no dangling pointers are ever exposed during MBPF checks. The Linux kernel CVE team has assigned CVE-2026-46210 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 5ad964ad5656668399f00c76707f0d063b64a4b1 and fixed in 7.0.9 with commit 494ffd1712a588e590e6b1e9f876a8c8b24a9180 Issue introduced in 6.18 with commit 5ad964ad5656668399f00c76707f0d063b64a4b1 and fixed in 7.1-rc3 with commit 3d9593ad1a58c5acc3e5fa2a48222bb7632e6812 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-46210 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/qcom/iris/iris_vdec.c drivers/media/platform/qcom/iris/iris_vdec.h drivers/media/platform/qcom/iris/iris_venc.c drivers/media/platform/qcom/iris/iris_venc.h drivers/media/platform/qcom/iris/iris_vidc.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/494ffd1712a588e590e6b1e9f876a8c8b24a9180 https://git.kernel.org/stable/c/3d9593ad1a58c5acc3e5fa2a48222bb7632e6812