CVE-2023-54312 samples/bpf: Fix buffer overflow in tcp_basertt

Not scored Published Updated

A buffer overflow in the Linux kernel's tcp_basertt sample allows local attackers to execute arbitrary code or cause a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54312?

CVE-2023-54312 is a memory corruption vulnerability in Linux, published on 30 Dec 2025. 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:

samples/bpf: Fix buffer overflow in tcp_basertt

Using sizeof(nv) or strlen(nv)+1 is correct.

Which versions are affected by CVE-2023-54312?

How do I fix CVE-2023-54312?

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

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

Sources

Also known as BELL-CVE-2023-54312, DEBIAN-CVE-2023-54312, GHSA-p36c-jp35-qgrh, UBUNTU-CVE-2023-54312.

Is CVE-2023-54312 in your software?

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

Check your SBOMs for free