CVE-2026-68435

LoongArch: Fix address space mismatch in kexec command line lookup

Published Aug 12, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

LoongArch: Fix address space mismatch in kexec command line lookup

When searching the loaded segments for the "kexec" command line marker,
the kexec_load(2) path (file_mode == 0) passes the user-space segment
buffer straight to strncmp() through a bogus (char __user *) cast. This
dereferences a user pointer in kernel context, which is wrong and is
flagged by sparse:

arch/loongarch/kernel/machine_kexec.c:84:51: sparse: incorrect type in
argument 2 (different address spaces) @@ expected char const * @@ got
char [noderef] __user *

Here copy the marker-sized prefix of each segment into a small on-stack
buffer with copy_from_user() before comparing, and skip segments that
fault. The subsequent copy_from_user() that stages the full command line
into the safe area is left unchanged.

Analysis

AI-generated

Technical impact

The flaw occurs in the kexec_load system call when file_mode is zero. A user space buffer containing the command line is incorrectly cast to a kernel pointer and passed to strncmp without performing a proper copy_from_user. This type confusion allows the kernel to read data from an arbitrary user space address and can cause an illegal read or a crash. The weakness corresponds to the Common Weakness Enumeration 687.

Affected Systems

Any LoongArch Linux kernel that has not yet integrated the commit that inserts copy_from_user before the strncmp. The CNA vendor products are Linux kernel for LoongArch architecture; no version ranges are supplied; consequently any build containing the vulnerable code path is potentially affected.

Risk and Exploitability

The embedded EPSS score is below 1 %, implying a low probability of exploitation in the wild and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to invoke the kexec_load system call with a malicious payload that includes a segment whose marker matches the kexec string. Because the kernel validates the user buffer incorrectly, the exploit can lead to a kernel crash or memory read, delivering a denial of service. The absence of a KEV listing and the low EPSS score suggest that the vulnerability is not actively targeted. The CVSS score of 5.5 indicates a moderate severity level.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest LoongArch Linux kernel version that includes the kexec patch or apply the specific commit from the kernel repository that inserts copy_from_user before the strncmp operation.
  • If a kernel update cannot be performed immediately, disable the kexec_load system call in the kernel configuration or restrict its invocation to fully trusted privileged processes; monitor for anomalous kernel crashes that may indicate misuse.
  • Perform a code audit of any custom modules or services that call kexec_load to verify they validate all parameters and execute with the least privilege required.

Generated by OpenCVE AI on August 13, 2026 at 13:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4904-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4906-1 linux security update
History
Type Values Removed Values Added
Weaknesses CWE-822
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-687
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: LoongArch: Fix address space mismatch in kexec command line lookup When searching the loaded segments for the "kexec" command line marker, the kexec_load(2) path (file_mode == 0) passes the user-space segment buffer straight to strncmp() through a bogus (char __user *) cast. This dereferences a user pointer in kernel context, which is wrong and is flagged by sparse: arch/loongarch/kernel/machine_kexec.c:84:51: sparse: incorrect type in argument 2 (different address spaces) @@ expected char const * @@ got char [noderef] __user * Here copy the marker-sized prefix of each segment into a small on-stack buffer with copy_from_user() before comparing, and skip segments that fault. The subsequent copy_from_user() that stages the full command line into the safe area is left unchanged.
Title LoongArch: Fix address space mismatch in kexec command line lookup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-687

    Function Call With Incorrectly Specified Argument Value

  • CWE-822

    Untrusted Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:28 PM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 12, 2026, 12:17 AM
Modified
Oct 30, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 12, 2026, 12:00 AM