CVE-2017-18017
published 2018-01-03CVE-2017-18017: The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a…
PriorityP359critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
52.84%
98.9th percentile
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.
Affected
58 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| arista | eos | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | linux | < linux 4.11.6-1 (bookworm) | linux 4.11.6-1 (bookworm) |
| f5 | arx | 6.2.0 – 6.4.0 | — |
| linux | linux_kernel | >= 0 < 4.11.6-1 | 4.11.6-1 |
| linux | linux_kernel | >= 0 < 4.11.6-1 | 4.11.6-1 |
| linux | linux_kernel | >= 0 < 4.11.6-1 | 4.11.6-1 |
| linux | linux_kernel | >= 0 < 4.11.6-1 | 4.11.6-1 |
| linux | linux_kernel | >= 0 < 3.13.0-142.191 | 3.13.0-142.191 |
| linux | linux_kernel | >= 3.11 < 3.16.54 | 3.16.54 |
| linux | linux_kernel | >= 3.17 < 3.18.60 | 3.18.60 |
| linux | linux_kernel | >= 3.19 < 4.1.43 | 4.1.43 |
| linux | linux_kernel | >= 3.2 < 3.2.99 | 3.2.99 |
| linux | linux_kernel | >= 3.3 < 3.10.108 | 3.10.108 |
| linux | linux_kernel | >= 4.10 < 4.11 | 4.11 |
| linux | linux_kernel | >= 4.2 < 4.4.76 | 4.4.76 |
| linux | linux_kernel | >= 4.5 < 4.9.36 | 4.9.36 |
| openstack | cloud_magnum_orchestration | — | — |
| opensuse | leap | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_eus | — | — |
Detection & IOCsextracted from sources · hover to see the quote
urlhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2638fd0f92d4397884fd991d8f4925cb3f081901↗
- →Exploit requires a crafted TCP packet with doff (data offset) field set to 0, triggering an out-of-bounds loop in tcpmss_mangle_packet(). Monitor for TCP packets with doff=0 reaching netfilter when xt_TCPMSS is active. ↗
- →Exploit also possible via TCP packets with doff=15, causing doff to wrap to 0 after TCPOLEN_MSS/4 addition. Monitor for TCP packets with doff=15 processed by xt_TCPMSS. ↗
- →Vulnerability is only exploitable when the xt_TCPMSS kernel module is loaded and an iptables TCPMSS action (--set-mss or --clamp-mss-to-pmtu) is configured. Audit iptables rules for TCPMSS targets as a prerequisite indicator. ↗
- →KASAN (Kernel Address Sanitizer) will report use-after-free errors when opt[i] and opt[i+1] access out-of-bound data beyond the socket buffer. KASAN reports in kernel logs are a strong indicator of active exploitation. ↗
- →A successful exploit may manifest as a kernel execution thread stuck looping for extended periods (tens of seconds iterating ~4GB of memory) or a system crash. Monitor for kernel hangs or panics on systems with xt_TCPMSS active. ↗
- ·The vulnerability is only reachable when xt_TCPMSS is present as an iptables action. Systems without this netfilter module loaded or without a TCPMSS iptables rule are not exposed to remote exploitation. ↗
- ·Privilege escalation is considered unlikely but cannot be fully ruled out. The memory overwrite is restricted: bytes 0x02/0x04 must appear after the socket buffer, and the written newmss value is controlled by the sysadmin's iptables rule, not the attacker. ↗
- ·Malformed TCP packets with doff<5 are normally dropped by tcp_v4_rcv()/tcp_v6_rcv() before reaching the application stack, but they can still reach tcpmss_mangle_packet() via the PREROUTING/mangle hook before those checks apply. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-3fj5-q6p4-25m2: The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS
ghsa_unreviewed·2022-04-30
CVE-2017-18017 [CRITICAL] CWE-416 GHSA-3fj5-q6p4-25m2: The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.
OSV
linux vulnerabilities
osv·2018-02-23·CVSS 7.8
CVE-2017-0750 [HIGH] linux vulnerabilities
linux vulnerabilities
It was discovered that an out-of-bounds write vulnerability existed in the
Flash-Friendly File System (f2fs) in the Linux kernel. An attacker could
construct a malicious file system that, when mounted, could cause a denial
of service (system crash) or possibly execute arbitrary code.
(CVE-2017-0750)
It was discovered that a race condition leading to a use-after-free
vulnerability existed in the ALSA PCM subsystem of the Linux kernel. A
local attacker could use this to cause a denial of service (system crash)
or possibly execute arbitrary code. (CVE-2017-0861)
It was discovered that the KVM implementation in the Linux kernel allowed
passthrough of the diagnostic I/O port 0x80. An attacker in a guest VM
could use this to cause a denial of service (system crash) in th
OSV
CVE-2017-18017: The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS
osv·2018-01-03·CVSS 9.8
CVE-2017-18017 [CRITICAL] CVE-2017-18017: The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.
Ubuntu
Linux kernel vulnerabilities
vendor_ubuntu·2018-02-23·CVSS 7.8
CVE-2017-0750 [HIGH] Linux kernel vulnerabilities
Title: Linux kernel vulnerabilities
Summary: Several security issues were fixed in the Linux kernel.
It was discovered that an out-of-bounds write vulnerability existed in the
Flash-Friendly File System (f2fs) in the Linux kernel. An attacker could
construct a malicious file system that, when mounted, could cause a denial
of service (system crash) or possibly execute arbitrary code.
(CVE-2017-0750)
It was discovered that a race condition leading to a use-after-free
vulnerability existed in the ALSA PCM subsystem of the Linux kernel. A
local attacker could use this to cause a denial of service (system crash)
or possibly execute arbitrary code. (CVE-2017-0861)
It was discovered that the KVM implementation in the Linux kernel allowed
passthrough of the diagnostic I/O port 0x80. An attacke
Ubuntu
Linux kernel (Trusty HWE) vulnerabilities
vendor_ubuntu·2018-02-23·CVSS 7.8
CVE-2017-0750 [HIGH] Linux kernel (Trusty HWE) vulnerabilities
Title: Linux kernel (Trusty HWE) vulnerabilities
Summary: Several security issues were fixed in the Linux kernel.
USN-3583-1 fixed vulnerabilities in the Linux kernel for Ubuntu 14.04
LTS. This update provides the corresponding updates for the Linux
Hardware Enablement (HWE) kernel from Ubuntu 14.04 LTS for Ubuntu
12.04 ESM.
It was discovered that an out-of-bounds write vulnerability existed in the
Flash-Friendly File System (f2fs) in the Linux kernel. An attacker could
construct a malicious file system that, when mounted, could cause a denial
of service (system crash) or possibly execute arbitrary code.
(CVE-2017-0750)
It was discovered that a race condition leading to a use-after-free
vulnerability existed in the ALSA PCM subsystem of the Linux kernel. A
local attacker could use this
Red Hat
kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
vendor_redhat·2018-01-03·CVSS 9.8
CVE-2017-18017 [CRITICAL] CWE-119 kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action. Due to the nature of the flaw, privilege escalation cannot be full
Debian
CVE-2017-18017: linux - The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kern...
vendor_debian·2017·CVSS 9.8
CVE-2017-18017 [CRITICAL] CVE-2017-18017: linux - The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kern...
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action.
Scope: local
bookworm: resolved (fixed in 4.11.6-1)
bullseye: resolved (fixed in 4.11.6-1)
forky: resolved (fixed in 4.11.6-1)
sid: resolved (fixed in 4.11.6-1)
trixie: resolved (fixed in 4.11.6-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2017-18017 kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
bugzilla·2018-01-04·CVSS 9.8
CVE-2017-18017 [CRITICAL] CVE-2017-18017 kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
CVE-2017-18017 kernel: netfilter: use-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c
The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action. Due to the nature of the flaw, privilege escalation cannot be fully ruled out, although we believe it is unlikely.
References:
https://lkml.org/lkml/2017/4/2/13
https://marc.info/?t=149111917600001&r=1&w=2
http://patchwork.ozlabs.org/patch/746618/
An upsteam patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2638fd0f92d4397884fd
Bugzilla
CVE-2017-18017 kernel: netfilter: User-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c [fedora-all]
bugzilla·2018-01-04·CVSS 9.8
CVE-2017-18017 [CRITICAL] CVE-2017-18017 kernel: netfilter: User-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c [fedora-all]
CVE-2017-18017 kernel: netfilter: User-after-free in tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2638fd0f92d4397884fd991d8f4925cb3f081901http://lists.opensuse.org/opensuse-security-announce/2018-02/msg00008.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00013.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00015.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00038.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00047.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00030.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00067.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00070.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00072.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-04/msg00014.htmlhttp://patchwork.ozlabs.org/patch/746618/http://www.securityfocus.com/bid/102367http://www.ubuntu.com/usn/USN-3583-1http://www.ubuntu.com/usn/USN-3583-2https://access.redhat.com/errata/RHSA-2018:0676https://access.redhat.com/errata/RHSA-2018:1062https://access.redhat.com/errata/RHSA-2018:1130https://access.redhat.com/errata/RHSA-2018:1170https://access.redhat.com/errata/RHSA-2018:1319https://access.redhat.com/errata/RHSA-2018:1737https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1739765https://github.com/torvalds/linux/commit/2638fd0f92d4397884fd991d8f4925cb3f081901https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0https://lists.debian.org/debian-lts-announce/2018/05/msg00000.htmlhttps://lkml.org/lkml/2017/4/2/13https://support.f5.com/csp/article/K18352029https://usn.ubuntu.com/3583-1/https://usn.ubuntu.com/3583-2/https://www.arista.com/en/support/advisories-notices/security-advisories/4577-security-advisory-34https://www.debian.org/security/2018/dsa-4187https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.36http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2638fd0f92d4397884fd991d8f4925cb3f081901http://lists.opensuse.org/opensuse-security-announce/2018-02/msg00008.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00013.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00015.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00038.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-02/msg00047.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00030.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00067.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00070.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-03/msg00072.htmlhttp://lists.opensuse.org/opensuse-security-announce/2018-04/msg00014.htmlhttp://patchwork.ozlabs.org/patch/746618/http://www.securityfocus.com/bid/102367http://www.ubuntu.com/usn/USN-3583-1http://www.ubuntu.com/usn/USN-3583-2https://access.redhat.com/errata/RHSA-2018:0676https://access.redhat.com/errata/RHSA-2018:1062https://access.redhat.com/errata/RHSA-2018:1130https://access.redhat.com/errata/RHSA-2018:1170https://access.redhat.com/errata/RHSA-2018:1319https://access.redhat.com/errata/RHSA-2018:1737https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1739765https://github.com/torvalds/linux/commit/2638fd0f92d4397884fd991d8f4925cb3f081901https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0https://lists.debian.org/debian-lts-announce/2018/05/msg00000.htmlhttps://lkml.org/lkml/2017/4/2/13https://security.netapp.com/advisory/ntap-20250103-0010/https://support.f5.com/csp/article/K18352029https://usn.ubuntu.com/3583-1/https://usn.ubuntu.com/3583-2/https://www.arista.com/en/support/advisories-notices/security-advisories/4577-security-advisory-34https://www.debian.org/security/2018/dsa-4187https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.36
2018-01-03
Published