CVE-2019-15794CWE-672

Reference counting error in overlayfs/shiftfs error path when used in conjuction with aufs

High · published April 23, 2020

CVSS v3.1
7.1
EPSS
1%
Percentile
66.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01158 · 66.8th percentile
Weakness
CWE-672 · Operation on a Resource after Expiration or Release
Published
2020-04-23T23:55Z
EPSS history
Timeline
  • 23 APR 23:55Z
    Reference counting error in overlayfs/shiftfs error path when used in conjuction with aufs
    cvelistv5