Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF5D249362F for ; Fri, 25 Sep 2026 10:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332161; cv=none; b=ZK8kneBmVoWD29AwFpkUqyBXBwd296M38ZnkgiexL4sKep+fIQ2ohNSCoAttQyu22732Z8Tbt2fpd6Sw3iKe18STcC0N6WIYYfaZendE+cAU46dRhsdL2Sq1QrG2x6tB4O5B0iKTxOnj/Ga1h1WqTXlbL5/gTk6hzVTmTKKCROo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332161; c=relaxed/simple; bh=f2tISOXOwIC/yl6KFi1MgNOIEYqpCAvJdz9xSbscebU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o2tOWfevvs4v27qQg9ivztwR8NRRfNJxlyeRa2hDBl85uiqVt/p+p8TRFOcRV89SOoHhFFPMLWjhADdkwzk/FgAW8hcasQbNdWcXx0Y1+76sXuah7rh+f7fT4f/NgxjYZSL0w4aMWNVY/t6MdKZlA1Os+NapHn79PFqgTnsQZAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MfFTzyfR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MfFTzyfR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54D481F00893; Fri, 25 Sep 2026 10:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332159; bh=GpzBI8l9xICfKc9fGVFZqsiz3QkLigEcde4NKk7/kQo=; h=From:To:Cc:Subject:Date:Reply-To; b=MfFTzyfRl9kG0Y1UeRUatV0ynNINPIzdXiPYoHL7hko0+xjpuhCGOX64uIGAPchGa 8aLxzHbkPVRj3M/+I5FonZzhJsMV0VVbUEGtAjWkv726/Yy8Ul+M5pRLJqEcK1XaSN c/+36fnt01nMCYMPrDWzWy7syd6VGNgjVcK9ctig= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97938: reboot: fix cad_pid use-after-free race Date: Fri, 25 Sep 2026 12:24:01 +0200 Message-ID: <2026092511-CVE-2026-97938-4893@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3393; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RPRzRk2bMNqyRgPlLAWyKRSciHq9A7yoH2DzWQAQp1I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvIOzOc+eWMB/OvjOgvSwRyuFz3g9mT133vNrQjcYV X7UPNlzuCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmsuAxw/ykKcu4u+R9Nldt edK/ycHsxb7yoH0Mc0VWTVnYuPuQE+MmDbbvzzeZOk+/Jg8A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: reboot: fix cad_pid use-after-free race cad_pid is a single kernel-wide struct pid pointer. proc_do_cad_pid() reads it and passes it to pid_vnr() without protecting the lifetime of the referenced struct pid. A concurrent writer can replace cad_pid and drop the final reference to the old struct pid after the reader has loaded the pointer but before pid_vnr() has finished dereferencing it, causing a use-after-free. kill_cad_pid() has the same lifetime race when it passes cad_pid to kill_pid(). At the time this issue was reported, an unprivileged user could reach the sysctl through user and PID namespaces because cad_pid was registered in pid_table[]. Moving cad_pid back to the global reboot sysctl table corrected that namespace and permission mismatch, but did not fix the underlying lifetime race. Fix this by treating cad_pid as an RCU-protected pointer at both read sites and by waiting for a grace period before dropping the old reference on the write side. call_rcu(&old_pid->rcu, ...) cannot be used here because free_pid() also queues pid->rcu; queueing the same rcu_head twice can corrupt the RCU callback list. Original KASAN crash stack: kernel/pid.c:545 pid_nr_ns() # reads freed pid->level kernel/pid.c:556 pid_vnr() # calls pid_nr_ns() kernel/pid.c:775 proc_do_cad_pid() # calls pid_vnr(cad_pid) The Linux kernel CVE team has assigned CVE-2026-97938 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit 9ec52099e4b8678a60e9f93e41ad87885d64f3e6 and fixed in 6.18.53 with commit ad72e2566643fff7f01666d845fb026898155e1f Issue introduced in 2.6.19 with commit 9ec52099e4b8678a60e9f93e41ad87885d64f3e6 and fixed in 7.2.7 with commit 9a17b0e053197a6a42cdc75e75a35b17aa662088 Issue introduced in 2.6.19 with commit 9ec52099e4b8678a60e9f93e41ad87885d64f3e6 and fixed in 7.3-rc3 with commit 5a88f78df753993469dab4d1831f8fb4256a9468 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97938 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/linux/sched.h include/linux/sched/signal.h init/main.c kernel/reboot.c kernel/signal.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ad72e2566643fff7f01666d845fb026898155e1f https://git.kernel.org/stable/c/9a17b0e053197a6a42cdc75e75a35b17aa662088 https://git.kernel.org/stable/c/5a88f78df753993469dab4d1831f8fb4256a9468