CVE-2026-46314
JSON

5.5medium

drm/v3d: Reject empty multisync extension to prevent infinite loop

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.16% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/v3d: Reject empty multisync extension to prevent infinite loop v3d_get_extensions() walks a userspace-provided singly-linked list of ioctl extensions without any bound on the chain length. A local user can craft a self-referential extension (ext->next == &ext) with zero in_sync_count and out_sync_count, which bypasses the existing duplicate- extension guard: if (se->in_sync_count || se->out_sync_count) return -EINVAL; The guard never fires because v3d_get_multisync_post_deps() returns immediately when count is zero, leaving both fields at zero on every iteration. The result is an infinite loop in kernel context, blocking the calling thread and pegging a CPU core indefinitely. Fix this by rejecting a multisync extension where both in_sync_count and out_sync_count are zero in v3d_get_multisync_submit_deps(). An empty multisync carries no synchronization information and serves no useful purpose, so returning -EINVAL for such an extension is the correct defense against this attack vector.

Affected

Product or packageVersionsReported by
Linux Linuxfrom e4165ae8304e5ea822fbe5909dd3be5445c058b7 before 309abbddeca0c12714721928a819ef45e5710998, from e4165ae8304e5ea822fbe5909dd3be5445c058b7 before 4fa42a249e8cd6ed17aea04e5695b6e9001f2433, from e4165ae8304e5ea822fbe5909dd3be5445c058b7 before 9c5164781cb388d219d8f49fa0f0b04cf86ad544, from e4165ae8304e5ea822fbe5909dd3be5445c058b7 before fb44d589bf3148e13452185a6e772a7efbf2d684, 5.16
Not affected: before 5.16, from 6.1.176 up to 6.1.*, from 6.18.33 up to 6.18.*, from 7.0.9 up to 7.0.*, from 7.1 up to *
CVE List
linux linux_kernelfrom 5.16 before 6.1.176, from 6.2 before 6.18.33, from 6.19 before 7.0.9NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm/v3d: Reject empty multisync extension to prevent infinite loop v3d_get_extensions() walks a userspace-provided singly-linked list of ioctl extensions without any bound on the chain length. A local user can craft a self-referential extension (ext->next == &ext) with zero in_sync_count and out_sync_count, which bypasses the existing duplicate- extension guard: if (se->in_sync_count || se->out_sync_count) return -EINVAL; The guard never fires because v3d_get_multisync_post_deps() returns immediately when count is zero, leaving both fields at zero on every iteration. The result is an infinite loop in kernel context, blocking the calling thread and pegging a CPU core indefinitely. Fix this by rejecting a multisync extension where both in_sync_count and out_sync_count are zero in v3d_get_multisync_submit_deps(). An empty multisync carries no synchronization information and serves no useful purpose, so returning -EINVAL for such an extension is the correct defense against this attack vector.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/v3d: Rechazar extensión multisync vacía para prevenir bucle infinito v3d_get_extensions() recorre una lista enlazada simple de extensiones ioctl proporcionada por el espacio de usuario sin ningún límite en la longitud de la cadena. Un usuario local puede crear una extensión autorreferencial (ext->next == &ext) con in_sync_count y out_sync_count en cero, lo que elude la protección existente contra extensiones duplicadas: if (se->in_sync_count || se->out_sync_count) return -EINVAL; La protección nunca se activa porque v3d_get_multisync_post_deps() devuelve inmediatamente cuando count es cero, dejando ambos campos en cero en cada iteración. El resultado es un bucle infinito en contexto de kernel, bloqueando el hilo llamador y acaparando un núcleo de CPU indefinidamente. Solucione esto rechazando una extensión multisync donde tanto in_sync_count como out_sync_count son cero en v3d_get_multisync_submit_deps(). Una multisync vacía no lleva información de sincronización y no tiene ningún propósito útil, por lo que devolver -EINVAL para dicha extensión es la defensa correcta contra este vector de ataque.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-46314 changed 2026-06-19CVE Terms of Use
NVDCVE-2026-46314 changed 2026-07-23Public domain