7.8high
drm/exynos: vidi: use ctx->lock to protect struct vidi_context member variables related to memory alloc/free
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use ctx->lock to protect struct vidi_context member variables related to memory alloc/free Exynos Virtual Display driver performs memory alloc/free operations without lock protection, which easily causes concurrency problem. For example, use-after-free can occur in race scenario like this: ``` CPU0 CPU1 CPU2 ---- ---- ---- vidi_connection_ioctl() if (vidi->connection) // true drm_edid = drm_edid_alloc(); // alloc drm_edid ... ctx->raw_edid = drm_edid; ... drm_mode_getconnector() drm_helper_probe_single_connector_modes() vidi_get_modes() if (ctx->raw_edid) // true drm_edid_dup(ctx->raw_edid); if (!drm_edid) // false ... vidi_connection_ioctl() if (vidi->connection) // false drm_edid_free(ctx->raw_edid); // free drm_edid ... drm_edid_alloc(drm_edid->edid) kmemdup(edid); // UAF!! ... ``` To prevent these vulns, at least in vidi_context, member variables related to memory alloc/free should be protected with ctx->lock.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 56966a4cfa925ec24edb68ab652a740a7abe2c4d, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 9e1ef9396a1899925911b1729cb65665420268df, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 92dd1f38d7db75374dcdaf54f1d79d67bffd54e5, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 1b24d3e8792bcc050c70e8e0dea6b49c4fc63b13, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before abfdf449fb3d7b42e85a1ad1c8694b768b1582f4, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 60b75407c172e1f341a8a5097c5cbc97dbbdd893, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 0cd2c155740dbd00868ac5a8ae5d14cd6b9ed385, from d3b62dbfc7b9bb013926f56db79b60f6c18c392f before 52b330799e2d6f825ae2bb74662ec1b10eb954bb and 1 more Not affected: before 3.6, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.77 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.6 before 6.12.77, from 6.13 before 6.18.11, from 6.19 before 6.19.1 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use ctx->lock to protect struct vidi_context member variables related to memory alloc/free Exynos Virtual Display driver performs memory alloc/free operations without lock protection, which easily causes concurrency problem. For example, use-after-free can occur in race scenario like this: ``` CPU0 CPU1 CPU2 ---- ---- ---- vidi_connection_ioctl() if (vidi->connection) // true drm_edid = drm_edid_alloc(); // alloc drm_edid ... ctx->raw_edid = drm_edid; ... drm_mode_getconnector() drm_helper_probe_single_connector_modes() vidi_get_modes() if (ctx->raw_edid) // true drm_edid_dup(ctx->raw_edid); if (!drm_edid) // false ... vidi_connection_ioctl() if (vidi->connection) // false drm_edid_free(ctx->raw_edid); // free drm_edid ... drm_edid_alloc(drm_edid->edid) kmemdup(edid); // UAF!! ... ``` To prevent these vulns, at least in vidi_context, member variables related to memory alloc/free should be protected with ctx->lock.
NVD (es)
Se ha resuelto la siguiente vulnerabilidad en el kernel de Linux: drm/exynos: vidi: usar ctx->lock para proteger las variables miembro de la estructura vidi_context relacionadas con la asignación/liberación de memoria El controlador de pantalla virtual de Exynos realiza operaciones de asignación/liberación de memoria sin protección de bloqueo, lo que fácilmente causa un problema de concurrencia. Por ejemplo, el uso después de liberación puede ocurrir en un escenario de carrera como este: ``` CPU0 CPU1 CPU2 ---- ---- ---- vidi_connection_ioctl() if (vidi->connection) // true drm_edid = drm_edid_alloc(); // alloc drm_edid ... ctx->raw_edid = drm_edid; ... drm_mode_getconnector() drm_helper_probe_single_connector_modes() vidi_get_modes() if (ctx->raw_edid) // true drm_edid_dup(ctx->raw_edid); if (!drm_edid) // false ... vidi_connection_ioctl() if (vidi->connection) // false drm_edid_free(ctx->raw_edid); // free drm_edid ... drm_edid_alloc(drm_edid->edid) kmemdup(edid); // UAF!! ... ``` Para prevenir estas vulnerabilidades, al menos en vidi_context, las variables miembro relacionadas con la asignación/liberación de memoria deberían ser protegidas con ctx->lock.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23227 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-23227 changed 2026-06-17 | Public domain |