7.2
CVSSv2

CVE-2019-15794

Published: 24/04/2020 Updated: 26/05/2020
CVSS v2 Base Score: 7.2 | Impact Score: 10 | Exploitability Score: 3.9
CVSS v3 Base Score: 6.7 | Impact Score: 5.9 | Exploitability Score: 0.8
VMScore: 725
Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Summary

Overlayfs in the Linux kernel and shiftfs, a non-upstream patch to the Linux kernel included in the Ubuntu 5.0 and 5.3 kernel series, both replace vma->vm_file in their mmap handlers. On error the original value is not restored, and the reference is put for the file to which vm_file points. On upstream kernels this is not an issue, as no callers dereference vm_file following after call_mmap() returns an error. However, the aufs patchs change mmap_region() to replace the fput() using a local variable with vma_fput(), which will fput() vm_file, leading to a refcount underflow.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

linux linux kernel 5.0

linux linux kernel 5.3

canonical ubuntu linux 18.04

canonical ubuntu linux 19.10

Exploits

Tested on 1910 Ubuntu's aufs kernel patch includes the following change (which I interestingly can't see in the AUFS code at githubcom/sfjro/aufs5-linux/blob/master/mm/mmapc): ================================================================== +#define vma_fput(vma) vma_do_fput(vma, __func__, __LINE__) [] @@ -1847,8 ...
Ubuntu suffers from an issue where ubuntu-aufs-modified mmap_region() breaks refcounting in overlayfs/shiftfs error path ...