Bug 2373318 (CVE-2025-38068)

Summary: CVE-2025-38068 kernel: Linux kernel: LZO compression buffer overrun due to insufficient output buffer checks
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Linux kernel's LZO compression module. The compression code failed to check for output buffer overruns, assuming the caller provided adequate buffer space. A local attacker with low privileges could exploit this vulnerability to trigger a buffer overrun, potentially leading to a denial of service (DoS) or other system instability.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-06-18 10:01:15 UTC
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.

Comment 1 Avinash Hanwate 2025-06-21 05:54:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061837-CVE-2025-38068-02a8@gregkh/T