Linux
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 panthor_fw_load_section_entry(), the data size to copy is calculated without validating it against the allocated section_size: 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 panthor_fw_init_section_mem() 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, panthor_kernel_bo_size(section->mem) - section->data.size); Reject section entries whose initial data is larger than the section size.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2718d91816eeed03c09c8abe872e45f59078768c, < 0e57165ca025a67d8dfd17efd2765fdd4925fdab
- >= 2718d91816eeed03c09c8abe872e45f59078768c, < 2a761b9be5863e1d26a584f0c2d1e114a684ed9a
- >= 2718d91816eeed03c09c8abe872e45f59078768c, < 7f4674d986c15c74327cb6ac6e2e2afecf061e04
- >= 2718d91816eeed03c09c8abe872e45f59078768c, < a3caaa06809248b996254be5b47e10804a3494e2
Fixed in 0e57165ca025a67d8dfd17efd2765fdd4925fdab, 2a761b9be5863e1d26a584f0c2d1e114a684ed9a, 7f4674d986c15c74327cb6ac6e2e2afecf061e04, a3caaa06809248b996254be5b47e10804a3494e2
- 6.10
Fixed in 0, 6.12.103, 6.18.44, 7.1.8, 7.2
Mitigation
Upgrade Linux to 0e57165ca025a67d8dfd17efd2765fdd4925fdab or 2a761b9be5863e1d26a584f0c2d1e114a684ed9a or 7f4674d986c15c74327cb6ac6e2e2afecf061e04 or a3caaa06809248b996254be5b47e10804a3494e2 or later.
Upgrade Linux to 0 or 6.12.103 or 6.18.44 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.