drm/amdgpu/vcn4: avoid rereading IB param length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
d19dd814b5b7dd9bfc288308a69cb29528f041fd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/vcn4: avoid rereading IB param length
Reuse the parameter length returned by vcn_v4_0_enc_find_ib_param() instead of rereading it from the IB.
This avoids a potential TOCTOU issue if the IB contents change between reads.
(cherry picked from commit dbb02b4755f8c1f3773263f2d779872c1c0c073a)
From the CVE record · Linux
The Linux kernel's amdgpu VCN4 code rereads an instruction-buffer parameter length, creating a potential time-of-check/time-of-use issue if the buffer changes between reads. An attacker could potentially cause the code to use a changed length; the input does not specify the resulting impact or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the amdgpu VCN4 code should check their kernel versions; affected versions are not specified.