CVE-2017-18509: Input Validation

Published Aug 13, 2019
·
Updated

An issue was discovered in net/ipv6/ip6mr.c in the Linux kernel before 4.11. By setting a specific socket option, an attacker can control a pointer in kernel land and cause an inetcsklistenstop general protection fault, or potentially execute arbitrary code under certain circumstances. The issue can be triggered as root (e.g., inside a default LXC container or with the CAPNETADMIN capability) or after namespace unsharing. This occurs because sktype and protocol are not checked in the appropriate part of the ip6mroute functions. NOTE: this affects Linux distributions that use 4.9.x longterm kernels before 4.9.187.

Other sources

In ip6mroutesetsockopt and related functions of ip6mr.c, there is a possible out of bounds write due to a logic error in the code. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

33 affected componentsFixes available
Linux Linux kernel<3.16.72
Linux Linux kernel>=3.17<4.4.187
Linux Linux kernel>=4.5<4.9.187
Linux Linux kernel>=4.10<4.11
Canonical Ubuntu Linux=16.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Google Android
ubuntu/linux-aws<4.4.0-1055.59
4.4.0-1055.59
ubuntu/linux-lts-xenial<4.4.0-165.193~14.04.1
4.4.0-165.193~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-165.193
4.4.0-165.193
ubuntu/linux-aws<4.4.0-1095.106
4.4.0-1095.106
ubuntu/linux-gcp<4.13.0-1002.5
4.13.0-1002.5
ubuntu/linux-hwe<4.13.0-32.35~16.04.1
4.13.0-32.35~16.04.1
ubuntu/linux-kvm<4.4.0-1059.66
4.4.0-1059.66
ubuntu/linux-raspi2<4.4.0-1123.132
4.4.0-1123.132
ubuntu/linux-snapdragon<4.4.0-1127.135
4.4.0-1127.135
ubuntu/linux-fips<4.4.0-1022.27
4.4.0-1022.27
ubuntu/linux-fips*
ubuntu/linux-snapdragon<4.15.0-1053.57
4.15.0-1053.57
ubuntu/linux-azure-fde*
ubuntu/linux-gke*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-raspi-realtime*
android/:linux_kernel:>=:0<:2021-02-05
:2021-02-05
debian/linux
3.16.72-14.9.168-1+deb9u54.11.6-1
debian/linux-4.9
4.9.168-1+deb9u5~deb8u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.4.0-1055.59
  2. Upgrade

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

    Fixed in 4.4.0-165.193~14.04.1
  3. Upgrade

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

    Fixed in 4.4.0-165.193
  4. Upgrade

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

    Fixed in 4.4.0-1095.106
  5. Upgrade

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

    Fixed in 4.13.0-1002.5
  6. Upgrade

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

    Fixed in 4.13.0-32.35~16.04.1
  7. Upgrade

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

    Fixed in 4.4.0-1059.66
  8. Upgrade

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

    Fixed in 4.4.0-1123.132
  9. Upgrade

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

    Fixed in 4.4.0-1127.135
  10. Upgrade

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

    Fixed in 4.4.0-1022.27
  11. Upgrade

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

    Fixed in 4.15.0-1053.57
  12. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2021-02-05
  13. Upgrade

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

    Fixed in 3.16.72-1Fixed in 4.9.168-1+deb9u5Fixed in 4.11.6-1
  14. Upgrade

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

    Fixed in 4.9.168-1+deb9u5~deb8u1

Event History

Aug 13, 2019
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
Event
via OSV·12:00 AM
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description
Feb 1, 2021
Advisory Published
via OSV·12:00 AM
Oct 25, 2022
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Feb 7, 2023
Data Sourced
10:01 PM
Weakness
Nov 7, 2023
Data Sourced
via NVD·02:41 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
02:41 AM
Affected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 18, 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:20 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·01:13 AM
Affected Software
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software
Oct 16, 2026
Updated
via Ubuntu·12:00 AM
Description
Nov 11, 2026
Updated
via OSV·09:34 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:20 PM
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 vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2017-18509.

2

What is the severity level of CVE-2017-18509?

CVE-2017-18509 has a severity level of high.

3

Which software is affected by CVE-2017-18509?

CVE-2017-18509 affects various versions of the Linux kernel, including linux-gcp, linux-gcp-edge, linux-gke-4.15, linux, linux-aws, linux-aws-hwe, linux-azure, linux-azure-edge, linux-gke-5.0, linux-hwe, linux-hwe-edge, linux-kvm, linux-lts-trusty, linux-lts-xenial, linux-oem, linux-oracle, linux-raspi2, linux-snapdragon, and Google Android.

4

How can an attacker exploit CVE-2017-18509?

An attacker can exploit CVE-2017-18509 by setting a specific socket option, which allows them to control a pointer in the kernel and potentially execute arbitrary code.

5

Are there any patches or remedies available for CVE-2017-18509?

Yes, there are patches available to fix CVE-2017-18509. Please refer to the relevant sources for more information and updates.

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