CVE-2026-68285: LoongArch: BPF: Fix memory leak in bpf_jit_free()

Published Aug 10, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: BPF: Fix memory leak in bpfjitfree()

When bpfintjitcompile() is called for subprograms, it returns early during the first pass (!prog->isfunc || extrapass is false), keeping ctx->offset alive for the subsequent extra pass.

If JIT compilation fails for a later subprogram, the BPF core aborts and calls bpfjitfree() to clean up the first subprogram. However, bpfjitfree() fails to free jitdata->ctx.offset, which causes a memory leak of the JIT context offsets array.

So fix this by adding the missing kvfree(jitdata->ctx.offset) in bpfjitfree().

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (LoongArch BPF) to a version that resolves this vulnerability.

    Patch Fix memory leak in bpf_jit_free()

Event History

Aug 10, 2026
CVE Published
via MITRE·12:02 PM
Data Sourced
via MITRE·12:02 PM
Description
Data Sourced
via NVD·01:20 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-68285?

The severity of CVE-2026-68285 is rated at a risk level of 5.

2

How do I fix CVE-2026-68285?

To fix CVE-2026-68285, ensure that your Linux kernel is updated to the patched version where the memory leak in bpf_jit_free() has been addressed.

3

What systems are affected by CVE-2026-68285?

CVE-2026-68285 affects systems running the vulnerable versions of the Linux kernel with the LoongArch architecture.

4

What type of vulnerability is CVE-2026-68285?

CVE-2026-68285 is a memory leak vulnerability within the BPF subsystem of the Linux kernel.

5

When was CVE-2026-68285 published?

CVE-2026-68285 was published on August 10, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203