CVE-2025-68742
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix invalid prog->stats access when update_effective_progs fails Syzkaller triggers an invalid memory access issue following fault injection in update_effective_progs. The issue can be described as follows: __cgroup_bpf_detach update_effective_progs compute_effective_progs bpf_prog_array_alloc <-- fault inject purge_effective_progs /* change to dummy_bpf_prog */ array->items[index] = &dummy_bpf_prog.prog ---softirq start--- __do_softirq ... __cgroup_bpf_run_filter_skb __bpf_prog_run_save_cb bpf_prog_run stats = this_cpu_ptr(prog->stats) /* invalid memory access */ flags = u64_stats_update_begin_irqsave(&stats->syncp) ---softirq end--- static_branch_dec(&cgroup_bpf_enabled_key[atype]) The reason is that fault injection caused update_effective_progs to fail and then changed the original prog into dummy_bpf_prog.prog in purge_effective_progs. Then a softirq came, and accessing the members of dummy_bpf_prog.prog in the softirq triggers invalid mem access. To fix it, skip updating stats when stats is NULL.
Affected versions
Linux kernel versions
5.1
and later are affected. Fixed in
6.1.160,
6.6.120,
6.12.63,
6.17.13,
6.18.2,
6.19
and their respective stable series.
References
The following references provide additional information about CVE-2025-68742 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2579c356ccd35d06238b176e4b460978186d804b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/539137e3038ce6f953efd72110110f03c14c7d97
-
PatchKernel patch commithttps://git.kernel.org/stable/c/56905bb70c8b88421709bb4e32fcba617aa37d41
Frequently asked questions
-
What is CVE-2025-68742?
CVE-2025-68742 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.1 onward and has been patched in 6.1.160, 6.6.120, 6.12.63 and others. CVE-2025-68742 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-68742?
Yes — CVE-2025-68742 has been patched. Fixed versions include 6.1.160, 6.6.120, 6.12.63 and others. If you are running Linux kernel 5.1 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-68742 actively exploited?
No — CVE-2025-68742 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.