CVE-2021-45868 Use after free in n/a

Medium 5.5 Published Updated

A use-after-free vulnerability in the Linux kernel quota tree allows attackers with local access to potentially execute arbitrary code or escalate privileges via a corrupted quota file.

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-2021-45868?

CVE-2021-45868 is a medium-severity use after free vulnerability in Linux kernel, published on 18 Mar 2022. 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.15.3, fs/quota/quota_tree.c does not validate the block number in the quota tree (on disk). This can, for example, lead to a kernel/locking/rwsem.c use-after-free if there is a corrupted quota file.

Weakness: CWE-416

Which versions are affected by CVE-2021-45868?

It affects 9 products.

Products include Linux kernel, Netapp H300e Firmware, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500e Firmware and 3 more.

How do I fix CVE-2021-45868?

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-2021-45868 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-45868, GHSA-99wm-68jg-pfgc, UBUNTU-CVE-2021-45868.

Is CVE-2021-45868 in your software?

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

Check your SBOMs for free