Linux kernel out-of-bounds access in Panthor queue creation
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: validate userspace queue count against initialized firmware slot count
In panthor_drv.c:panthor_ioctl_group_create(), the queue count is validated against the hardcoded maximum:
if (!args->queues.count || args->queues.count > MAX_CS_PER_CSG) return -EINVAL;
However, if the firmware reports fewer slots than MAX_CS_PER_CSG, panthor_fw_init_ifaces() will only initialize that smaller number of stream interfaces.
If unprivileged userspace requests more queues than the firmware reported (but no more than MAX_CS_PER_CSG), cs_slot_prog_locked() fetches an uninitialized stream interface and may crash when dereferencing cs_iface->input->ringbuf_base.
From the CVE record · Linux
The Linux kernel's panthor driver validates a userspace queue count against a hardcoded maximum rather than the number of firmware-initialized slots. A local unprivileged user can request more queues than the firmware reported, within that maximum, potentially crashing the kernel when the driver dereferences an uninitialized stream interface.
Anyone running a Linux kernel with the panthor driver should check whether their kernel includes the fix; affected versions were not provided.