{"id":"CVE-2025-68742","published":"2025-12-24T12:09:39Z","modified":"2026-11-10T12:38:19Z","title":"bpf: Fix invalid prog->stats access when update_effective_progs fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix invalid prog->stats access when update_effective_progs fails\n\nSyzkaller triggers an invalid memory access issue following fault\ninjection in update_effective_progs. The issue can be described as\nfollows:\n\n__cgroup_bpf_detach\n  update_effective_progs\n    compute_effective_progs\n      bpf_prog_array_alloc <-- fault inject\n  purge_effective_progs\n    /* change to dummy_bpf_prog */\n    array->items[index] = &dummy_bpf_prog.prog\n\n---softirq start---\n__do_softirq\n  ...\n    __cgroup_bpf_run_filter_skb\n      __bpf_prog_run_save_cb\n        bpf_prog_run\n          stats = this_cpu_ptr(prog->stats)\n          /* invalid memory access */\n          flags = u64_stats_update_begin_irqsave(&stats->syncp)\n---softirq end---\n\n  static_branch_dec(&cgroup_bpf_enabled_key[atype])\n\nThe reason is that fault injection caused update_effective_progs to fail\nand then changed the original prog into dummy_bpf_prog.prog in\npurge_effective_progs. Then a softirq came, and accessing the members of\ndummy_bpf_prog.prog in the softirq triggers invalid mem access.\n\nTo fix it, skip updating stats when stats is NULL.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00314,"percentile":0.16754,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/93d1964773ff513c9bd530f7686d3e48b786fa6b","tags":[]},{"url":"https://git.kernel.org/stable/c/bf2c990b012100610c0f1ec5c4ea434da2d080c2","tags":[]},{"url":"https://git.kernel.org/stable/c/539137e3038ce6f953efd72110110f03c14c7d97","tags":[]},{"url":"https://git.kernel.org/stable/c/56905bb70c8b88421709bb4e32fcba617aa37d41","tags":[]},{"url":"https://git.kernel.org/stable/c/2579c356ccd35d06238b176e4b460978186d804b","tags":[]},{"url":"https://git.kernel.org/stable/c/7dc211c1159d991db609bdf4b0fb9033c04adcbc","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":3.35}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < 93d1964773ff513c9bd530f7686d3e48b786fa6b",">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < bf2c990b012100610c0f1ec5c4ea434da2d080c2",">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < 539137e3038ce6f953efd72110110f03c14c7d97",">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < 56905bb70c8b88421709bb4e32fcba617aa37d41",">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < 2579c356ccd35d06238b176e4b460978186d804b",">= 492ecee892c2a4ba6a14903d5d586ff750b7e805, < 7dc211c1159d991db609bdf4b0fb9033c04adcbc"]},{"vendor":"Linux","product":"Linux","versions":["5.1"]}],"euvd":{"id":"EUVD-2025-205220","exploited":false,"provenance":"source"}}