CVE-2017-17806: Buffer Overflow

Published Dec 20, 2017
·
Updated

The HMAC implementation (crypto/hmac.c) in the Linux kernel before 4.14.8 does not validate that the underlying cryptographic hash algorithm is unkeyed, allowing a local attacker able to use the AFALG-based hash interface (CONFIGCRYPTOUSERAPIHASH) and the SHA-3 hash algorithm (CONFIGCRYPTOSHA3) to cause a kernel stack buffer overflow by executing a crafted sequence of system calls that encounter a missing SHA-3 initialization.

Affected Software

51 affected componentsFixes available
redhat/kernel<4.14.8
4.14.8
Linux Linux kernel<3.2.97
Linux Linux kernel>=3.3<3.16.52
Linux Linux kernel>=3.17<3.18.89
Linux Linux kernel>=3.19<4.1.49
Linux Linux kernel>=4.2<4.4.107
Linux Linux kernel>=4.5<4.9.71
Linux Linux kernel>=4.10<4.14.8
Debian Debian Linux=8.0
Debian Debian Linux=9.0
openSUSE Leap=42.2
Opensuse Project Leap=42.3
SUSE Linux Enterprise Desktop=12-sp2
SUSE Linux Enterprise Desktop=12-sp3
SUSE Linux Enterprise Server=11-extra
SUSE Linux Enterprise Server=11-sp4
SUSE Linux Enterprise Server=12-sp2
SUSE Linux Enterprise Server=12-sp3
SUSE Linux Enterprise Server For Raspberry Pi=12-sp2
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Google Android
ubuntu/linux<3.13.0-142.191
3.13.0-142.191
ubuntu/linux-aws<4.4.0-1016.16
4.4.0-1016.16
ubuntu/linux-lts-xenial<4.4.0-119.143~14.04.1
4.4.0-119.143~14.04.1
ubuntu/linux<4.4.0-119.143
4.4.0-119.143
ubuntu/linux-aws<4.4.0-1054.63
4.4.0-1054.63
ubuntu/linux-azure<4.13.0-1014.17
4.13.0-1014.17
ubuntu/linux-gcp<4.13.0-1012.16
4.13.0-1012.16
ubuntu/linux-hwe<4.13.0-41.46~16.04.1
4.13.0-41.46~16.04.1
ubuntu/linux-kvm<4.4.0-1020.25
4.4.0-1020.25
ubuntu/linux-oem<4.13.0-1022.24
4.13.0-1022.24
ubuntu/linux-raspi2<4.4.0-1086.94
4.4.0-1086.94
ubuntu/linux-snapdragon<4.4.0-1088.93
4.4.0-1088.93
ubuntu/linux-fips<4.4.0-1008.10
4.4.0-1008.10
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15*
ubuntu/linux-gke*
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*
debian/linux
3.2.96-33.16.51-3+deb8u14.9.65-3+deb9u14.14.7-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 4.14.8
  2. Upgrade

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

    Fixed in 3.13.0-142.191
  3. Upgrade

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

    Fixed in 4.4.0-1016.16
  4. Upgrade

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

    Fixed in 4.4.0-119.143~14.04.1
  5. Upgrade

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

    Fixed in 4.4.0-119.143
  6. Upgrade

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

    Fixed in 4.4.0-1054.63
  7. Upgrade

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

    Fixed in 4.13.0-1014.17
  8. Upgrade

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

    Fixed in 4.13.0-1012.16
  9. Upgrade

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

    Fixed in 4.13.0-41.46~16.04.1
  10. Upgrade

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

    Fixed in 4.4.0-1020.25
  11. Upgrade

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

    Fixed in 4.13.0-1022.24
  12. Upgrade

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

    Fixed in 4.4.0-1086.94
  13. Upgrade

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

    Fixed in 4.4.0-1088.93
  14. Upgrade

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

    Fixed in 4.4.0-1008.10
  15. Upgrade

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

    Fixed in 3.2.96-3Fixed in 3.16.51-3+deb8u1Fixed in 4.9.65-3+deb9u1Fixed in 4.14.7-1
  16. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 4.14.8

Event History

Dec 20, 2017
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
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Mar 11, 2021
Data Sourced
via Red Hat·04:45 PM
DescriptionSeverityAffected Software
Oct 25, 2022
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Jan 19, 2023
Data Sourced
04:26 PM
Weakness
Data Sourced
via NVD·04:26 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:26 PM
Affected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·03:18 AM
RemedyAffected Software
Apr 20, 2025
Updated
via NVD·01:37 AM
Affected Software
May 13, 2026
Updated
via NVD·12:24 AM
Affected Software
Jul 4, 2026
Updated
via Ubuntu·12:00 AM
Description
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2017-17806?

CVE-2017-17806 is a high-severity vulnerability due to improper validation in the HMAC implementation of the Linux kernel.

2

How do I fix CVE-2017-17806?

To fix CVE-2017-17806, upgrade to Linux kernel version 4.14.8 or later.

3

Which versions of Linux are affected by CVE-2017-17806?

CVE-2017-17806 affects Linux kernel versions prior to 4.14.8, including multiple versions within the range of 3.2 to 4.14.7.

4

Can CVE-2017-17806 be exploited remotely?

No, CVE-2017-17806 requires local access for exploitation due to its nature of attacking the HMAC implementation.

5

What systems should I prioritize for CVE-2017-17806 patching?

Systems running Linux kernels prior to version 4.14.8, especially those in sensitive environments, should be prioritized for patching against CVE-2017-17806.

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