drm/panthor: harden firmware build-info bounds checks
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5516f1acfd07564361cf306cc90a8e513df0f096, Kernel 6ae19dce3e8c13ae73590b3f4311abe9f96bbae8, Kernel 8321b093fa6c297b80586460ce6914d9655df170 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: drm/panthor: harden firmware build-info bounds checks panthor_fw_read_build_info() checks whether the metadata range fits in the firmware image with hdr.meta_start + hdr.meta_size. Both fields are u32, so the addition can wrap and let an out-of-bounds range pass validation. The function also reads the "git_sha: " prefix without first checking that the metadata is long enough, and meta_size == 0 can underflow the NULL terminator index. Use subtraction-based bounds checking and reject metadata that is too short to contain the expected prefix and trailing NULL byte.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.10, >=2718d91816eeed03c09c8abe872e45f59078768c <5516f1acfd07564361cf306cc90a8e513df0f096, >=2718d91816eeed03c09c8abe872e45f59078768c <6ae19dce3e8c13ae73590b3f4311abe9f96bbae8, >=2718d91816eeed03c09c8abe872e45f59078768c <8321b093fa6c297b80586460ce6914d9655df170 | 5516f1acfd07564361cf306cc90a8e513df0f096, 6ae19dce3e8c13ae73590b3f4311abe9f96bbae8, 8321b093fa6c297b80586460ce6914d9655df170 |
| linux-kernel: Kernel | >=6.10.0 <6.18.51, >=6.19.0 <7.2.5 | 6.18.51, 7.2.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket