From mboxrd@z Thu Jan 1 00:00:00 1970 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 0721D3043AC for ; Thu, 18 Sep 2025 13:35:46 +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=1758202546; cv=none; b=FxjCeCR6F9xo+DCrMccUWnoHwa6zvuMS62YptZH8n/sPercG/ClCBrsF+e03dPCVXLByrA0ts7i5uEUsUiznj7Z3zTYO8c2nsVqmlGk+R/cBZfsGgoqnjUpnDVFGOd4xDHSbmzsVkwizU/j2Ojiyc4USDaHEaXdZoPC6xII+aNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202546; c=relaxed/simple; bh=5ptbxKgqUD+r4Smk6jXW0+QA2yelxIBsgc90HEl3Kuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qEPRdErl4lTiHlPBPHhArqAe8nF2UuQNNdeGQT6BFxoO5DcV37qzhWqQ/qTgpUksw3kLjyEe3hu/jixrEHPjty2YUHI7zufB1x90EZWVwJedASHLC7mHPP7BfF1s8fuCAPFGm/l8YEt/jw9PoVkio9CdlLNiDCzZld5RdSR/aPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xHRGX247; 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="xHRGX247" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76A1CC4CEE7; Thu, 18 Sep 2025 13:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202545; bh=5ptbxKgqUD+r4Smk6jXW0+QA2yelxIBsgc90HEl3Kuc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xHRGX247BR43AgbuSkJLmMI7rH4OgnMyaKe7gZRGMu4d+t7gHJokqxKAqm+dma52T JSJ+HlML+ZHLi476xbifWOa67kgBaXY7nBVPVIkjKsk6skzymkRSBBqboXb47vHFJV zm+XAPAaCh6lTjuU7bK94Y0YAdziNC5ctQ8wLKqA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50383: media: mediatek: vcodec: Can't set dst buffer to done when lat decode error Date: Thu, 18 Sep 2025 15:33:57 +0200 Message-ID: <2025091852-CVE-2022-50383-e1c7@gregkh> X-Mailer: git-send-email 2.51.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=2047; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9YHieVLOyeEVwd08JWeCtl65rNe4o7t1oYgPbHdLUe4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuBzmZx9TVOyTZZ/d575NOe2Y9mG29e+lNhg13P6yc K1D9K/wjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIBwfDPHOdVdw2uydP6c/x LGJo3/f2ldDMNQzzszp8vXwMr1/de/7dydwe5oSZ1yNkAA== 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: mediatek: vcodec: Can't set dst buffer to done when lat decode error Core thread will call v4l2_m2m_buf_done to set dst buffer done for lat architecture. If lat call v4l2_m2m_buf_done_and_job_finish to free dst buffer when lat decode error, core thread will access kernel NULL pointer dereference, then crash. The Linux kernel CVE team has assigned CVE-2022-50383 to this issue. Affected and fixed versions =========================== Fixed in 6.0.16 with commit eeb090420f3477eb5011586709409fc655c2b16c Fixed in 6.1.2 with commit 66d26ed30056e7d2da3e9c14125ffe6049a4f907 Fixed in 6.2 with commit 3568ecd3f3a6d133ab7feffbba34955c8c79bbc4 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-2022-50383 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/mediatek/vcodec/mtk_vcodec_dec_stateless.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/eeb090420f3477eb5011586709409fc655c2b16c https://git.kernel.org/stable/c/66d26ed30056e7d2da3e9c14125ffe6049a4f907 https://git.kernel.org/stable/c/3568ecd3f3a6d133ab7feffbba34955c8c79bbc4