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 ABFBB1DDCE for ; Sun, 19 May 2024 10:12:02 +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=1716113522; cv=none; b=Y360vax6e6n/yfXDFL7+wQ62tgfj5tHH2SIvqw16Mh0v3Hn+62KDXGVoiKKpDfbRZyLQM4i01BvO+pYvq3FkBhiBni5vwoYjgmDMWk2DPJ73kPUddK7RPN/Ndry6hrH57K19KgyiCbWUyLTFfBkAFvnHsJqOSpzyObhXsm8g+XE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113522; c=relaxed/simple; bh=ufzcpHeF8k1dhg09nnyLleoOzbXm95Kr7DdI2r4VpPk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VWIgVU2uOgrnl6tCDJnWxHHA4I3d9RQQf7rOmDGGTXj7+Tf1ZHOq7PXqBrz8yAQ1s/5LKlp1ABs9TRGSs2dxPW54DGvBTxfqW6TWdpAqmOASF7F+9Xbo/Dy7Sg4oBQMp8q5hvcQOjRJSni+RWI2A/kPMYuEAvTPpC6mBMISuI1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qPw3Og1w; 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="qPw3Og1w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 296F3C32781; Sun, 19 May 2024 10:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113522; bh=ufzcpHeF8k1dhg09nnyLleoOzbXm95Kr7DdI2r4VpPk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qPw3Og1wzyZzFanDIFi/VDT8GHBhTqzh3KU2kqenDMz+B9VZX4OSdyOjpp5ezwAYI zXjmy/D6v+JdvtAboKwnnqHiYZ2gPeswSilx9EDHmisFGAUiybBN1OHPv5gQHEZRcB X4F+SbEM4moLbH4tRdHztFMpOERtlhQP8T9SVtKM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35919: media: mediatek: vcodec: adding lock to protect encoder context list Date: Sun, 19 May 2024 12:11:13 +0200 Message-ID: <2024051913-CVE-2024-35919-b10c@gregkh> X-Mailer: git-send-email 2.45.1 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=2267; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ufzcpHeF8k1dhg09nnyLleoOzbXm95Kr7DdI2r4VpPk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeFxxNnSrnfTUtX/XiSffLqz+3HO6xNjkcvPu/T/1un qY6k9DLHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRhjcM87Mzp68OO/ixlTf5 qkPi1yxnqZOb2hnmCk44/8mhJHdm5OnKj+/mqoYWuU36AgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: adding lock to protect encoder context list Add a lock for the ctx_list, to avoid accessing a NULL pointer within the 'vpu_enc_ipi_handler' function when the ctx_list has been deleted due to an unexpected behavior on the SCP IP block. The Linux kernel CVE team has assigned CVE-2024-35919 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 1972e32431ed and fixed in 6.6.27 with commit 41671f0c0182 Issue introduced in 6.6 with commit 1972e32431ed and fixed in 6.8.6 with commit 51c84a8aac6e Issue introduced in 6.6 with commit 1972e32431ed and fixed in 6.9 with commit afaaf3a0f647 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-2024-35919 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/common/mtk_vcodec_fw_vpu.c drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.c drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.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/41671f0c0182b2bae74ca7e3b0f155559e3e2fc5 https://git.kernel.org/stable/c/51c84a8aac6e3b59af2b0e92ba63cabe2e641a2d https://git.kernel.org/stable/c/afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad