drm/vmwgfx: validate DRAW_PRIMITIVES header size before division
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fc0c02f510e41650df3479f96e257acf87d8a20a, Kernel 112c6ff29a56f3a22db4d5af869697aa07035ad6, Kernel 2666cddf0dd218aa9bd1f99db688d1b532eac21a and 12 more.
In the Linux kernel, the following vulnerability has been resolved: drm/vmwgfx: validate DRAW_PRIMITIVES header size before division vmw_cmd_draw() computes maxnum = (header->size - sizeof(cmd->body)) / sizeof(*decl); where header->size is u32 and is taken straight from the user-supplied command stream. When header->size is less than sizeof(cmd->body) the unsigned subtraction wraps to nearly 4 GiB, producing a huge maxnum. Any user-controlled cmd->body.numVertexDecls then passes the bound and the loop dereferences decl[i] far past the end of the kernel command bounce buffer, producing an out-of-bounds read of kernel memory. Reject undersized headers up front.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7a73ba7469cbea631050094fd14f73acebb97cf9 <fc0c02f510e41650df3479f96e257acf87d8a20a, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <112c6ff29a56f3a22db4d5af869697aa07035ad6, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <2666cddf0dd218aa9bd1f99db688d1b532eac21a, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <85891d174707d8bddcec7a888fb4e1d17def34f3, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <b89ca4bba820f79dde52af15ee139fe6e8bbc314, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <bef30317fcb4c838a37bceb2fc76256eb6b975c1, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <c77cf8edae2bd3a1599115301cc7c98d0c78e731, >=7a73ba7469cbea631050094fd14f73acebb97cf9 <dc0be7662b7b0ce28cb5eea864737793ed7b9e70, =2.6.33 | fc0c02f510e41650df3479f96e257acf87d8a20a, 112c6ff29a56f3a22db4d5af869697aa07035ad6, 2666cddf0dd218aa9bd1f99db688d1b532eac21a, 85891d174707d8bddcec7a888fb4e1d17def34f3, b89ca4bba820f79dde52af15ee139fe6e8bbc314, bef30317fcb4c838a37bceb2fc76256eb6b975c1, c77cf8edae2bd3a1599115301cc7c98d0c78e731, dc0be7662b7b0ce28cb5eea864737793ed7b9e70 |
| linux-kernel: Kernel | >=5.11.0 <5.15.216, >=5.16.0 <6.1.183, >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.151, >=6.7.0 <6.12.103, >=2.6.33 <5.10.265 | 5.15.216, 6.1.183, 6.18.44, 7.1.8, 6.6.151, 6.12.103, 5.10.265 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket