CVE-2026-74452: drm/panthor: reject firmware sections with oversized data
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: reject firmware sections with oversized data
In panthorfwloadsectionentry(), the data size to copy is calculated without validating it against the allocated sectionsize:
section->data.size = hdr.data.end - hdr.data.start;
If a crafted firmware sets data.size larger than the allocated memory, this could cause a heap buffer overflow in panthorfwinitsectionmem()
memcpy(section->mem->kmap, section->data.buf, section->data.size);
Additionally, if the section->data.size exceeds the BO size, could this memset underflow the size calculation, leading to a massive out-of-bounds zeroing of kernel memory?
memset(section->mem->kmap + section->data.size, 0, panthorkernelbosize(section->mem) - section->data.size);
Reject section entries whose initial data is larger than the section size.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Reject firmware section entries where the initial data is larger than the allocated section size (drm/panthor: reject firmware sections with oversized data) to prevent out-of-bounds memcpy/memset during panthor_fw_load_section_entry() and panthor_fw_init_section_mem().
Event History
Frequently Asked Questions
What is the severity of CVE-2026-74452?
CVE-2026-74452 has a risk rating of 62, which indicates a moderate level of severity.
How do I fix CVE-2026-74452?
To fix CVE-2026-74452, update the Linux kernel to the latest version where this vulnerability has been patched.
What type of vulnerability is CVE-2026-74452?
CVE-2026-74452 is classified as a buffer overflow vulnerability.
Which software is affected by CVE-2026-74452?
CVE-2026-74452 affects the Linux kernel specifically in the drm/panthor module.
What is the impact of CVE-2026-74452?
The impact of CVE-2026-74452 may lead to potential denial of service or arbitrary code execution if exploited.