CVE-2026-139392

lib: validate in-memory LZ4 chunk length

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

lib: validate in-memory LZ4 chunk length

We found and validated an issue in lib/decompress_unlz4.c. The bug is
reachable by a root user through kexec_file_load() with a crafted external
initrd.

unlz4() reads the compressed chunk length from an in-memory initrd and
passes it to LZ4_decompress_safe(). It only checks the chunk length
against the allocation size when the input is filled by a callback.

Reject an in-memory chunk that extends past the remaining input before
calling the LZ4 decoder. This prevents malformed initrds from making
the decoder read past the mapped archive.

Analysis

AI-generated

Technical impact

A bug in lib/decompress_unlz4.c allows a root user to provide a crafted initrd to kexec_file_load(), causing the decompress routine to read past the bounds of the mapped initrd when validating chunk lengths. This can result in a kernel fault or arbitrary code execution within the kernel context, leading to potential compromise of kernel integrity.

Affected Systems

All Linux kernel distributions, as the vulnerability is present in the Linux kernel source tree and affects any kernel that does not incorporate the recent fix for this issue.

Risk and Exploitability

The attacker requires local root privileges and must supply a malicious initrd when invoking kexec_file_load(). The lack of an EPSS score and absence from the CISA KEV catalog suggest limited current exploitation data; however, the nature of the bug—an out‑of‑bounds read in kernel space—indicates a high CVSS severity if properly leveraged. The exploit path is straightforward for an attacker with root access, making this a significant vulnerability in environments where root users can load custom initrd images.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install a kernel version that includes the upstream patch for this issue.
  • If an updated kernel is unavailable, restrict the use of kexec_file_load() to trusted initrd images and enforce strict validation of initrd contents before load.
  • Disable the use of LZ4 decompression for initrd files, if possible, by configuring the boot loader or kernel command line to use an alternative compression format.

Generated by OpenCVE AI on November 30, 2026 at 21:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: lib: validate in-memory LZ4 chunk length We found and validated an issue in lib/decompress_unlz4.c. The bug is reachable by a root user through kexec_file_load() with a crafted external initrd. unlz4() reads the compressed chunk length from an in-memory initrd and passes it to LZ4_decompress_safe(). It only checks the chunk length against the allocation size when the input is filled by a callback. Reject an in-memory chunk that extends past the remaining input before calling the LZ4 decoder. This prevents malformed initrds from making the decoder read past the mapped archive.
Title lib: validate in-memory LZ4 chunk length
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM