{"id":12330,"date":"2026-09-04T18:54:17","date_gmt":"2026-09-04T10:54:17","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80671"},"modified":"2026-09-04T18:54:17","modified_gmt":"2026-09-04T10:54:17","slug":"cve-2026-80671","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80671","title":{"rendered":"CVE-2026-80671 [CRITICAL] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nperf sched: Fix regis"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf sched: Fix register_pid() overflow, strcpy, and BUG_ON<\/p>\n<p>register_pid() has several issues when processing untrusted perf.data:<\/p>\n<p>1. Integer overflow: (pid + 1) * sizeof(struct task_desc *) can wrap<br \/>\n   to a small value on 32-bit systems when pid is large (e.g.<br \/>\n   0x40000000), causing realloc to return a tiny buffer followed by<br \/>\n   out-of-bounds writes in the initialization loop.<\/p>\n<p>2. Heap buffer overflow: strcpy(task-&gt;comm, comm) copies the<br \/>\n   untrusted comm string into a fixed 20-byte COMM_LEN buffer with<br \/>\n   no length check.<\/p>\n<p>3. BUG_ON on allocation failure: perf.data is untrusted input, so<br \/>\n   allocation failures should be handled gracefully rather than<br \/>\n   killing the process.<\/p>\n<p>4. Realloc of sched-&gt;tasks assigned directly back, leaking the old<br \/>\n   pointer on failure; nr_tasks incremented before the realloc,<br \/>\n   leaving corrupted state on failure.<\/p>\n<p>Cap pid at PID_MAX_LIMIT (4194304, matching the kernel&#8217;s maximum<br \/>\non 64-bit), replace strcpy with strlcpy, guard against NULL comm,<br \/>\nreplace BUG_ON with NULL returns using safe realloc patterns, and<br \/>\nadd NULL checks in callers that dereference the result.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf sched: Fix register_pid() overflow, strcpy, and BUG_ON<\/p>\n<p>register_pid() has several issues when processing untrusted perf.data:<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-12330","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/12330","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=12330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}