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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:46.125Z
- Modified: 2026-08-05T11:59:13.810Z
- Weaknesses: CWE-787
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 64c70b1cf43de158282bc1675918d503e5b15cc1 before 4b173bb2c4665c23f8fcf5241c7b06dfa6b5b111; from 64c70b1cf43de158282bc1675918d503e5b15cc1 before a98bd864e16f91c70b2469adf013d713d04d1d13; from 64c70b1cf43de158282bc1675918d503e5b15cc1 before 0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a; from 64c70b1cf43de158282bc1675918d503e5b15cc1 before 7caad075acb634a74911830d6386c50ea12566cd; from 64c70b1cf43de158282bc1675918d503e5b15cc1 before 167373d77c70c2b558aae3e327b115249bb2652c; from 64c70b1cf43de158282bc1675918d503e5b15cc1 before cc47f07234f72cbd8e2c973cdbf2a6730660a463; 2.6.23 (not affected: before 2.6.23; from 5.15.185 up to 5.15.*; from 6.1.141 up to 6.1.*; from 6.6.93 up to 6.6.*; from 6.12.31 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 5.15.185; from 5.16 before 6.1.141; from 6.2 before 6.6.93; from 6.7 before 6.12.31; from 6.13 before 6.14.9
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38068](https://www.cve.org/CVERecord?id=CVE-2025-38068), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38068](https://nvd.nist.gov/vuln/detail/CVE-2025-38068), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38068 · Whole record: https://cve.day/CVE-2025-38068.json · Rebuilt by cve.day 2026-11-25T22:58:59.370Z
