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.
Published: 2026-08-12
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 13 Aug 2026 12:15:00 +0000

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


Wed, 12 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-687

Wed, 12 Aug 2026 00:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:05:31.962Z

Reserved: 2026-07-30T09:28:09.393Z

Link: CVE-2026-68435

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-12T00:17:43.650

Modified: 2026-08-17T06:17:52.593

Link: CVE-2026-68435

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-12T00:00:00Z

Links: CVE-2026-68435 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T14:00:04Z

Weaknesses
  • CWE-687

    Function Call With Incorrectly Specified Argument Value

  • CWE-822

    Untrusted Pointer Dereference