CVE-2025-38068 crypto: lzo - Fix compression buffer overrun

High 7.8 Published Updated

A buffer overrun in the Linux kernel's LZO compression code allows attackers to cause memory corruption, potentially leading to code execution or system crashes.

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-2025-38068?

CVE-2025-38068 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 18 Jun 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:

crypto: lzo - Fix compression buffer overrun

Unlike the decompression code, the compression code in LZO never checked for output overruns. It instead assumes that the caller always provides enough buffer space, disregarding the buffer length provided by the caller.

Add a safe compression interface that checks for the end of buffer before each write. Use the safe interface in crypto/lzo.

Weakness: CWE-787

Which versions are affected by CVE-2025-38068?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38068?

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-2025-38068 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-64055, BELL-CVE-2025-38068, DEBIAN-CVE-2025-38068, GHSA-qxc4-32hc-g366, ROOT-OS-DEBIAN-11-CVE-2025-38068, ROOT-OS-DEBIAN-12-CVE-2025-38068 and 3 more.

Is CVE-2025-38068 in your software?

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

Check your SBOMs for free