Linux
drm/exynos: vidi: use ctx->lock to protect struct vidi_context member variables related to memory alloc/free
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 56966a4cfa925ec24edb68ab652a740a7abe2c4d
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 9e1ef9396a1899925911b1729cb65665420268df
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 92dd1f38d7db75374dcdaf54f1d79d67bffd54e5
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 1b24d3e8792bcc050c70e8e0dea6b49c4fc63b13
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < abfdf449fb3d7b42e85a1ad1c8694b768b1582f4
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 60b75407c172e1f341a8a5097c5cbc97dbbdd893
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 0cd2c155740dbd00868ac5a8ae5d14cd6b9ed385
- >= d3b62dbfc7b9bb013926f56db79b60f6c18c392f, < 52b330799e2d6f825ae2bb74662ec1b10eb954bb
Fixed in 56966a4cfa925ec24edb68ab652a740a7abe2c4d, 9e1ef9396a1899925911b1729cb65665420268df, 92dd1f38d7db75374dcdaf54f1d79d67bffd54e5, 1b24d3e8792bcc050c70e8e0dea6b49c4fc63b13, abfdf449fb3d7b42e85a1ad1c8694b768b1582f4, 60b75407c172e1f341a8a5097c5cbc97dbbdd893, 0cd2c155740dbd00868ac5a8ae5d14cd6b9ed385, 52b330799e2d6f825ae2bb74662ec1b10eb954bb
- 3.6
Fixed in 0, 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.77, 6.18.11, 6.19.1, 7.0
Mitigation
Upgrade Linux to 56966a4cfa925ec24edb68ab652a740a7abe2c4d or 9e1ef9396a1899925911b1729cb65665420268df or 92dd1f38d7db75374dcdaf54f1d79d67bffd54e5 or 1b24d3e8792bcc050c70e8e0dea6b49c4fc63b13 or abfdf449fb3d7b42e85a1ad1c8694b768b1582f4 or 60b75407c172e1f341a8a5097c5cbc97dbbdd893 or 0cd2c155740dbd00868ac5a8ae5d14cd6b9ed385 or 52b330799e2d6f825ae2bb74662ec1b10eb954bb or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.167 or 6.6.130 or 6.12.77 or 6.18.11 or 6.19.1 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.