Local code execution via mmap reference-count underflow
Published Apr 23, 2020 · Updated Sep 16, 2024
Reference-counting error in Ubuntu Linux Kernel 5.0 and 5.3 allows local users to crash the system or execute arbitrary code. The overlayfs and shiftfs mmap handlers replace vma->vm_file but fail to restore it after an error, and AUFS then calls vma_fput on the replacement, underflowing its reference count. Exploitation requires local access and the Ubuntu-specific AUFS interaction; upstream kernels without that caller do not dereference vm_file on the error path.
Summary
What happened
Reference-counting error in Ubuntu Linux Kernel 5.0 and 5.3 allows local users to crash the system or execute arbitrary code. The overlayfs and shiftfs mmap handlers replace vma->vm_file but fail to restore it after an error, and AUFS then calls vma_fput on the replacement, underflowing its reference count. Exploitation requires local access and the Ubuntu-specific AUFS interaction; upstream kernels without that caller do not dereference vm_file on the error path.
The record
- CVE
- CVE-2019-15794
- Published
- Apr 23, 2020
- Updated
- Sep 16, 2024
- Vendor
- Linux Foundation
- Product
- Linux Kernel
- Classifications
- CWE-672, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 23, 2020CVE publishedPublication date reported by the CVE source.
- Sep 16, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.0 kernel <5.0.0-37.40
- Affected versionversion=5.3 kernel <5.3.0-24.26
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo