CVE-2019-19813 Use after free in n/a

Medium 5.5 Published Updated

A use-after-free in the Linux kernel's Btrfs filesystem allows local attackers to execute arbitrary code or escalate privileges via a crafted image.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-19813?

CVE-2019-19813 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 17 Dec 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In the Linux kernel 5.0.21, mounting a crafted btrfs filesystem image, performing some operations, and then making a syncfs system call can lead to a use-after-free in __mutex_lock in kernel/locking/mutex.c. This is related to mutex_can_spin_on_owner in kernel/locking/mutex.c, __btrfs_qgroup_free_meta in fs/btrfs/qgroup.c, and btrfs_insert_delayed_items in fs/btrfs/delayed-inode.c.

Weakness: CWE-416

Which versions are affected by CVE-2019-19813?

It affects 13 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Linux kernel, Netapp Active Iq Unified Manager, Netapp Aff A400 Firmware, Netapp Aff A700s Firmware and 7 more.

How do I fix CVE-2019-19813?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2019-19813 being exploited?

There is no known exploitation of CVE-2019-19813 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-19813, GHSA-r82f-4c78-r455, UBUNTU-CVE-2019-19813.

Is CVE-2019-19813 in your software?

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

Check your SBOMs for free