UBUNTU-CVE-2017-9605
The vmw_gb_surface_define_ioctl function (accessible via DRM_IOCTL_VMW_GB_SURFACE_CREATE) in drivers/gpu/drm/vmwgfx/vmwgfx_surface.c in the Linux kernel through 4.11.4 defines a backup_handle variable but does not give it an initial value. If one attempts to create a GB surface, with a previously allocated DMA buffer to be used as a backup buffer, the backup_handle variable does not get written to and is then later returned to user space, allowing local users to obtain sensitive information from uninitialized kernel memory via a crafted ioctl call.
02 / AFFECTED SOFTWARE
Affected packages
116 explicit affected versions
33 explicit affected versions
55 explicit affected versions
13 explicit affected versions
11 explicit affected versions
17 explicit affected versions
31 explicit affected versions
28 explicit affected versions
44 explicit affected versions
38 explicit affected versions
43 explicit affected versions
10 explicit affected versions
50 explicit affected versions
26 explicit affected versions
51 explicit affected versions
6 explicit affected versions
12 explicit affected versions
1 explicit affected versions
1 explicit affected versions
23 explicit affected versions
1 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
The vmw_gb_surface_define_ioctl function (accessible via DRM_IOCTL_VMW_GB_SURFACE_CREATE) in drivers/gpu/drm/vmwgfx/vmwgfx_surface.c in the Linux kernel through 4.11.4 defines a backup_handle variable but does not give it an initial value. If one attempts to create a GB surface, with a previously allocated DMA buffer to be used as a backup buffer, the backup_handle variable does not get written to and is then later returned to user space, allowing local users to obtain sensitive information from uninitialized kernel memory via a crafted ioctl call.
05 / REFERENCES
Further evidence
- http://www.openwall.com/lists/oss-security/2017/06/13/2
- https://ubuntu.com/security/CVE-2017-9605
- https://ubuntu.com/security/notices/USN-3358-1
- https://ubuntu.com/security/notices/USN-3359-1
- https://ubuntu.com/security/notices/USN-3360-1
- https://ubuntu.com/security/notices/USN-3360-2
- https://ubuntu.com/security/notices/USN-3364-1
- https://ubuntu.com/security/notices/USN-3364-2
- https://ubuntu.com/security/notices/USN-3364-3
- https://ubuntu.com/security/notices/USN-3371-1
- https://www.cve.org/CVERecord?id=CVE-2017-9605