CVE-2019-15791 Reference count underflow in shiftfs

High 7.1 Published Updated

A reference count underflow in Ubuntu's shiftfs allows attackers to cause denial of service or potentially escalate privileges via improper file descriptor handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-15791?

CVE-2019-15791 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 23 Apr 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In shiftfs, a non-upstream patch to the Linux kernel included in the Ubuntu 5.0 and 5.3 kernel series, shiftfs_btrfs_ioctl_fd_replace() installs an fd referencing a file from the lower filesystem without taking an additional reference to that file. After the btrfs ioctl completes this fd is closed, which then puts a reference to that file, leading to a refcount underflow.

Weakness: CWE-191, CWE-672

Which versions are affected by CVE-2019-15791?

It affects 2 products.

Products include Canonical Ubuntu Linux, Linux kernel.

How do I fix CVE-2019-15791?

Apply the vendor's patch.

Is CVE-2019-15791 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-15791 exists.

Public exploit code: 1 Exploit-DB entry.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-5fx5-7qgj-cmg7, UBUNTU-CVE-2019-15791.

Is CVE-2019-15791 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free