CVE-2016-5829: Buffer Overflow

Published Jun 27, 2016
·
Updated

A vulnerabilty was found in the Linux kernels hiddev driver. An attacker with permissions to the USB HID device can call an ioctl with the HIDIOCGUSAGES or HIDIOCSUSAGES command, and passes a report id of HIDREPORTIDUNKNOWN range checks that would prevent oversize buffers being copied from userspace to kernel space were bypassed.

The kernel would loop on a a value passed by userspace and can copy memory outside of the intended range. This can corrupt memory located after the struct in memory, duplicating the kernel memory or crashing the system

Upstream patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=93a2001bdfd5376c3dc2158653034c20392d15c5

Other sources

Multiple heap-based buffer overflows in the hiddevioctlusage function in drivers/hid/usbhid/hiddev.c in the Linux kernel through 4.6.3 allow local users to cause a denial of service or possibly have unspecified other impact via a crafted (1) HIDIOCGUSAGES or (2) HIDIOCSUSAGES ioctl call.

Launchpad

Affected Software

15 affected componentsFixes available
Debian Debian Linux=8.0
Linux Linux kernel<3.2.82
Linux Linux kernel>=3.3<3.10.103
Linux Linux kernel>=3.11<3.12.62
Linux Linux kernel>=3.13<3.14.74
Linux Linux kernel>=3.15<3.16.37
Linux Linux kernel>=3.17<3.18.37
Linux Linux kernel>=3.19<4.1.28
Linux Linux kernel>=4.2<4.4.16
Linux Linux kernel>=4.5<4.6.5
Novell Suse Linux Enterprise Real Time Extension=12-sp1
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
debian/linux
5.10.223-15.10.234-16.1.129-16.1.133-16.12.22-1

Event History

Jun 27, 2016
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
03:45 PM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:20 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:16 AM
RemedyDescriptionSeverityAffected Software
Mar 31, 2025
Data Sourced
via Debian·03:30 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2016-5829?

CVE-2016-5829 is a vulnerability in the Linux kernel that allows local users to cause a denial of service or possibly have other unspecified impact via a crafted HIDIOCGUSAGES or HIDIOCSUSAGES ioctl call.

2

How severe is CVE-2016-5829?

CVE-2016-5829 is classified as a medium severity vulnerability.

3

Which software versions are affected by CVE-2016-5829?

CVE-2016-5829 affects various versions of the Linux kernel: 3.2.0-109.150, 3.13.0-95.142, 4.4.0-36.55, and 4.7~ (upstream).

4

How can I fix CVE-2016-5829?

To fix CVE-2016-5829, update your Linux kernel to version 3.2.0-109.150, 3.13.0-95.142, 4.4.0-36.55, or a later version.

5

Where can I find more information about CVE-2016-5829?

You can find more information about CVE-2016-5829 at the following references: [link1](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=93a2001bdfd5376c3dc2158653034c20392d15c5), [link2](http://seclists.org/oss-sec/2016/q2/609), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1350513).

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