{"id":29094,"date":"2026-09-25T20:31:51","date_gmt":"2026-09-25T12:31:51","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97938"},"modified":"2026-09-25T20:31:51","modified_gmt":"2026-09-25T12:31:51","slug":"cve-2026-97938","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97938","title":{"rendered":"CVE-2026-97938 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nreboot: fix cad_pid u"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>reboot: fix cad_pid use-after-free race<\/p>\n<p>cad_pid is a single kernel-wide struct pid pointer. proc_do_cad_pid()<br \/>\nreads it and passes it to pid_vnr() without protecting the lifetime of<br \/>\nthe referenced struct pid. A concurrent writer can replace cad_pid and<br \/>\ndrop the final reference to the old struct pid after the reader has<br \/>\nloaded the pointer but before pid_vnr() has finished dereferencing it,<br \/>\ncausing a use-after-free.<\/p>\n<p>kill_cad_pid() has the same lifetime race when it passes cad_pid to<br \/>\nkill_pid().<\/p>\n<p>At the time this issue was reported, an unprivileged user could reach the<br \/>\nsysctl through user and PID namespaces because cad_pid was registered in<br \/>\npid_table[]. Moving cad_pid back to the global reboot sysctl table<br \/>\ncorrected that namespace and permission mismatch, but did not fix the<br \/>\nunderlying lifetime race.<\/p>\n<p>Fix this by treating cad_pid as an RCU-protected pointer at both read<br \/>\nsites and by waiting for a grace period before dropping the old reference<br \/>\non the write side.<\/p>\n<p>call_rcu(&amp;old_pid-&gt;rcu, &#8230;) cannot be used here because free_pid()<br \/>\nalso queues pid-&gt;rcu; queueing the same rcu_head twice can corrupt the<br \/>\nRCU callback list.<\/p>\n<p>Original KASAN crash stack:<br \/>\n  kernel\/pid.c:545 pid_nr_ns()        # reads freed pid-&gt;level<br \/>\n  kernel\/pid.c:556 pid_vnr()          # calls pid_nr_ns()<br \/>\n  kernel\/pid.c:775 proc_do_cad_pid()  # calls pid_vnr(cad_pid)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>reboot: fix cad_pid use-after-free race<\/p>\n<p>cad_pid is a single kernel-wide struct pid pointer. proc_do_cad_pid()<br \/>\nreads it and passes <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29094","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29094","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=29094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}