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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2025-06-18T09:33:46.125Z
- **Modified:** 2026-08-05T11:59:13.810Z

## Who should check

- Anyone running Linux \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< a98bd864e16f91c70b2469adf013d713d04d1d13; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 7caad075acb634a74911830d6386c50ea12566cd; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 167373d77c70c2b558aae3e327b115249bb2652c; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< cc47f07234f72cbd8e2c973cdbf2a6730660a463
- Anyone running Linux 2.6.23

## 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.

## Affected and fixed versions

- Linux: \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< a98bd864e16f91c70b2469adf013d713d04d1d13; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 7caad075acb634a74911830d6386c50ea12566cd; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 167373d77c70c2b558aae3e327b115249bb2652c; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< cc47f07234f72cbd8e2c973cdbf2a6730660a463 (cvelist)
- Linux: 2.6.23 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38068. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38068.md
Affected: Linux >= 64c70b1cf43de158282bc1675918d503e5b15cc1, < 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111; >= 64c70b1cf43de158282bc1675918d503e5b15cc1, < a98bd864e16f91c70b2469adf013d713d04d1d13; >= 64c70b1cf43de158282bc1675918d503e5b15cc1, < 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a; >= 64c70b1cf43de158282bc16…
Fixed in: Linux 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111, Linux 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a, Linux 7caad075acb634a74911830d6386c50ea12566cd, Linux 167373d77c70c2b558aae3e327b115249bb2652c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38068 being exploited?

There is no confirmed exploitation: CVE-2025-38068 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38068?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38068?

Linux \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< a98bd864e16f91c70b2469adf013d713d04d1d13; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 7caad075acb634a74911830d6386c50ea12566cd; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< 167373d77c70c2b558aae3e327b115249bb2652c; \>= 64c70b1cf43de158282bc1675918d503e5b15cc1, \< cc47f07234f72cbd8e2c973cdbf2a6730660a463; Linux 2.6.23.

### Is there a fix for CVE-2025-38068?

Yes. Fixed in Linux 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111, Linux 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a, Linux 7caad075acb634a74911830d6386c50ea12566cd, Linux 167373d77c70c2b558aae3e327b115249bb2652c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38068?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111>
- patch: <https://git.kernel.org/stable/c/a98bd864e16f91c70b2469adf013d713d04d1d13>
- patch: <https://git.kernel.org/stable/c/0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a>
- patch: <https://git.kernel.org/stable/c/7caad075acb634a74911830d6386c50ea12566cd>
- patch: <https://git.kernel.org/stable/c/167373d77c70c2b558aae3e327b115249bb2652c>
- patch: <https://git.kernel.org/stable/c/cc47f07234f72cbd8e2c973cdbf2a6730660a463>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38068>

HTML: <https://flawdb.com/CVE-2025-38068> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38068>
