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

Medium 6.5 Published Updated

A use-after-free in the Linux kernel ext4 filesystem allows attackers to cause a slab-out-of-bounds write via a crafted image, potentially leading to code execution or privilege escalation.

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

What is CVE-2019-19319?

CVE-2019-19319 is a medium-severity use after free vulnerability in Linux kernel, published on 27 Nov 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 before 5.2, a setxattr operation, after a mount of a crafted ext4 image, can cause a slab-out-of-bounds write access because of an ext4_xattr_set_entry use-after-free in fs/ext4/xattr.c when a large old_size value is used in a memset call, aka CID-345c0dbf3a30.

Weakness: CWE-787, CWE-416

Which versions are affected by CVE-2019-19319?

It affects 3 products.

Products include Linux kernel, Opensuse Leap, Redhat Enterprise Linux.

How do I fix CVE-2019-19319?

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

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-19319, GHSA-hj7c-hmhf-f2jq, UBUNTU-CVE-2019-19319.

Is CVE-2019-19319 in your software?

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

Check your SBOMs for free