From mboxrd@z Thu Jan 1 00:00:00 1970 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 D028F495524 for ; Fri, 25 Sep 2026 10:35:00 +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=1790332501; cv=none; b=lLX/lOnUkbjVMOqCfrOZJSy2jqZTDYJ44HTHhHAXNa7XjuzfXaCNJsEESVzkbdqpzHPirXT4jjBXcjVCh22BlCSs7skoEOitCtnamK2kmKQBBn2p1UiUgpEhGoVoV7gbHAE2zyNDnobPciKLhtcY+E2MTx5jJ4UOIhf0wp3ThY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332501; c=relaxed/simple; bh=M3cz4ahV/zDQgCSBDR9RgLBSvA0TvOqBpTn+YZte2aQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OG42az5ipm7fBxOXEp0NfXRMhh45LQWX+Eof8l1oFA+RA38bcw7x/fOVOqdMXDef16lZon6qbbdH8vHxHt1Z78QUANzr0wLc2px2beLWnHKb2q1okXDDRGa6DCnZVa8g1RuhIHa2IZMkEQ/uHrZSGV9vuQY/MzpIhg7NCuhtCCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I1jX+xTE; 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="I1jX+xTE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C50F1F000FF; Fri, 25 Sep 2026 10:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332500; bh=wmnQx+iZUTiQMqfZm2Uv57FWT9IwABcLeyQUHZAUXQg=; h=From:To:Cc:Subject:Date:Reply-To; b=I1jX+xTERbyqGOIhYz1LDlvY7g+5PZF2RHf5MkQFHDRwm+hY0x7mDPszyd/xMvOj6 UWnlIbatCgfgOKvJnf6U6h7TZXaBtMPGa22+KTAgeUyVZKf2hsoe1rXz62OFq6k0BS 4FVjjERpPFMxXaRGGNBoipazfqJa80pmopphWSAc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98059: bpf: Mark sched_process_wait argument as nullable Date: Fri, 25 Sep 2026 12:26:01 +0200 Message-ID: <2026092534-CVE-2026-98059-bdaa@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=2875; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MW2IxffTUD8LuUq9wBUKWqT3olbouEfpjXPGcmVUzg8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvLMaDTeFFbf6Z5os3byj++Q8zjjldbzlyhJqjmHbs /xOrMvviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcW8MwT5O1Sy6o2fmDQqhm cJLz9a3hZwoMGeYXtBZetdn2ba70t638J19n8B2N7NwHAA== 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: bpf: Mark sched_process_wait argument as nullable do_wait() passes wo->wo_pid to the sched_process_wait tracepoint. kernel_wait4() leaves wo_pid NULL for wait4(-1), and kernel_waitid_prepare() does likewise for waitid(P_ALL). btf_ctx_access() currently types argument 0 as PTR_TO_BTF_ID | PTR_TRUSTED. Without PTR_MAYBE_NULL, the verifier accepts an unchecked dereference. Trusted pointer loads have no fault protection, so a wait for any child can then cause a NULL pointer dereference in JITed BPF code. Add sched_process_wait to raw_tp_null_args[] with argument 0 marked nullable. The verifier rejects an unchecked dereference while preserving access after the program checks the pointer for NULL. The Linux kernel CVE team has assigned CVE-2026-98059 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.6 with commit b2fc4b17fc13810ef440fb323fad3981cd174985 and fixed in 6.12.111 with commit bee862c79cb7e0e5c33b2df2e3a31d164705120d Issue introduced in 6.13 with commit 838a10bd2ebfe11a60dd67687533a7cfc220cc86 and fixed in 6.18.53 with commit 3c03a1b8ded858685a73c1ba4080adef99db4544 Issue introduced in 6.13 with commit 838a10bd2ebfe11a60dd67687533a7cfc220cc86 and fixed in 7.2.7 with commit b9205e936dde9a94e93376c8de6195b740bcd5d2 Issue introduced in 6.13 with commit 838a10bd2ebfe11a60dd67687533a7cfc220cc86 and fixed in 7.3-rc2 with commit a453d6e3b8e8e1a321c8744d6189d763af9287d0 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-98059 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: kernel/bpf/btf.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/bee862c79cb7e0e5c33b2df2e3a31d164705120d https://git.kernel.org/stable/c/3c03a1b8ded858685a73c1ba4080adef99db4544 https://git.kernel.org/stable/c/b9205e936dde9a94e93376c8de6195b740bcd5d2 https://git.kernel.org/stable/c/a453d6e3b8e8e1a321c8744d6189d763af9287d0