CVE-2021-3492
Vulnerability Summary
Timeline
Description
Shiftfs, an out-of-tree stacking file system included in Ubuntu Linux kernels, did not properly handle faults occurring during copy_from_user() correctly. These could lead to either a double-free situation or memory not being freed at all. An attacker could use this to cause a denial of service (kernel memory exhaustion) or gain privileges via executing arbitrary code. AKA ZDI-CAN-13562.
CVSS Metrics
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 7.2AV:L/AC:L/Au:N/C:C/I:C/A:C
EPSS Trends
Current EPSS score: 1.54%• Percentile: 74%
Techniques & Countermeasures
- CWE-401•Missing Release of Memory after Effective Lifetime
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
- CWE-415•Double Free
The product calls free() twice on the same memory address.
Affected Systems
- canonical•ubuntu_linux
< 18.04 | ≥ 18.04.1, < 20.04 | < 20.10
- ubuntu•linux
< 5.4.0-72.80
- ubuntu•linux-aws
< 5.4.0-1045.47
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1045.47~18.04.1
- ubuntu•linux-aws-fips
< 5.4.0-1069.73+fips2 | all
- ubuntu•linux-azure
all | < 5.4.0-1046.48
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1046.48~18.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 5.4.0-1073.76+fips1 | all
- ubuntu•linux-bluefield
all
- ubuntu•linux-gcp
all | < 5.4.0-1042.45
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1042.45~18.04.1
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
< 5.4.0-1067.71~20.04.1 | all
- ubuntu•linux-gke
< 5.4.0-1042.44
- ubuntu•linux-gke-5.3
< 5.3.0-1042.45
- ubuntu•linux-gke-5.4
< 5.4.0-1042.44~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1014.15
- ubuntu•linux-gkeop-5.4
< 5.4.0-1014.15~18.04.1
- ubuntu•linux-hwe
< 5.3.0-73.69
- ubuntu•linux-hwe-5.4
< 5.4.0-72.80~18.04.1
- ubuntu•linux-hwe-5.8
< 5.8.0-50.56~20.04.1
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 5.4.0-1038.39
- ubuntu•linux-oem-5.10
< 5.10.0-1022.23
- ubuntu•linux-oem-5.6
< 5.6.0-1054.58
- ubuntu•linux-oracle
< 5.4.0-1043.46
- ubuntu•linux-oracle-5.0
all
- ubuntu•linux-oracle-5.3
all
- ubuntu•linux-oracle-5.4
< 5.4.0-1043.46~18.04.1
- ubuntu•linux-raspi
< 5.4.0-1034.37
- ubuntu•linux-raspi-5.4
< 5.4.0-1034.37~18.04.1
- ubuntu•linux-raspi-realtime
all
- ubuntu•linux-raspi2
all
- ubuntu•linux-raspi2-5.3
< 5.3.0-1039.41
- ubuntu•linux-realtime
all
- ubuntu•linux-riscv-5.8
< 5.8.0-22.24~20.04.1
- ubuntu•linux_kernel
≥ 5.8 kernel, < 5.8.0-50.56 | ≥ 5.4 kernel, < 5.4.0-72.80
References (9)
- https://www.openwall.com/lists/oss-security/2021/04/16/2
- https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?id=8fee52ab9da87d82bc6de9ebb3480fff9b4d53e6
- https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?id=25c891a949bf918b59cbc6e4932015ba4c35c333
- https://ubuntu.com/security/notices/USN-4917-1
- https://www.zerodayinitiative.com/advisories/ZDI-21-422/
- http://packetstormsecurity.com/files/162614/Kernel-Live-Patch-Security-Notice-LSN-0077-1.html
- https://ubuntu.com/security/CVE-2021-3492
- https://ubuntu.com/security/notices/USN-4915-1
- https://www.cve.org/CVERecord?id=CVE-2021-3492