Linux kernel integer overflow in i915 DMC firmware parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eb805623d8b161342ed9c9caf366f0a295041a6d · < dfcfe2874e7c16e8460dc86ac1eeb54ea0e7f8aa| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/i915/dmc: Harden DMC firmware payload parsing
Validate the conversion of the DMC firmware size from dwords to bytes using check_mul_overflow() before calculating the firmware payload size.
Reject zero-length payloads and zero MMIO counts in the DMC firmware header so malformed firmware is caught early. Also set dmc_fw_size only after the payload allocation succeeds.
(cherry picked from commit efde6601a1f1daedfe3dcc2816c934ddb44e3eef)
From the CVE record · Linux
The Linux kernel’s i915 DMC parser did not check for overflow when converting firmware size from dwords to bytes, and it accepted zero-length payloads and zero MMIO counts. Malformed DMC firmware can trigger these parsing errors; the input does not establish how an attacker could supply it or whether authentication or user interaction is required.
Engineers running Linux kernels with the i915 DMC firmware parser should check their versions; affected versions were not specified.