5.5medium
drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA Replace the fake VLA at end of the vbva_mouse_pointer_shape shape with a real VLA to fix a "memcpy: detected field-spanning write error" warning: [ 13.319813] memcpy: detected field-spanning write (size 16896) of single field "p->data" at drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 (size 4) [ 13.319841] WARNING: CPU: 0 PID: 1105 at drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 hgsmi_update_pointer_shape+0x192/0x1c0 [vboxvideo] [ 13.320038] Call Trace: [ 13.320173] hgsmi_update_pointer_shape [vboxvideo] [ 13.320184] vbox_cursor_atomic_update [vboxvideo] Note as mentioned in the added comment it seems the original length calculation for the allocated and send hgsmi buffer is 4 bytes too large. Changing this is not the goal of this patch, so this behavior is kept.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from dd55d44f408419278c00887bfcb2261d0caae350 before 02c86c5d5ef4bbba17d38859c74872825f536617, from dd55d44f408419278c00887bfcb2261d0caae350 before 75f828e944dacaac8870418461d3d48a1ecf2331, from dd55d44f408419278c00887bfcb2261d0caae350 before 34a422274b693507025a7db21519865d1862afcb, from dd55d44f408419278c00887bfcb2261d0caae350 before 7458a6cdaebb3dc59af8578ee354fae78a154c4a, from dd55d44f408419278c00887bfcb2261d0caae350 before 9eb32bd23bbcec44bcbef27b7f282b7a7f3d0391, from dd55d44f408419278c00887bfcb2261d0caae350 before fae9dc12c61ce23cf29d09824a741b7b1ff8f01f, from dd55d44f408419278c00887bfcb2261d0caae350 before d92b90f9a54d9300a6e883258e79f36dab53bfae, 4.13 Not affected: before 4.13, from 5.4.285 up to 5.4.*, from 5.10.229 up to 5.10.*, from 5.15.170 up to 5.15.*, from 6.1.115 up to 6.1.*, from 6.6.59 up to 6.6.* | CVE List |
| linux linux_kernel | before 5.15.170, from 5.16 before 6.1.115, from 6.2 before 6.6.59, from 6.7 before 6.11.6, 6.12 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA Replace the fake VLA at end of the vbva_mouse_pointer_shape shape with a real VLA to fix a "memcpy: detected field-spanning write error" warning: [ 13.319813] memcpy: detected field-spanning write (size 16896) of single field "p->data" at drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 (size 4) [ 13.319841] WARNING: CPU: 0 PID: 1105 at drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 hgsmi_update_pointer_shape+0x192/0x1c0 [vboxvideo] [ 13.320038] Call Trace: [ 13.320173] hgsmi_update_pointer_shape [vboxvideo] [ 13.320184] vbox_cursor_atomic_update [vboxvideo] Note as mentioned in the added comment it seems the original length calculation for the allocated and send hgsmi buffer is 4 bytes too large. Changing this is not the goal of this patch, so this behavior is kept.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/vboxvideo: Reemplazar VLA falso al final de vbva_mouse_pointer_shape con VLA real Reemplace el VLA falso al final de la forma vbva_mouse_pointer_shape con un VLA real para corregir una advertencia "memcpy: error de escritura que abarca el campo detectado": [ 13.319813] memcpy: se detectó una escritura que abarca el campo (tamaño 16896) de un solo campo "p->data" en drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 (tamaño 4) [ 13.319841] ADVERTENCIA: CPU: 0 PID: 1105 en drivers/gpu/drm/vboxvideo/hgsmi_base.c:154 hgsmi_update_pointer_shape+0x192/0x1c0 [vboxvideo] [ [13.320038] Seguimiento de llamadas: [13.320173] hgsmi_update_pointer_shape [vboxvideo] [13.320184] vbox_cursor_atomic_update [vboxvideo] Tenga en cuenta que, como se menciona en el comentario agregado, parece que el cálculo de longitud original para el búfer hgsmi asignado y enviado es 4 bytes más grande. Cambiar esto no es el objetivo de este parche, por lo que se mantiene este comportamiento.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50134 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2024-50134 changed 2026-11-05 | Public domain |