From mboxrd@z Thu Jan 1 00:00:00 1970 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=1795158166; b=WXyEDjXYoAtAhV3WhNBCaZoqztd1lBvbwm2NAFHVMJdox3jPikNhk0EjS4xz07yS218X +Th/LePPHTAVj6Q3/li+LNF40i2RKDbufTDZ8rKzErO1+VNRNpZzg2Pl/riX5pEkQuEso vALapYXjfvK6+XU7D0V9Ysb/LG4LneBkONLmWML2xyNcCPclYfWmV2LwNJix+yeUBUL5S F85dQXZfUU3qyWArg4lkJqTWI3+tbzVjQ56PqWJUMbzo1xiX4patvHjdLLbdrHWNEIZI4 aF/hD0QigBJi1inZ3cscSdTaO0k8w2ng8NNnjR0WPT7kI0QsGRDt2oOzwiEmkzGxSvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795158166; 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=1jBtsXmLPdcHM39zF0VqhQukvQVb1y4P2sgzORNH/KY=; b=4j90jE0kpBxKbJzWc8LZ8g/NEwLw9JIUZOB2nobmEyLnPFgfKvkIiN81i708WuZ9aWts yLrzv/fpiP7FGgqsuUBVhInekhs4CouS7jjyrZvm88xT4PEga3x5yl91SwAm1hK5FZlcW QeYsSHGIJOwPiVc8tkY9THwKwzK6wwRgIgPVzw16x7zgsNAHF2307WS3q3tmGbFIg3hFc /ktof08QmvUCnH2QPxpfkVFBSb/aoHdiQyy1DWnvJoN0joryppL2OqTGWiwIUatX9YPLj xMQwr7m92M3UWCTeB3rgMy+lSyKCWSvhuhm4WgscNn4Or6sBevE9RjzgLrWL7qCY0hQ== 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=EGzIzx3U; 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 32C09606A320 for ; Fri, 20 Nov 2026 07:02:45 +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=EGzIzx3U Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BBEF1F000D0; Fri, 20 Nov 2026 07:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795158165; bh=1jBtsXmLPdcHM39zF0VqhQukvQVb1y4P2sgzORNH/KY=; h=From:To:Cc:Subject:Date:Reply-To; b=EGzIzx3UWcMOzuYI36gnG6j4FBRLnV0hMhesNLrWeP3fu0gzQORRn18/OYd2f9rnq xS7UGXik5dr8r4IoTw/e2hFCrDH6z0m1OqhwfxotiYGjittvO0uHC0sFxXHfbL8jX5 6bwX7h+DbjxMZrtu0RVcL2l8sWymE3aM1Eh7Vd38= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99803: io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate() Date: Fri, 20 Nov 2026 08:02:22 +0100 Message-ID: <2026112017-CVE-2026-99803-08ef@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=2377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XlBqE7DpjqmG4XNJAKalP3HYZGCpeJZ+MmdK1+HJ+g0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/P1Q+nhTZOf1gduquZckrZsvHn6zx8D/32u61duq9L 99K517u7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJNCowzC+ve7LgjHrGa63+ Tt7b1364TG90EWKYpyPirmh248rRoo3uXI8qDffy2713AAA= 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/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate() When an IORING_OP_SOCKET request is prepared in io_socket_prep(), sock->type retains creation flags such as SOCK_CLOEXEC and SOCK_NONBLOCK until __sys_socket_file() masks them off with SOCK_TYPE_MASK during execution. However, io_socket_bpf_populate() copies sock->type into bctx->socket.type without masking off ~SOCK_TYPE_MASK. As a result, a cBPF filter inspecting bctx->socket.type against socket types such as SOCK_DGRAM or SOCK_STREAM can be bypassed by ORing SOCK_CLOEXEC or SOCK_NONBLOCK into the socket type. Mask sock->type with SOCK_TYPE_MASK when populating bctx->socket.type. The Linux kernel CVE team has assigned CVE-2026-99803 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit cff1c26b4223820431129696b45525e5928e6409 and fixed in 7.3.2 with commit cf635f0def46818d43f40c816b6ba0ff5f3f1618 Issue introduced in 7.0 with commit cff1c26b4223820431129696b45525e5928e6409 and fixed in 7.4-rc1 with commit e66907c3ba229399ecfb4ef032b95a4a071c894e 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-99803 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/net.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/cf635f0def46818d43f40c816b6ba0ff5f3f1618 https://git.kernel.org/stable/c/e66907c3ba229399ecfb4ef032b95a4a071c894e