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

Not scored Published Updated

A memory leak in the Linux kernel's LoongArch BPF JIT compiler allows local attackers to cause denial of service by exhausting kernel memory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-68285?

CVE-2026-68285 is a memory corruption vulnerability in Linux, published on 10 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

LoongArch: BPF: Fix memory leak in bpf_jit_free()

When bpf_int_jit_compile() is called for subprograms, it returns early during the first pass (!prog->is_func || extra_pass 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 bpf_jit_free() to clean up the first subprogram. However, bpf_jit_free() fails to free jit_data->ctx.offset, which causes a memory leak of the JIT context offsets array.

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

Which versions are affected by CVE-2026-68285?

How do I fix CVE-2026-68285?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-68285 being exploited?

There is no known exploitation of CVE-2026-68285 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-68285, GHSA-5h94-r5c3-xc8m, UBUNTU-CVE-2026-68285.

Is CVE-2026-68285 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free