drm/panthor: fix firmware control interface bounds checks
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.110, 6.18.51, 7.2.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/panthor: fix firmware control interface bounds checks panthor_init_cs_iface() and panthor_init_csg_iface() validate firmware control interface offsets with 32-bit arithmetic and the size of the host wrapper structures. The offsets are derived from firmware-provided strides, so the arithmetic can wrap before the bounds check, and the host wrapper size is not the size of the firmware control interface being mapped. Use 64-bit arithmetic for the computed offsets and validate against the actual firmware control interface structure sizes with subtraction-based bounds checks. Also validate that the shared section is large enough for the global control interface before using it.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 2718d91816eeed03c09c8abe872e45f59078768c · fixed in 33ae55809aee9b4dca1d00cdee35b527f2bf8626; From 2718d91816eeed03c09c8abe872e45f59078768c · fixed in 80c9528661c774f899281c9a72011208ff39929e; From 2718d91816eeed03c09c8abe872e45f59078768c · fixed in 3e5c7cddc0073eef6f9bb373189b11a969f1f6f6; From 2718d91816eeed03c09c8abe872e45f59078768c · fixed in 6a47f9fd2d970674ed9dedc52fc7ab76fd015785
- Linux Linux
6.10
- KernelLinux
From 6.10.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5