# CVE-2019-15794: Reference counting error in overlayfs/shiftfs error path when used in conjuction with aufs

- Severity: High 7.1 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Published: 2020-04-23T23:55:25.039Z
- Modified: 2026-06-17T02:21:05.330Z
- Weaknesses: CWE-672
- Assigned by: canonical

## Description

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.

(As written by CVE List.)

## Affected

- Ubuntu Linux kernel: from 5.3 kernel before 5.3.0-24.26; from 5.0 kernel before 5.0.0-37.40
- linux linux_kernel: 5.0; 5.3
- canonical ubuntu_linux: 18.04; 19.10

## Every score

- canonical: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=270d16ae48a4dbf1c7e25e94cc3e38b4bea37635> (mailing-list, patch, third-party-advisory)
- <https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=ef81780548d20a786cc77ed4203fca146fd81ce3> (mailing-list, patch, third-party-advisory)
- <https://usn.ubuntu.com/usn/usn-4208-1> (third-party-advisory)
- <https://usn.ubuntu.com/usn/usn-4209-1> (third-party-advisory)

## Sources

- CVE List: [CVE-2019-15794](https://www.cve.org/CVERecord?id=CVE-2019-15794), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2019-15794](https://nvd.nist.gov/vuln/detail/CVE-2019-15794), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-15794 · Whole record: https://cve.day/CVE-2019-15794.json · Rebuilt by cve.day 2026-11-25T22:57:49.834Z
