CVE-2016-4998: Buffer Overflow

Published Jun 24, 2016
·
Updated

An out-of-bounds heap memory access, leading to a Denial of Service or possibly heap disclosure or further impact was found in setsockopt(). The particular setsockopt() call is normally restricted to root, however some processes with capsysadmin may also be able to trigger this flaw.

Upstream fixes

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ce683e5f9d04 http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6e94e0cfb088 http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=bdf533de6968

Discussion on oss-sec: http://www.openwall.com/lists/oss-security/2016/06/24/5

Other sources

The IPTSOSETREPLACE setsockopt implementation in the netfilter subsystem in the Linux kernel before 4.6 allows local users to cause a denial of service (out-of-bounds read) or possibly obtain sensitive information from kernel heap memory by leveraging in-container root access to provide a crafted offset value that leads to crossing a ruleset blob boundary.

— Launchpad

Affected Software

36 affected componentsFixes available
Linux Linux kernel<=4.5.5
Oracle Linux=7
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
Google Android
ubuntu/linux<3.13.0-91.138
3.13.0-91.138
ubuntu/linux-lts-utopic<3.16.0-76.98~14.04.1
3.16.0-76.98~14.04.1
ubuntu/linux-lts-vivid<3.19.0-64.72~14.04.1
3.19.0-64.72~14.04.1
ubuntu/linux-lts-wily<4.2.0-41.48~14.04.1
4.2.0-41.48~14.04.1
ubuntu/linux-lts-xenial<4.4.0-28.47~14.04.1
4.4.0-28.47~14.04.1
ubuntu/linux<4.4.0-28.47
4.4.0-28.47
ubuntu/linux-raspi2<4.4.0-1016.22
4.4.0-1016.22
ubuntu/linux-snapdragon<4.4.0-1019.22
4.4.0-1019.22
ubuntu/linux-azure*
ubuntu/linux-gcp*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15*
ubuntu/linux-gke*
ubuntu/linux-gkeop*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-azure-6.11*
ubuntu/linux-gcp-6.11*
ubuntu/linux-hwe-6.11*
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-raspi-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
debian/linux
3.16.7-ckt25-2+deb8u24.6.2-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 3.13.0-91.138
  2. Upgrade

    Upgrade ubuntu/linux-lts-utopic to a version that resolves this vulnerability.

    Fixed in 3.16.0-76.98~14.04.1
  3. Upgrade

    Upgrade ubuntu/linux-lts-vivid to a version that resolves this vulnerability.

    Fixed in 3.19.0-64.72~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux-lts-wily to a version that resolves this vulnerability.

    Fixed in 4.2.0-41.48~14.04.1
  5. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-28.47~14.04.1
  6. Upgrade

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

    Fixed in 4.4.0-28.47
  7. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.4.0-1016.22
  8. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.4.0-1019.22
  9. Upgrade

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

    Fixed in 3.16.7-ckt25-2+deb8u2Fixed in 4.6.2-2
  10. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 4.6

Event History

Jun 24, 2016
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Jul 3, 2016
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Sep 6, 2016
Data Sourced
via Android·12:00 AM
SeverityAffected Software
Feb 17, 2021
Data Sourced
via Red Hat·03:39 AM
DescriptionSeverityAffected Software
Feb 12, 2023
Data Sourced
11:22 PM
Weakness
Data Sourced
via NVD·11:22 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
11:22 PM
Affected Software
Nov 21, 2024
Updated
via NVD·02:53 AM
RemedyAffected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software
Jun 17, 2026
Updated
via NVD·12:48 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2016-4998?

CVE-2016-4998 is a vulnerability in the Linux kernel that allows local users to cause a denial of service or obtain sensitive information from kernel heap memory.

2

How does CVE-2016-4998 impact the Linux kernel?

CVE-2016-4998 can result in an out-of-bounds read, leading to a denial of service or potential information disclosure.

3

Which versions of the Linux kernel are affected by CVE-2016-4998?

CVE-2016-4998 affects Linux kernel versions before 4.6.

4

How can the vulnerability in CVE-2016-4998 be fixed?

To fix the vulnerability in CVE-2016-4998, update to Linux kernel version 4.6 or later.

5

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

You can find more information about CVE-2016-4998 at the following references: [SecurityTracker](http://www.securitytracker.com/id/1036171), [SecurityFocus](http://www.securityfocus.com/bid/91451), [Debian Security Advisory](http://www.debian.org/security/2016/dsa-3607).

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