Description

In the Linux kernel, the following vulnerability has been resolved: bpf,fork: wipe ->bpf_storage before bailouts that access it Currently, copy_process() can bail out to free_task() before p->bpf_storage has been initialized, with this call graph (shown here for the !CONFIG_MEMCG case): copy_process dup_task_struct arch_dup_task_struct [copies the entire task_struct, including ->bpf_storage member] [RLIMIT_NPROC check fails] delayed_free_task free_task bpf_task_storage_free rcu_dereference(task->bpf_storage) bpf_local_storage_destroy In this case, the nascent task's ->bpf_storage member that bpf_local_storage_destroy() operates on is a plain copy of the parent's ->bpf_storage pointer, not a real initialized pointer. This leads to badness (kernel hangs, UAF). This is reachable as long as the process calling fork() has been inserted into a task storage map.

Affected products

VendorProductVersions
LinuxLinuxa10787e6d58c24b51e91c19c6d16c5da89fcaa4b to <c3fd6f28c7ce1142a3b23dbb840eaa4777de1d74; a10787e6d58c24b51e91c19c6d16c5da89fcaa4b to <9cff220ddb65b022cc668bb652200742476e744c; a10787e6d58c24b51e91c19c6d16c5da89fcaa4b to <c4f626ddf2350652ad2f79daf1f10847f3f6eabd; a10787e6d58c24b51e91c19c6d16c5da89fcaa4b to <43f0005f81b8ce3be962d653cde8db9022f1e9b0; a10787e6d58c24b51e91c19c6d16c5da89fcaa4b to <9b51a6155d14389876916726430da30eabb1d4ed
LinuxLinux5.13; 0 to <5.13; 6.6.145 to <=6.6.*; 6.12.97 to <=6.12.*; 6.18.40 to <=6.18.*; 7.1.5 to <=7.1.*; 7.2-rc2 to <=*

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 15 Aug 2026 07:05 UTC.