drm/panthor: skip zero-sized firmware sections
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: skip zero-sized firmware sections
panthor_fw_load_section_entry() skips BO creation when the firmware section VA range is empty. If such a section is added to the firmware section list, section->mem is left as NULL.
Later reload and unplug paths iterate over all firmware sections and dereference section->mem, which can lead to a NULL pointer dereference.
Zero-sized firmware sections are valid, so accept them as no-op entries but skip adding them to the section list.
From the CVE record · Linux
The Linux kernel's drm/panthor driver can add a valid zero-sized firmware section to a list without allocating memory for it. Later reload or unplug processing can dereference that missing memory and cause a NULL pointer dereference. The input does not specify whether an attacker can trigger this or what access would be required.
Engineers running Linux kernels with the drm/panthor driver should check their kernel versions; affected versions are not specified.