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

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.

Generated by OpenCVE AI on August 14, 2026 at 00:15 UTC.

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 13 Aug 2026 22:45:00 +0000

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'}


Thu, 13 Aug 2026 05:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-535

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

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


Mon, 10 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-535

Mon, 10 Aug 2026 12:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:02:31.315Z

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

Link: CVE-2026-68295

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:18.940

Modified: 2026-08-17T05:18:32.220

Link: CVE-2026-68295

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T12:02:28Z

Links: CVE-2026-68295 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T00:30:03Z

Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types