CVE-2025-68742
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
24/12/2025
Last modified:
11/01/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: Fix invalid prog->stats access when update_effective_progs fails<br />
<br />
Syzkaller triggers an invalid memory access issue following fault<br />
injection in update_effective_progs. The issue can be described as<br />
follows:<br />
<br />
__cgroup_bpf_detach<br />
update_effective_progs<br />
compute_effective_progs<br />
bpf_prog_array_alloc items[index] = &dummy_bpf_prog.prog<br />
<br />
---softirq start---<br />
__do_softirq<br />
...<br />
__cgroup_bpf_run_filter_skb<br />
__bpf_prog_run_save_cb<br />
bpf_prog_run<br />
stats = this_cpu_ptr(prog->stats)<br />
/* invalid memory access */<br />
flags = u64_stats_update_begin_irqsave(&stats->syncp)<br />
---softirq end---<br />
<br />
static_branch_dec(&cgroup_bpf_enabled_key[atype])<br />
<br />
The reason is that fault injection caused update_effective_progs to fail<br />
and then changed the original prog into dummy_bpf_prog.prog in<br />
purge_effective_progs. Then a softirq came, and accessing the members of<br />
dummy_bpf_prog.prog in the softirq triggers invalid mem access.<br />
<br />
To fix it, skip updating stats when stats is NULL.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/2579c356ccd35d06238b176e4b460978186d804b
- https://git.kernel.org/stable/c/539137e3038ce6f953efd72110110f03c14c7d97
- https://git.kernel.org/stable/c/56905bb70c8b88421709bb4e32fcba617aa37d41
- https://git.kernel.org/stable/c/7dc211c1159d991db609bdf4b0fb9033c04adcbc
- https://git.kernel.org/stable/c/93d1964773ff513c9bd530f7686d3e48b786fa6b
- https://git.kernel.org/stable/c/bf2c990b012100610c0f1ec5c4ea434da2d080c2



