CVE-2025-68735
JSON

7.8high

drm/panthor: Prevent potential UAF in group creation

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Prevent potential UAF in group creation This commit prevents the possibility of a use after free issue in the GROUP_CREATE ioctl function, which arose as pointer to the group is accessed in that ioctl function after storing it in the Xarray. A malicious userspace can second guess the handle of a group and try to call GROUP_DESTROY ioctl from another thread around the same time as GROUP_CREATE ioctl. To prevent the use after free exploit, this commit uses a mark on an entry of group pool Xarray which is added just before returning from the GROUP_CREATE ioctl function. The mark is checked for all ioctls that specify the group handle and so userspace won't be abe to delete a group that isn't marked yet. v2: Add R-bs and fixes tags

Affected

Product or packageVersionsReported by
Linux Linuxfrom de85488138247d034eb3241840424a54d660926b before c6bbec068a9accd6f1df05f3df9a5254c99292ee, from de85488138247d034eb3241840424a54d660926b before deb8b2491f6b9882ae02d7dc2651c7bf4f3b7e05, from de85488138247d034eb3241840424a54d660926b before c646ebff3fa571e7ea974235286fb9ed3edc260c, from de85488138247d034eb3241840424a54d660926b before eec7e23d848d2194dd8791fcd0f4a54d4378eecd, 6.10
Not affected: before 6.10, from 6.12.114 up to 6.12.*, from 6.17.13 up to 6.17.*, from 6.18.2 up to 6.18.*, from 6.19 up to *
CVE List

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Prevent potential UAF in group creation This commit prevents the possibility of a use after free issue in the GROUP_CREATE ioctl function, which arose as pointer to the group is accessed in that ioctl function after storing it in the Xarray. A malicious userspace can second guess the handle of a group and try to call GROUP_DESTROY ioctl from another thread around the same time as GROUP_CREATE ioctl. To prevent the use after free exploit, this commit uses a mark on an entry of group pool Xarray which is added just before returning from the GROUP_CREATE ioctl function. The mark is checked for all ioctls that specify the group handle and so userspace won't be abe to delete a group that isn't marked yet. v2: Add R-bs and fixes tags

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/panthor: Prevenir posible UAF en la creación de grupos Este commit previene la posibilidad de un problema de uso después de liberación en la función ioctl GROUP_CREATE, que surgió porque se accede al puntero al grupo en esa función ioctl después de almacenarlo en el Xarray. Un espacio de usuario malicioso puede adivinar el identificador de un grupo e intentar llamar a la ioctl GROUP_DESTROY desde otro hilo aproximadamente al mismo tiempo que la ioctl GROUP_CREATE. Para prevenir el exploit de uso después de liberación, este commit utiliza una marca en una entrada del Xarray del pool de grupos que se añade justo antes de regresar de la función ioctl GROUP_CREATE. La marca se verifica para todas las ioctls que especifican el identificador del grupo y así el espacio de usuario no podrá eliminar un grupo que aún no está marcado. v2: Añadir las etiquetas R-bs y fixes

References

Sources

SourceRecordLicence
CVE ListCVE-2025-68735 changed 2026-10-21CVE Terms of Use
NVDCVE-2025-68735 changed 2026-10-21Public domain