CVE-2026-68285

Source
https://cve.org/CVERecord?id=CVE-2026-68285
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68285.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68285
Downstream
Published
2026-08-10T12:02:18.074Z
Modified
2026-08-18T03:30:57.193658081Z
Summary
LoongArch: BPF: Fix memory leak in bpf_jit_free()
Details

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 || 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 bpfjitfree() to clean up the first subprogram. However, bpfjitfree() 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(jitdata->ctx.offset) in bpfjit_free().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68285.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4ab17e762b34c847478f694932c4cd4b1ac2c343
Fixed
f1557e0a64736b63aed24e285108a7bc3b7de294
Fixed
47e20d4b3da97ef3881d1e55e43545c22424f3fc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68285.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68285.json"