CVE-2017-7294: Integer Overflow

Published Mar 28, 2017
·
Updated

In was found that in the Linux kernel in vmwsurfacedefineioctl() function in 'drivers/gpu/drm/vmwgfx/vmwgfxsurface.c' file, a 'req->miplevels[i]' are user-controlled values which are not checked for the upper limit and are used to calculate 'numsizes' parameter. Both the 'numsizes' and the array are 'uint32t' so it is possible to make 'numsizes' overflow. Later 'miplevels[i]' are used as the loop count. This can lead an oob-write and/or kernel lock up.

Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.

References:

http://seclists.org/oss-sec/2017/q1/688

Proposed patch:

https://lists.freedesktop.org/archives/dri-devel/2017-March/137094.html

Other sources

The vmwsurfacedefineioctl function in drivers/gpu/drm/vmwgfx/vmwgfxsurface.c in the Linux kernel through 4.10.6 does not validate addition of certain levels data, which allows local users to trigger an integer overflow and out-of-bounds write, and cause a denial of service (system hang or crash) or possibly gain privileges, via a crafted ioctl call for a /dev/dri/renderD device.

Launchpad

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=3.2<3.2.89
Linux Linux kernel>=3.3<3.10.107
Linux Linux kernel>=3.11<3.12.74
Linux Linux kernel>=3.13<3.16.44
Linux Linux kernel>=3.17<3.18.50
Linux Linux kernel>=3.19<4.1.40
Linux Linux kernel>=4.2<4.4.61
Linux Linux kernel>=4.5<4.9.22
Linux Linux kernel>=4.10<4.10.10
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1

Event History

Mar 28, 2017
Data Sourced
via Red Hat·05:30 PM
DescriptionSeverityAffected Software
Mar 29, 2017
CVE Published
via MITRE·01:32 AM
Data Sourced
via MITRE·01:32 AM
Description
Data Sourced
via NVD·02:59 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:38 PM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·02:04 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2017-7294?

CVE-2017-7294 is a vulnerability in the Linux kernel that allows local users to trigger an integer overflow and out-of-bounds write, causing a denial of service (system hang or crash).

2

How severe is CVE-2017-7294?

CVE-2017-7294 has a severity level of medium.

3

Which software versions are affected by CVE-2017-7294?

The affected software versions include Ubuntu Linux (4.11~), Linux Trusty (3.13.0-123.172), Linux Xenial (4.4.0-78.99), Linux Yakkety (4.8.0-58.63), and Linux Zesty (4.10.0-21.23).

4

How do I fix CVE-2017-7294?

To fix CVE-2017-7294, users should update to the appropriate patched versions of the Linux kernel.

5

Where can I find more information about CVE-2017-7294?

More information about CVE-2017-7294 can be found at the following references: http://seclists.org/oss-sec/2017/q1/688, https://lists.freedesktop.org/archives/dri-devel/2017-March/137094.html, https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1436802.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203