Linux Kernel DRM vmwgfx OOB Read in Fence Events
CVE-2024-36960 Published on June 3, 2024
drm/vmwgfx: Fix invalid reads in fence signaled events
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.
Weakness Type
Out-of-bounds Read
The software reads data past the end, or before the beginning, of the intended buffer. Typically, this can allow attackers to read sensitive information from other memory locations or cause a crash. A crash can occur when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string. The expected sentinel might not be located in the out-of-bounds memory, causing excessive data to be read, leading to a segmentation fault or a buffer overflow. The software may modify an index or perform pointer arithmetic that references a memory location that is outside of the boundaries of the buffer. A subsequent read operation then produces undefined or unexpected results.
Products Associated with CVE-2024-36960
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-36960 are published in these products:
Affected Versions
Linux:- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below 2f527e3efd37c7c5e85e8aa86308856b619fa59f is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below cef0962f2d3e5fd0660c8efb72321083a1b531a9 is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below 3cd682357c6167f636aec8ac0efaa8ba61144d36 is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below b7bab33c4623c66e3398d5253870d4e88c52dfc0 is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below 0dbfc73670b357456196130551e586345ca48e1b is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below 7b5fd3af4a250dd0a2a558e07b43478748eb5d22 is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below deab66596dfad14f1c54eeefdb72428340d72a77 is affected.
- Version 8b7de6aa84682a3396544fd88cd457f95484573a and below a37ef7613c00f2d72c8fc08bd83fb6cc76926c8c is affected.
- Version 3.4 is affected.
- Before 3.4 is unaffected.
- Version 4.19.314, <= 4.19.* is unaffected.
- Version 5.4.276, <= 5.4.* is unaffected.
- Version 5.10.217, <= 5.10.* is unaffected.
- Version 5.15.159, <= 5.15.* is unaffected.
- Version 6.1.91, <= 6.1.* is unaffected.
- Version 6.6.31, <= 6.6.* is unaffected.
- Version 6.8.10, <= 6.8.* is unaffected.
- Version 6.9, <= * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.