{"id":74832,"date":"2025-12-24T16:46:29","date_gmt":"2025-12-24T13:16:29","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-68742-bpf-fix-invalid-prog-stats-access-when-update_effective_progs-fails\/"},"modified":"2025-12-24T16:46:29","modified_gmt":"2025-12-24T13:16:29","slug":"cve-2025-68742-bpf-fix-invalid-prog-stats-access-when-update_effective_progs-fails","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-68742-bpf-fix-invalid-prog-stats-access-when-update_effective_progs-fails\/","title":{"rendered":"CVE-2025-68742 &#8211; bpf: Fix invalid prog-&gt;stats access when update_effective_progs fails"},"content":{"rendered":"<p>CVE ID : CVE-2025-68742<\/p>\n<p>Published :  Dec. 24, 2025, 1:16 p.m. | 1\u00a0hour, 5\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf: Fix invalid prog-&gt;stats access when update_effective_progs fails<\/p>\n<p>Syzkaller triggers an invalid memory access issue following fault<br \/>\ninjection in update_effective_progs. The issue can be described as<br \/>\nfollows:<\/p>\n<p>__cgroup_bpf_detach<br \/>\n  update_effective_progs<br \/>\n    compute_effective_progs<br \/>\n      bpf_prog_array_alloc items[index] = &amp;dummy_bpf_prog.prog<\/p>\n<p>&#8212;softirq start&#8212;<br \/>\n__do_softirq<br \/>\n  &#8230;<br \/>\n    __cgroup_bpf_run_filter_skb<br \/>\n      __bpf_prog_run_save_cb<br \/>\n        bpf_prog_run<br \/>\n          stats = this_cpu_ptr(prog-&gt;stats)<br \/>\n          \/* invalid memory access *\/<br \/>\n          flags = u64_stats_update_begin_irqsave(&amp;stats-&gt;syncp)<br \/>\n&#8212;softirq end&#8212;<\/p>\n<p>  static_branch_dec(&amp;cgroup_bpf_enabled_key[atype])<\/p>\n<p>The reason is that fault injection caused update_effective_progs to fail<br \/>\nand then changed the original prog into dummy_bpf_prog.prog in<br \/>\npurge_effective_progs. Then a softirq came, and accessing the members of<br \/>\ndummy_bpf_prog.prog in the softirq triggers invalid mem access.<\/p>\n<p>To fix it, skip updating stats when stats is NULL.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-68742 Published : Dec. 24, 2025, 1:16 p.m. | 1\u00a0hour, 5\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: bpf: Fix invalid prog-&gt;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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-74832","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=74832"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74832\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=74832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=74832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=74832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}