{"id":"AZL-116908","summary":"CVE-2026-139131 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfork: Let nobody keep a task that may not come to life\n\ndup_task_struct() sets rcu_users to 2.  From then on bpf_task_acquire()\nhands out references to the new task, which BPF programs see as a trusted\npointer long before it is sure to live: in the task_alloc LSM hook and in\nops.init_task() of sched_ext.\n\nIf copy_process() fails later on, it undoes what it has done and frees\nthe task without a look at the count.  A program that has stored its\nreference in a map is left with a pointer to freed memory:\n\n  BUG: KASAN: slab-use-after-free in put_task_struct_rcu_user+0x22/0x90\n\nThe program is loaded by the administrator, but any user can make a fork\nfail, for example at the pids.max of a cgroup.\n\nHonouring the count would not do: the task would stay behind with its mm,\nfiles and credentials freed.  Leave rcu_users at zero until copy_process()\ncannot fail any more.  bpf_task_acquire() returns NULL until then, which\nits callers have to be prepared for, and which they get for init_task,\nwhose count has always been zero.  The other users of rcu_users deal with\ntasks that have run.","modified":"2026-12-01T14:17:41.265179049Z","published":"2026-11-30T14:18:28Z","upstream":["CVE-2026-139131"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139131"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116908.json"}}],"schema_version":"1.9.2"}