CVE-2023-3111 Use after free in Kernel

High 7.8 Published Updated

A use-after-free flaw in the Linux Kernel btrfs filesystem allows local attackers to potentially execute code or escalate privileges via specific ioctl calls.

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-2023-3111?

CVE-2023-3111 is a high-severity use after free vulnerability in Debian Debian Linux, published on 5 Jun 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A use after free vulnerability was found in prepare_to_relocate in fs/btrfs/relocation.c in btrfs in the Linux Kernel. This possible flaw can be triggered by calling btrfs_ioctl_balance() before calling btrfs_ioctl_defrag().

Weakness: CWE-416

Which versions are affected by CVE-2023-3111?

It affects 7 products.

Products include Debian Debian Linux, Linux kernel, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware and 1 more.

How do I fix CVE-2023-3111?

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-2023-3111 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-27087, DEBIAN-CVE-2023-3111, GHSA-7cgf-2cw6-4pvm, UBUNTU-CVE-2023-3111.

Is CVE-2023-3111 in your software?

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

Check your SBOMs for free