CVE-2023-52614 PM / devfreq: Fix buffer overflow in trans_stat_show

High 7.8 Published Updated

A buffer overflow in the Linux kernel devfreq subsystem allows attackers to cause denial of service or potentially execute code via crafted transition statistics.

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

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

Official description

In the Linux kernel, the following vulnerability has been resolved:

PM / devfreq: Fix buffer overflow in trans_stat_show

Fix buffer overflow in trans_stat_show().

Convert simple snprintf to the more secure scnprintf with size of PAGE_SIZE.

Add condition checking if we are exceeding PAGE_SIZE and exit early from loop. Also add at the end a warning that we exceeded PAGE_SIZE and that stats is disabled.

Return -EFBIG in the case where we don't have enough space to write the full transition table.

Also document in the ABI that this function can return -EFBIG error.

Weakness: CWE-120

Which versions are affected by CVE-2023-52614?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52614?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52614, DEBIAN-CVE-2023-52614, GHSA-pvf7-pgpm-3q43, UBUNTU-CVE-2023-52614.

Is CVE-2023-52614 in your software?

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

Check your SBOMs for free