Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2020-12114
Linux Kernel vulnerability analysis and mitigation

Overview

A pivot_root race condition in fs/namespace.c in the Linux kernel 4.4.x before 4.4.221, 4.9.x before 4.9.221, 4.14.x before 4.14.178, 4.19.x before 4.19.119, and 5.x before 5.3 allows local users to cause a denial of service (panic) by corrupting a mountpoint reference counter. The vulnerability was discovered by Piotr Krysiuk and assigned CVE-2020-12114 in May 2020 (OSS Security).

Technical details

The vulnerability exists due to a race condition between putmountpoint() and pivotroot() operations. One thread increments mcount member of struct mountpoint under namespacesem without holding mountlock, while another thread simultaneously decrements the same mcount under mountlock without holding namespacesem. This allows unprivileged local users to trigger destruction of a mountpoint that is still in use. The CVSS v3.1 base score is 4.7 (Medium) with vector: AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

A successful exploitation of this vulnerability allows local users to cause a denial of service by triggering a kernel panic through corruption of a mountpoint reference counter (OSS Security).

Mitigation and workarounds

The vulnerability was fixed by grabbing mountlock before updating mcount in pivot_root(). The fix has been merged into all relevant longterm branches by upstream Linux kernel in versions 4.19.119, 4.14.178, 4.9.221, and 4.4.221. Users should upgrade to these or later versions (OSS Security).

Community reactions

Major Linux distributions including Ubuntu, Debian and SUSE released security updates to address this vulnerability. Ubuntu released updates across multiple versions including 20.04 LTS, 19.10, 18.04 LTS and 16.04 LTS (Ubuntu Security). NetApp also released patches for affected products (NetApp Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management