{"id":25722,"date":"2026-09-18T04:31:47","date_gmt":"2026-09-17T20:31:47","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90313"},"modified":"2026-09-18T04:31:47","modified_gmt":"2026-09-17T20:31:47","slug":"cve-2026-90313","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90313","title":{"rendered":"CVE-2026-90313 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, cgroup: Fix inva"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed<\/p>\n<p>A potential invalid storage access issue can occur after replacing a<br \/>\ncgroup bpf prog.<\/p>\n<p>This occurs in the following scenario:<br \/>\n1. prog1 with storage is attached to a cgroup in multi-attach mode.<br \/>\n2. prog1 is replaced with prog2 using BPF_F_REPLACE in multi-attach<br \/>\n   mode, but fails midway (e.g. in bpf_trampoline_link_cgroup_shim or<br \/>\n   update_effective_progs).<br \/>\n3. A new prog3 is attached to the cgroup in multi-attach mode.<\/p>\n<p>The reason is that __cgroup_bpf_attach overwrites pl-&gt;storage with the<br \/>\nnew storage prior to attachment completion. When attachment fails<br \/>\nmidway, the cleanup path calls bpf_cgroup_storages_free(new_storage) to<br \/>\nfree the newly allocated storage, but fails to restore pl-&gt;storage back<br \/>\nto old_storage.<\/p>\n<p>Consequently, the still-active prog1 holds invalid or dangling storage<br \/>\npointers, leading to an invalid memory access when prog1 executes and<br \/>\ncalls bpf_get_local_storage. Additionally, original pl-&gt;flags and<br \/>\ncgrp-&gt;bpf.flags[atype] are left unrestored.<\/p>\n<p>Fix this by saving old_pl_flags, old_storage, and old_flags prior to the<br \/>\nupdate, and properly restoring all of them in the cleanup path on error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>bpf, cgroup: Fix invalid storage access after __cgroup_bpf_attach failed<\/p>\n<p>A potential invalid storage access issue can occur after <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-25722","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/25722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}