CVE-2026-68295

LoongArch: BPF: Zero-extend signed ALU32 div/mod results

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

LoongArch: BPF: Zero-extend signed ALU32 div/mod results

ALU32 operations write a 32-bit result and leave the upper 32 bits of
the BPF register zero. The LoongArch JIT sign-extends the result of
signed ALU32 BPF_DIV and BPF_MOD (off=1), so a negative 32-bit quotient
or remainder leaves bits 63:32 set in JITted code while the verifier
and interpreter model those bits as zero.

Keep sign-extension on the operands, which signed divide needs, and
zero-extend the ALU32 result after the divide or modulo instruction,
matching the unsigned ALU32 div/mod paths and every other ALU32
operation in this JIT.

Analysis

AI-generated

Technical impact

ALU32 operations in the LoongArch BPF JIT produce a 32‑bit result and zero‑extend the upper 32 bits, but the JIT incorrectly sign‑extends the result of signed division and modulo. For a negative 32‑bit quotient or remainder, the JITed code leaves bits 63:32 set, whereas the BPF verifier and interpreter treat those bits as zero. The mismatch between the JIT behavior and the kernel’s expected semantics can cause BPF programs that rely on precise signed arithmetic to return unexpected values.

Affected Systems

Linux kernel for the LoongArch architecture, any build that has BPF JIT enabled and was compiled before the commit that introduced the fix (716cb29). No specific kernel version ranges are provided in the advisory, so all unpatched LoongArch kernels are potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not in CISA’s KEV catalog and no public exploit is known. The likely attack vector is an attacker who can load a malicious BPF program into the kernel, such as via an application that compiles BPF code. Based on the description, it is inferred that an incorrectly signed division result could lead to unpredictable BPF program behavior, which might be leveraged to subvert security checks if such checks depend on exact arithmetic results. However, the impact remains theoretical in the absence of documented exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the fix committed in 716cb29.
  • If a kernel update is not available, disable the BPF JIT compiler by setting net.core.bpf_jit_enable to 0 (e.g., sysctl net.core.bpf_jit_enable=0).
  • Audit and monitor BPF programs running on the system, and restrict or review any that perform signed division or modulo operations until the patch is applied.

Generated by OpenCVE AI on August 14, 2026 at 00:15 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
History
Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-535
Type Values Removed Values Added
Weaknesses CWE-681
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-535
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Zero-extend signed ALU32 div/mod results ALU32 operations write a 32-bit result and leave the upper 32 bits of the BPF register zero. The LoongArch JIT sign-extends the result of signed ALU32 BPF_DIV and BPF_MOD (off=1), so a negative 32-bit quotient or remainder leaves bits 63:32 set in JITted code while the verifier and interpreter model those bits as zero. Keep sign-extension on the operands, which signed divide needs, and zero-extend the ALU32 result after the divide or modulo instruction, matching the unsigned ALU32 div/mod paths and every other ALU32 operation in this JIT.
Title LoongArch: BPF: Zero-extend signed ALU32 div/mod results
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 21, 2026, 12:43 PM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:20 PM
Modified
Oct 21, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 10, 2026, 12:02 PM