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

Medium 4.4 Published Updated

A use-after-free in the Linux kernel allows attackers to execute arbitrary code or escalate privileges by mounting a crafted btrfs image twice.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-19318?

CVE-2019-19318 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 27 Nov 2019. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel 5.3.11, mounting a crafted btrfs image twice can cause an rwsem_down_write_slowpath use-after-free because (in rwsem_can_spin_on_owner in kernel/locking/rwsem.c) rwsem_owner_flags returns an already freed pointer,

Weakness: CWE-416

Which versions are affected by CVE-2019-19318?

It affects 14 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 8 more.

How do I fix CVE-2019-19318?

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-19318 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-19318, GHSA-r6gp-mqm3-8pv6, UBUNTU-CVE-2019-19318.

Is CVE-2019-19318 in your software?

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

Check your SBOMs for free