CVE-2017-1000112 Memory corruption in n/a

High 7.0 Published Updated

A race condition in the Linux kernel network stack allows memory corruption via UFO packet handling, potentially enabling local privilege escalation or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-1000112?

CVE-2017-1000112 is a high-severity memory corruption vulnerability in Linux kernel, published on 4 Oct 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. When building a UFO packet with MSG_MORE __ip_append_data() calls ip_ufo_append_data() to append. However in between two send() calls, the append path can be switched from UFO to non-UFO one, which leads to a memory corruption. In case UFO packet lengths exceeds MTU, copy = maxfraglen - skb->len becomes negative on the non-UFO path and the branch to allocate new skb is taken. This triggers fragmentation and computation of fraggap = skb_prev->len - maxfraglen. Fraggap can exceed MTU, causing copy = datalen - transhdrlen - fraggap to become negative. Subsequently skb_copy_and_csum_bits() writes out-of-bounds. A similar issue is present in IPv6 code. The bug was introduced in e89e9cf539a2 ("[IPv4/IPv6]: UFO Scatter-gather approach") on Oct 18 2005.

Weakness: CWE-362

Which versions are affected by CVE-2017-1000112?

It affects 1 product.

Linux distribution packages (40)
kernel Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-PAE Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-PAE-debuginfo Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-PAE-devel Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-debug Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-debug-debuginfo Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-debug-devel Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-debuginfo Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-debuginfo-common Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-devel Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-doc Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-headers Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-xen Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-xen-debuginfo Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel-xen-devel Red Hat:rhel_aus:5.9All versions0:2.6.18-348.44.1.el5
kernel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-PAE Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-PAE-debuginfo Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-PAE-devel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-debug Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-debug-debuginfo Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-debug-devel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-debuginfo Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-debuginfo-common Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-devel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-doc Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-headers Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-kdump Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-kdump-debuginfo Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-kdump-devel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-xen Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-xen-debuginfo Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kernel-xen-devel Red Hat:rhel_els:5All versions0:2.6.18-438.el5
kgraft-patch-SLE12-SP2_Update_0 SUSE:Linux Enterprise Live Patching 12All versions9-18.10.1
kgraft-patch-SLE12-SP2_Update_1 SUSE:Linux Enterprise Live Patching 12All versions9-2.1
kgraft-patch-SLE12-SP2_Update_10 SUSE:Linux Enterprise Live Patching 12All versions3-2.1
kgraft-patch-SLE12-SP2_Update_11 SUSE:Linux Enterprise Live Patching 12All versions2-2.1
kgraft-patch-SLE12-SP2_Update_12 SUSE:Linux Enterprise Live Patching 12All versions2-2.1
kgraft-patch-SLE12-SP2_Update_2 SUSE:Linux Enterprise Live Patching 12All versions8-2.1
kgraft-patch-SLE12-SP2_Update_3 SUSE:Linux Enterprise Live Patching 12All versions8-2.1

Products include Linux kernel.

How do I fix CVE-2017-1000112?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2017-1000112 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-1000112 exists.

Public exploit code: 1 Metasploit module, 4 Exploit-DB entries and 5 proofs of concept on GitHub.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-1000112, GHSA-r7cm-47vv-77vj, RHSA-2019:1931, RHSA-2019:1932, SUSE-SU-2017:2423-1, SUSE-SU-2017:2424-1 and 31 more.

Is CVE-2017-1000112 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free