media: verisilicon: Avoid G2 bus error while decoding H.264 and HEVC
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c · < e0203ddf9af7c8e170e1e99ce83b4dc07f0cd765| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
On i.MX8MQ, the Linux kernel’s Verisilicon VPU driver can run the g1 and g2 decoders simultaneously despite a hardware limitation. Concurrent H.264 and HEVC decoding can cause a bus error, corrupted pictures, and potentially a system hang. The input does not establish an attacker access or authentication requirement.
Engineers running Linux on i.MX8MQ systems that use the Verisilicon VPU driver should check whether their kernel includes the fix; affected versions are not specified.