{"id":"CVE-2019-15794","published":"2020-04-23T23:55:25Z","modified":"2024-09-16T19:52:18Z","title":"Reference counting error in overlayfs/shiftfs error path when used in conjuction with aufs","vendor":"Ubuntu","product":"Linux kernel","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01158,"percentile":0.66984,"provenance":"source"},"cwes":[{"id":"CWE-672","name":"Operation on a Resource after Expiration or Release"}],"references":[{"url":"https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=270d16ae48a4dbf1c7e25e94cc3e38b4bea37635","tags":["x_refsource_MISC"]},{"url":"https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=ef81780548d20a786cc77ed4203fca146fd81ce3","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/usn/usn-4208-1","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/usn/usn-4209-1","tags":["x_refsource_MISC"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":13.4},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-11-20"},"first":{"date":"2019-11-20","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/47692"},"provenance":"source"},"vendorSlug":"ubuntu","affectedVersions":[{"vendor":"Ubuntu","product":"Linux kernel","versions":[">= 5.3 kernel, < 5.3.0-24.26",">= 5.0 kernel, < 5.0.0-37.40"]}],"euvd":{"id":"EUVD-2019-6717","exploited":false,"provenance":"source"},"exploits":[{"id":47692,"url":"https://www.exploit-db.com/exploits/47692","title":"Ubuntu 19.10 - ubuntu-aufs-modified mmap_region() Breaks Refcounting in overlayfs/shiftfs Error Path","date":"2019-11-20","verified":true,"provenance":"source"}]}