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 D765D3815D3 for ; Sat, 15 Aug 2026 06:36:51 +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=1786775813; cv=none; b=n6an3RizEaBkZRAKjB65Aj41gsUXL8tJGM/z5V/OxoJN3ud3GPcfvKtxIWknkptRvNuyJK9FmH5eZ/zdnft0cAwuIdXqjVccnBOx73UOEjzTmChLdzhKENNNp2L8u86fz57j7yo3/kznaxklktH1ppS2KZMKeEGvbXVIkFyPH8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775813; c=relaxed/simple; bh=SPhDIrC2dlkyEDBQTM6uNQWl/xoqsnC1d1iZWOtr2Ck=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OoYMlfxt/huwHxdM9KnO0peoeDbDjXHpOGvIXAdpHfMjzKecnBIZM3yxffHCgn9t2Oc7ph5jVEIMQJ0wUgYF9HEJv9e42MAiJDsvtuOhnGexP+0JVYZKEr2KaTm3HYTfhVCahe/aqnM7erFjyseqBIP8+T1k1N6Ii66ylRo4YJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HSdZp4qx; 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="HSdZp4qx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3794D1F000E9; Sat, 15 Aug 2026 06:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775811; bh=cEI2TYYLtDyppECM0gVUiGI5ZNcwKk7Rai49vhp+xA4=; h=From:To:Cc:Subject:Date:Reply-To; b=HSdZp4qxbXiiTDuRCGUVwPtrRutXpZ/ILbBD6uipnQF1eN3R7aj3j6F/Z707GaIhb xj2uAv8ShnDiVCOyvvkY0401/r5QgpwN+/hZ6BwRQXQD00v8pUB1q3DeDWctitlqyD h6R3jO/qQ8o+HOXRH9QcMEQuLOlS9B4aWfoCllg0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74335: bpf: Fix NULL pointer dereference in bpf_task_from_vpid() Date: Sat, 15 Aug 2026 15:11:02 +0900 Message-ID: <2026081556-CVE-2026-74335-c71b@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=3229; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dh7MXIaY0Jj63UuwRHI9EiWSMPn9tKn/AZfLKuP2uqk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjAKKhi7TFZ8vscn1X1NuGrFu9jLPwtLyetv30ks1s mtlHt7piGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImkhjAsuMYn/4orRUHLu2/p S/Hwx+ryIoeTGebK/uD4WMhWr7XywqV3nDZFbRZX1JMB 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: Fix NULL pointer dereference in bpf_task_from_vpid() bpf_task_from_vpid() looks up a task in the pid namespace of the current task, via find_task_by_vpid(): find_task_by_vpid(vpid) find_task_by_pid_ns(vpid, task_active_pid_ns(current)) find_pid_ns(nr, ns) -> idr_find(&ns->idr, nr) cgroup_skb programs run in softirq, which may interrupt a task that is itself in do_exit(). Once that task has passed exit_notify() -> release_task() -> __unhash_process(), its thread_pid is cleared, so task_active_pid_ns(current) returns NULL and find_pid_ns() dereferences &NULL->idr: BUG: kernel NULL pointer dereference, address: 0000000000000050 RIP: 0010:idr_find+0x11/0x30 lib/idr.c:176 Call Trace: find_pid_ns kernel/pid.c:370 [inline] find_task_by_pid_ns+0x3b/0xe0 kernel/pid.c:485 bpf_task_from_vpid+0x5b/0x200 kernel/bpf/helpers.c:2916 bpf_prog_run_array_cg+0x17e/0x530 kernel/bpf/cgroup.c:81 __cgroup_bpf_run_filter_skb+0x12b/0x250 kernel/bpf/cgroup.c:1612 sk_filter_trim_cap+0x1dc/0x4c0 net/core/filter.c:148 tcp_v4_rcv+0x18d1/0x2200 net/ipv4/tcp_ipv4.c:2223 do_exit+0xa63/0x1270 kernel/exit.c:1010 get_signal+0x141c/0x1530 kernel/signal.c:3037 Bail out when current has no pid namespace. The Linux kernel CVE team has assigned CVE-2026-74335 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 675c3596ff32c040d1dd2e28dd57e83e634b9f60 and fixed in 6.18.40 with commit b7474f4432dd9559ada03b01a8cd3472cd02c61d Issue introduced in 6.13 with commit 675c3596ff32c040d1dd2e28dd57e83e634b9f60 and fixed in 7.1.5 with commit a4c95b6221cb2972a94ed72663c09bd5b0b6dea4 Issue introduced in 6.13 with commit 675c3596ff32c040d1dd2e28dd57e83e634b9f60 and fixed in 7.2-rc1 with commit 50dff00615522f3ec03449680ca23beb4cfc549c 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-74335 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/helpers.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/b7474f4432dd9559ada03b01a8cd3472cd02c61d https://git.kernel.org/stable/c/a4c95b6221cb2972a94ed72663c09bd5b0b6dea4 https://git.kernel.org/stable/c/50dff00615522f3ec03449680ca23beb4cfc549c