CVE-2023-5717 Out-of-bounds write in Linux kernel's Linux Kernel Performance Events (perf) component

High 7.8 Published Updated

A heap out-of-bounds write in the Linux kernel perf component allows local attackers to achieve privilege escalation and execute arbitrary code.

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-5717?

CVE-2023-5717 is a high-severity memory corruption vulnerability in Linux kernel, published on 25 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A heap out-of-bounds write vulnerability in the Linux kernel's Linux Kernel Performance Events (perf) component can be exploited to achieve local privilege escalation.

If perf_read_group() is called while an event's sibling_list is smaller than its child's sibling_list, it can increment or write to memory locations outside of the allocated buffer.

We recommend upgrading past commit 32671e3799ca2e4590773fd0e63aaa4229e50c06.

Weakness: CWE-787

Which versions are affected by CVE-2023-5717?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-5717?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-5717 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Linux kernel vulnerabilities

Sources

Also known as AZL-31774, AZL-31814, BELL-CVE-2023-5717, DEBIAN-CVE-2023-5717, GHSA-gv6g-gf42-rjg7, UBUNTU-CVE-2023-5717.

Is CVE-2023-5717 in your software?

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

Check your SBOMs for free