5.1

CVE-2020-16120: Unprivileged overlay + shiftfs read access

Modified
AliasesUBUNTU-CVE-2020-16120DEBIAN-CVE-2020-16120
Published 10-02-2021Last modified 16-09-2024

Vulnerability summary

CVE-2020-16120 is a medium (CVSS 5.1) Incorrect Privilege Assignment vulnerability in canonical ubuntu_linux. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 35.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.41%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 18 · Related 17

Timeline

  1. 10-02-2021
    PublishedVulnerability first disclosed.
  2. 16-09-2024
    Last modifiedVulnerability information updated.

Description

Overlayfs did not properly perform permission checking when copying up files in an overlayfs and could be exploited from within a user namespace, if, for example, unprivileged user namespaces were allowed. It was possible to have a file not readable by an unprivileged user to be copied to a mountpoint controlled by the user, like a removable device. This was introduced in kernel version 4.19 by commit d1d04ef ("ovl: stack file ops"). This was fixed in kernel version 5.8 by commits 56230d9 ("ovl: verify permissions in ovl_path_open()"), 48bd024 ("ovl: switch to mounter creds in readdir") and 05acefb ("ovl: check permission to open real file"). Additionally, commits 130fdbc ("ovl: pass correct flags for opening real directory") and 292f902 ("ovl: call secutiry hook in ovl_real_ioctl()") in kernel 5.8 might also be desired or necessary. These additional commits introduced a regression in overlay mounts within user namespaces which prevented access to files with ownership outside of the user namespace. This regression was mitigated by subsequent commit b6650da ("ovl: do not fail because of O_NOATIMEi") in kernel 5.11.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.41%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.41% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu50 products
  • linuxAll versions (No fix recorded) | < 4.15.0-121.123 | < 5.4.0-51.56
  • linux-awsAll versions (No fix recorded) | < 4.15.0-1086.91 | < 5.4.0-1028.29
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.3All versions (No fix recorded)
  • linux-aws-5.4< 5.4.0-1028.29~18.04.1
Canonical1 product
Debian1 product
  • linux< 5.8.7-1
Linux1 product
Linux kernel1 product

5 vendors · 54 products

References

19 links
Show all 19 references