Skip to content
OpenAdvisories
Unscored Public exploit CVE-2017-16939 EUVD-2017-8108GHSA-87xr-wmm8-4mx3

The XFRM dump policy implementation in net/xfrm/xfrm_user.c in the Linux kernel before 4.13.11 allows local users to gain privileges or cau…

Published Nov 24, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

The XFRM dump policy implementation in net/xfrm/xfrm_user.c in the Linux kernel before 4.13.11 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted SO_RCVBUF setsockopt system call in conjunction with XFRM_MSG_GETPOLICY Netlink messages.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.13.13-1 —
Debian 13 linux 4.13.13-1 —
Debian 12 linux 4.13.13-1 —
Debian 8 linux 3.16.51-3+deb8u1 DSA-4082-1
Debian 7 linux 3.2.96-1 DLA-1200-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +2 No fix yet —
Ubuntu 20.04 LTS linux-gke +3 No fix yet —
Ubuntu 16.04 LTS linux 4.4.0-103.126 USN-3509-1
Ubuntu 16.04 LTS linux-aws 4.4.0-1043.52 USN-3509-1
Ubuntu 16.04 LTS linux-azure 4.11.0-1016.16 USN-3511-1
Ubuntu 16.04 LTS linux-euclid 4.4.0-9020.21 —
Ubuntu 16.04 LTS linux-gcp 4.13.0-1002.5 USN-3507-2
Ubuntu 16.04 LTS linux-hwe 4.13.0-32.35~16.04.1 USN-3508-2
Ubuntu 16.04 LTS linux-kvm 4.4.0-1012.17 USN-3509-1
Ubuntu 16.04 LTS linux-oem 4.13.0-1010.11 —
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1079.87 USN-3509-1
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1081.86 USN-3509-1
Ubuntu 14.04 LTS linux 3.13.0-137.186 USN-3510-1
Ubuntu 14.04 LTS linux-aws 4.4.0-1005.5 USN-3509-2
Ubuntu 14.04 LTS linux-lts-xenial 4.4.0-103.126~14.04.1 USN-3509-2
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1005.5 —
ReleasePackageFixed inAdvisory
RHEL 7 kernel-alt +1 4.14.0-49.el7a RHSA-2018:0654
RHEL 7 kernel-rt +10 3.10.0-862.2.3.rt56.806.el7 RHSA-2018:1355
RHEL 7 perf +18 3.10.0-862.2.3.el7 RHSA-2018:1318, RHSA-2018:0654
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.4 EUS perf +17 3.10.0-693.47.2.el7 RHSA-2019:1170
Red Hat MRG 2 kernel-rt +10 1:3.10.0-693.47.2.rt56.641.el6rt RHSA-2019:1190
ReleasePackageFixed inAdvisory
SLES 12 SP3 kernel-azure +2 4.4.170-4.22.1 SUSE-SU-2019:0148-1
SLES 12 SP3 kernel-docs 4.4.92-6.30.2 SUSE-SU-2017:3225-1
SLES 12 SP3 kernel-syms +3 4.4.92-6.30.1 SUSE-SU-2017:3225-1
SLES 12 SP2 kernel-docs 4.4.90-92.50.3 SUSE-SU-2017:3226-1
SLES 12 SP2 kernel-syms +3 4.4.90-92.50.1 SUSE-SU-2017:3226-1
SLES 12 SP1 kernel-xen +3 3.12.74-60.64.66.1 SUSE-SU-2017:3210-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_10 12-2.1 SUSE-SU-2017:3321-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_11 11-2.1 SUSE-SU-2017:3323-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_12 10-2.1 SUSE-SU-2018:0274-1, SUSE-SU-2017:3316-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_13 9-2.1 SUSE-SU-2018:0276-1, SUSE-SU-2017:3340-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_14 8-2.1 SUSE-SU-2018:0275-1, SUSE-SU-2017:3332-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_15 +1 7-2.1 SUSE-SU-2018:0252-1, SUSE-SU-2018:0238-1, SUSE-SU-2017:3337-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_17 6-2.1 SUSE-SU-2018:0253-1, SUSE-SU-2017:3336-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_18 +2 5-2.1 SUSE-SU-2018:0268-1, SUSE-SU-2018:0266-1, SUSE-SU-2018:0237-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_21 4-2.1 SUSE-SU-2018:0271-1, SUSE-SU-2017:3322-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_22 2-2.1 SUSE-SU-2018:0270-1, SUSE-SU-2017:3338-1
SLES 12 SP1 kgraft-patch-SLE12-SP1_Update_23 1-2.1 SUSE-SU-2017:3210-1
SLES 12 kernel-ec2 +4 3.12.61-52.106.1 SUSE-SU-2017:3249-1, SUSE-SU-2017:3210-1
SLES 12 kgraft-patch-SLE12_Update_17 +1 11-2.1 SUSE-SU-2017:3304-1, SUSE-SU-2017:3289-1
SLES 12 kgraft-patch-SLE12_Update_19 10-2.1 SUSE-SU-2018:0265-1, SUSE-SU-2017:3308-1
SLES 12 kgraft-patch-SLE12_Update_20 8-2.1 SUSE-SU-2018:0242-1, SUSE-SU-2017:3287-1
SLES 12 kgraft-patch-SLE12_Update_21 +1 7-2.1 SUSE-SU-2018:0245-1, SUSE-SU-2018:0244-1, SUSE-SU-2017:3302-1
SLES 12 kgraft-patch-SLE12_Update_23 6-2.1 SUSE-SU-2018:0249-1, SUSE-SU-2017:3309-1
SLES 12 kgraft-patch-SLE12_Update_24 +2 5-2.1 SUSE-SU-2018:0250-1, SUSE-SU-2018:0241-1, SUSE-SU-2018:0240-1
SLES 12 kgraft-patch-SLE12_Update_27 4-2.1 SUSE-SU-2018:0239-1, SUSE-SU-2017:3305-1
SLES 12 kgraft-patch-SLE12_Update_28 2-2.1 SUSE-SU-2018:0251-1, SUSE-SU-2017:3307-1
SLES 12 kgraft-patch-SLE12_Update_29 1-5.1 SUSE-SU-2017:3249-1
SLES 11 SP4 kernel-docs 3.0.101-108.21.2 SUSE-SU-2018:0011-1
SLES 11 SP4 kernel-ec2 +8 3.0.101-108.21.1 SUSE-SU-2018:0011-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP3 kernel-ec2 +7 3.0.101-0.47.106.11.1 SUSE-SU-2018:0040-1
SLES for SAP 12 SP3 kernel-azure +2 4.4.170-4.22.1 SUSE-SU-2019:0148-1
SLES for SAP 12 SP3 kernel-syms +2 4.4.92-6.30.1 SUSE-SU-2017:3225-1
SLES for SAP 12 SP2 kernel-syms +2 4.4.90-92.50.1 SUSE-SU-2017:3226-1
SLES for SAP 12 SP1 kernel-xen +3 3.12.74-60.64.66.1 SUSE-SU-2017:3210-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_10 12-2.1 SUSE-SU-2017:3321-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_11 11-2.1 SUSE-SU-2017:3323-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_12 10-2.1 SUSE-SU-2018:0274-1, SUSE-SU-2017:3316-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_13 9-2.1 SUSE-SU-2018:0276-1, SUSE-SU-2017:3340-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_14 8-2.1 SUSE-SU-2018:0275-1, SUSE-SU-2017:3332-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_15 +1 7-2.1 SUSE-SU-2018:0252-1, SUSE-SU-2018:0238-1, SUSE-SU-2017:3337-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_17 6-2.1 SUSE-SU-2018:0253-1, SUSE-SU-2017:3336-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_18 +2 5-2.1 SUSE-SU-2018:0268-1, SUSE-SU-2018:0266-1, SUSE-SU-2018:0237-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_21 4-2.1 SUSE-SU-2018:0271-1, SUSE-SU-2017:3322-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_22 2-2.1 SUSE-SU-2018:0270-1, SUSE-SU-2017:3338-1
SLES for SAP 12 SP1 kgraft-patch-SLE12-SP1_Update_23 1-2.1 SUSE-SU-2017:3210-1
SLES for SAP 11 SP4 kernel-ec2 +8 3.0.101-108.21.1 SUSE-SU-2018:0011-1
SLE Real Time 12 SP3 kernel-rt +1 4.4.170-3.32.2 SUSE-SU-2019:0320-1
SLE Real Time 12 SP3 kernel-syms-rt +1 4.4.170-3.32.1 SUSE-SU-2019:0320-1
SLE Real Time 12 SP2 kernel-rt +3 4.4.104-24.1 SUSE-SU-2018:0213-1
SLE Real Time 11 SP4 kernel-rt +3 3.0.101.rt130-69.14.1 SUSE-SU-2018:0180-1
SLE Live Patching 12 SP3 kgraft-patch-SLE12-SP3_Update_1 4-2.1 SUSE-SU-2018:0346-1, SUSE-SU-2017:3319-1
SLE Live Patching 12 SP3 kgraft-patch-SLE12-SP3_Update_2 +1 3-2.1 SUSE-SU-2018:0347-1, SUSE-SU-2018:0340-1, SUSE-SU-2017:3324-1
SLE Live Patching 12 SP3 kgraft-patch-SLE12-SP3_Update_4 2-2.1 SUSE-SU-2018:0345-1, SUSE-SU-2017:3317-1
SLE Live Patching 12 SP3 kgraft-patch-SLE12-SP3_Update_5 1-6.1 SUSE-SU-2017:3225-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_11 +1 5-2.1 SUSE-SU-2018:0280-1, SUSE-SU-2018:0272-1, SUSE-SU-2017:3295-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_13 4-2.1 SUSE-SU-2018:0277-1, SUSE-SU-2017:3297-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_14 2-2.1 SUSE-SU-2018:0281-1, SUSE-SU-2017:3285-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_15 1-4.1 SUSE-SU-2017:3226-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_2 +2 11-2.1 SUSE-SU-2017:3306-1, SUSE-SU-2017:3292-1, SUSE-SU-2017:3288-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_5 9-2.1 SUSE-SU-2018:0297-1, SUSE-SU-2017:3290-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_6 8-2.1 SUSE-SU-2018:0296-1, SUSE-SU-2017:3291-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_7 +1 7-2.1 SUSE-SU-2018:0273-1, SUSE-SU-2018:0269-1, SUSE-SU-2017:3310-1
SLE Live Patching 12 kgraft-patch-SLE12-SP2_Update_9 +1 6-2.1 SUSE-SU-2018:0282-1, SUSE-SU-2018:0278-1, SUSE-SU-2017:3300-1
SUSE OpenStack Cloud 6 kernel-xen +3 3.12.74-60.64.66.1 SUSE-SU-2017:3210-1
SUSE OpenStack Cloud 6 kgraft-patch-SLE12-SP1_Update_23 1-2.1 SUSE-SU-2017:3210-1
SUSE Linux Enterprise Point of Sale 11 SP3 kernel-ec2 +6 3.0.101-0.47.106.11.1 SUSE-SU-2018:0040-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perf +7 4.14.42-61.37.amzn2 ALAS2-2018-1023

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 kernel-uek +5 4.1.12-124.16.2.el7uek ELSA-2018-4131
Oracle Linux 7 perf +11 3.10.0-862.2.3.el7 ELSA-2018-1318

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 50

References