Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795158160; b=i1lbBtmh4Mcc4iofZAQY+faZE/8C7zKVyhLC5bCWRNSK0QXRndPZj9EPRDkQOsEODjcS rLE6iboxL+6m5wptj0/quetPM6papctVxQ/IFt3A+Fh1LYDkR2WZ+z/LeBs8ebzAgBFB7 DzzKeQkWPLHKCeQRhmXdXmjRbEPwDet8qvxIMShfgw12FO2ctK/vOX3N+r79l5EpRlmPO BggLXCDay2DHZHX5An556U3gnnqYWLZ80H8LxXL1Rk8W/FV5+baoeLiXYRfFCvuZP7WgG wwCpmnrDgut89hcLX31dw/+CPIIrqXtZBj798At3ptXxKheAL6pFEAve6kWiu/3CKQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795158160; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=LW3DXI25b4FjfLycqWD1dC7rK3TdxERvcLg1djUKXcg=; b=2ZGQs2R5UbIevOznM901a593vxrVCdkaqEPacBBckzVOtfDFghMivNYjVWANGFsfQPi5 Ev4/yMCSErNEXvxmaNgI8wE1cFCJUen6+BLUS5FVASXzx1gqjB64xCZ8lD6IvCTHPzCkj 8SbA1epXTOlKn7TmQzhVTpTaqOBg6OE7DVzQ9N6x2Br2iCXmmhqKekPxntx3JWoURnkN5 CHuSiglGYE4s8ECuLOttOEx8fDVkRtNa/bnZMs6lJt5cRKw3CWDAgfeIXD9ct7TXvZMSi lfaXWGKJh7EgL1xwzqemu1WMexoRX6yhFpq+ufmMNmo/9QS0s4yyPBAFzzQ+Ly8psig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=mQEwXE+2; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7537A606A325 for ; Fri, 20 Nov 2026 07:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=mQEwXE+2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 936741F000CA; Fri, 20 Nov 2026 07:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795158160; bh=LW3DXI25b4FjfLycqWD1dC7rK3TdxERvcLg1djUKXcg=; h=From:To:Cc:Subject:Date:Reply-To; b=mQEwXE+22VYCX9/wSVb7CcFFCa1ztEp/4XEdqfsDGWVfcM5ajRX7EgZ2RIAasDKSm +s/hacN3HaU14LSyRqaBI+KaUtjd25b5Qrset1eh1J4pso22779gVpRrP04mPFgMW2 vXsxqYjUv5jQsc1jrh42+ssu36HsJUVjJrMthjT8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99801: io_uring/bpf-ops: clear bpf_ctx while submitting SQEs Date: Fri, 20 Nov 2026 08:02:20 +0100 Message-ID: <2026112017-CVE-2026-99801-6599@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2782; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uIo+O/bl6wlKAVdLkZqIYYMxa0VYG0etcDIkpBAT+9A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/P1SWS3FejrKa33v8l9iLALsrwW/Nom2DxL6Hcs680 BHw1UC2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC/4phvvs77j7OkoSLolJp 4Qvm7V57YIHPUoY53GnH72i+v53E2KU0dW7a4QN1H3W2AQA= 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: io_uring/bpf-ops: clear bpf_ctx while submitting SQEs bpf_io_uring_submit_sqes() calls io_submit_sqes() from inside the loop program, with current->bpf_ctx set, and requests issued inline run with it set too. The socket code uses has_current_bpf_ctx() to recognize calls from bpf_setsockopt() and friends, where the caller holds the socket lock and has already been vetted, and skips both. So a SOCKET_URING_OP_SETSOCKOPT from the SQ passes sockopt_capable() without the capability, and runs without lock_sock(). A task with no capability can set SO_MARK, IP_TRANSPARENT or TCP_REPAIR, and two threads changing IP_OPTIONS on one socket, one through the ring, double free in no time. SOCK_DESTROY via IORING_OP_SENDMSG ends up in tcp_abort() without the lock the same way. Clear the run context around io_submit_sqes(). The SQEs come from userspace and must be issued like those of any other ring. They still run inside the program's RCU tasks trace read section, so a request that sleeps there holds up that grace period, but other request types do that already. The Linux kernel CVE team has assigned CVE-2026-99801 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 890819248a8616558fe12e6c06c918ee1c3a2bc6 and fixed in 7.3.2 with commit 521861b17a107875c884df9474e7746617f256d5 Issue introduced in 7.1 with commit 890819248a8616558fe12e6c06c918ee1c3a2bc6 and fixed in 7.4-rc1 with commit 8543a39f03db8816a2d80d0c92c132a19f2afb48 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-99801 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: io_uring/bpf-ops.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/521861b17a107875c884df9474e7746617f256d5 https://git.kernel.org/stable/c/8543a39f03db8816a2d80d0c92c132a19f2afb48