CVE-2018-16884 Use after free in kernel:

Medium 6.5 Published Updated

A malicious container user can trigger a use-after-free in the Linux kernel NFS subsystem, causing a system panic and potential privilege escalation.

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-2018-16884?

CVE-2018-16884 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 18 Dec 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in the Linux kernel's NFS41+ subsystem. NFS41+ shares mounted in different network namespaces at the same time can make bc_svc_process() use wrong back-channel IDs and cause a use-after-free vulnerability. Thus a malicious container user can cause a host kernel memory corruption and a system panic. Due to the nature of the flaw, privilege escalation cannot be fully ruled out.

Weakness: CWE-416

Which versions are affected by CVE-2018-16884?

It affects 5 products.

Linux distribution packages (40)
kgraft-patch-SLE12-SP3_Update_10 SUSE:Linux Enterprise Live Patching 12 SP3All versions10-2.1
kgraft-patch-SLE12-SP3_Update_11 SUSE:Linux Enterprise Live Patching 12 SP3All versions10-2.1
kgraft-patch-SLE12-SP3_Update_12 SUSE:Linux Enterprise Live Patching 12 SP3All versions8-2.1
kgraft-patch-SLE12-SP3_Update_8 SUSE:Linux Enterprise Live Patching 12 SP3All versions11-2.1
kgraft-patch-SLE12-SP3_Update_9 SUSE:Linux Enterprise Live Patching 12 SP3All versions11-2.1
kgraft-patch-SLE12-SP4_Update_0 SUSE:Linux Enterprise Live Patching 12 SP4All versions3-2.7.2
kgraft-patch-SLE12-SP4_Update_1 SUSE:Linux Enterprise Live Patching 12 SP4All versions2-2.1
kernel-livepatch-SLE15_Update_0 SUSE:Linux Enterprise Live Patching 15All versions8-22.2
kernel-livepatch-SLE15_Update_1 SUSE:Linux Enterprise Live Patching 15All versions7-2.1
kernel-livepatch-SLE15_Update_2 SUSE:Linux Enterprise Live Patching 15All versions7-2.1
kernel-livepatch-SLE15_Update_3 SUSE:Linux Enterprise Live Patching 15All versions5-2.1
kernel-livepatch-SLE15_Update_4 SUSE:Linux Enterprise Live Patching 15All versions4-2.1
kernel-livepatch-SLE15_Update_5 SUSE:Linux Enterprise Live Patching 15All versions4-2.1
kernel-livepatch-SLE15_Update_6 SUSE:Linux Enterprise Live Patching 15All versions3-2.1
kernel-livepatch-SLE15_Update_7 SUSE:Linux Enterprise Live Patching 15All versions2-2.1
kgraft-patch-SLE12-SP1_Update_25 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions11-2.1
kgraft-patch-SLE12-SP1_Update_26 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions11-2.1
kgraft-patch-SLE12-SP1_Update_27 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions9-2.1
kgraft-patch-SLE12-SP1_Update_28 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions8-2.1
kgraft-patch-SLE12-SP1_Update_29 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions8-2.1
kgraft-patch-SLE12-SP1_Update_30 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions7-2.1
kgraft-patch-SLE12-SP1_Update_31 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions5-2.1
kgraft-patch-SLE12-SP1_Update_32 SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions5-2.1
kgraft-patch-SLE12-SP2_Update_18 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions11-2.1
kgraft-patch-SLE12-SP2_Update_19 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions11-2.1
kgraft-patch-SLE12-SP2_Update_20 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions10-2.1
kgraft-patch-SLE12-SP2_Update_21 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions9-2.1
kgraft-patch-SLE12-SP2_Update_22 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions9-2.1
kgraft-patch-SLE12-SP2_Update_23 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions6-2.1
kgraft-patch-SLE12-SP2_Update_24 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions5-2.1
kgraft-patch-SLE12-SP2_Update_25 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions4-2.1
kgraft-patch-SLE12-SP2_Update_26 SUSE:Linux Enterprise Server 12 SP2-LTSSAll versions3-2.1
kgraft-patch-SLE12_Update_31 SUSE:Linux Enterprise Server 12-LTSSAll versions12-2.1
kgraft-patch-SLE12_Update_32 SUSE:Linux Enterprise Server 12-LTSSAll versions12-2.1
kgraft-patch-SLE12_Update_33 SUSE:Linux Enterprise Server 12-LTSSAll versions11-2.1
kgraft-patch-SLE12_Update_34 SUSE:Linux Enterprise Server 12-LTSSAll versions9-2.1
kgraft-patch-SLE12_Update_35 SUSE:Linux Enterprise Server 12-LTSSAll versions8-2.1
kgraft-patch-SLE12_Update_36 SUSE:Linux Enterprise Server 12-LTSSAll versions8-2.1
kgraft-patch-SLE12_Update_37 SUSE:Linux Enterprise Server 12-LTSSAll versions7-2.1
kgraft-patch-SLE12_Update_38 SUSE:Linux Enterprise Server 12-LTSSAll versions5-2.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Linux kernel, Redhat Enterprise Linux, Redhat Enterprise Mrg.

How do I fix CVE-2018-16884?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-16884 being exploited?

There is no known exploitation of CVE-2018-16884 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-16884, GHSA-cxqg-5c27-qx45, SUSE-SU-2019:0236-1, SUSE-SU-2019:0298-1, SUSE-SU-2019:0326-1, SUSE-SU-2019:0356-1 and 1 more.

Is CVE-2018-16884 in your software?

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

Check your SBOMs for free