CVE-2026-43310: media: verisilicon: Avoid G2 bus error while decoding H.264 and HEVC
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: verisilicon: Avoid G2 bus error while decoding H.264 and HEVC
For the i.MX8MQ platform, there is a hardware limitation: the g1 VPU and g2 VPU cannot decode simultaneously; otherwise, it will cause below bus error and produce corrupted pictures, even potentially lead to system hang.
[ 110.527986] hantro-vpu 38310000.video-codec: frame decode timed out. [ 110.583517] hantro-vpu 38310000.video-codec: bus error detected.
Therefore, it is necessary to ensure that g1 and g2 operate alternately. This allows for successful multi-instance decoding of H.264 and HEVC.
To achieve this, g1 and g2 share the same v4l2_m2m_dev, and then the v4l2_m2m_dev can handle the scheduling.
The Linux kernel CVE team has assigned CVE-2026-43310 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 6.19.6 with commit 286d629d10640bc22f3bf46aa4f356eb7975e862 Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 7.0 with commit e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765
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-43310
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/verisilicon/hantro.h drivers/media/platform/verisilicon/hantro_drv.c drivers/media/platform/verisilicon/imx8m_vpu_hw.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/286d629d10640bc22f3bf46aa4f356eb7975e862 https://git.kernel.org/stable/c/e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765