CVE-2024-36960: drm/vmwgfx: Fix invalid reads in fence signaled events

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/vmwgfx: Fix invalid reads in fence signaled events

Correctly set the length of the drm_event to the size of the structure
that's actually used.

The length of the drm_event was set to the parent structure instead of
to the drm_vmw_event_fence which is supposed to be read. drm_read
uses the length parameter to copy the event to the user space thus
resuling in oob reads.

Classification

CVE ID: CVE-2024-36960

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 18.43% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/2f527e3efd37c7c5e85e8aa86308856b619fa59f
https://git.kernel.org/stable/c/cef0962f2d3e5fd0660c8efb72321083a1b531a9
https://git.kernel.org/stable/c/3cd682357c6167f636aec8ac0efaa8ba61144d36
https://git.kernel.org/stable/c/b7bab33c4623c66e3398d5253870d4e88c52dfc0
https://git.kernel.org/stable/c/0dbfc73670b357456196130551e586345ca48e1b
https://git.kernel.org/stable/c/7b5fd3af4a250dd0a2a558e07b43478748eb5d22
https://git.kernel.org/stable/c/deab66596dfad14f1c54eeefdb72428340d72a77
https://git.kernel.org/stable/c/a37ef7613c00f2d72c8fc08bd83fb6cc76926c8c

Timeline