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=1792759146; b=OrVPqc+DLuwMAtb6O7Vr0YavS9ToaBXvQStD/LoicmYum/KK0eNMCcseQinfjfdcnU3g jbcuTqTdH52vWAfHpx+/k5Cbf/GJ9QeKI66p+GYDct1F9ATS2/WDOFPtdZlpbkXLeZCA3 O8ThzDt5jOHRCu/I7ekmzBVHBGyNTfLyfkQ384fn26kEelGlHl2jZNlwl8LpUvy77d6CG E+EbJU9W3XihWSB7Cy3ES9bsRp3Teq6cAvn/BtgKlY0Hsdad1FK4ayjzkq+d3p1FqMVX9 EniEQq1dzQHzTB7/BHCGLw5tobezcRluoQbaqJ+v8jg4uHxyzPV7AG8Wi7oTcrgkyyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759146; 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=2oslNXbZ5TvpgeQIKfT+fnPIIZjYNdYn7WzDK0mmdBk=; b=JzavbbeXOGX+0n1tpOpphkIzBqHIKoj5Z+w4eJ4LjqaETmg5x5kUmvEK4WeaE1LT5cCu j2si8mIiBryXzRe3C8cgED99JpXSmCJOTFRE+fdDoyL9/8NRa9LBI04sJAZEBV6KagyRH RhsHVp2Rx+veuDfzs6Q9nZTT5Uh20Y8226Wcf+XASFwEMz8V4hIXZHNlozW4deeA/DgFG qd1L4yoOSmYTLpFIePZudEH4yo5yb526xGjWlcUR0vRjEuKwlX/tmDW5EP6mHVU9wMQ2e byLCtsLA2frQFXWQk20ObS08E6yYluVy7ibDT2GAA4lv6QyRpqMipneVPrI11Cb1GGg== 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=pz2WQFQQ; 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 D9A17606A332 for ; Fri, 23 Oct 2026 12:39:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pz2WQFQQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id A05381F01828; Fri, 23 Oct 2026 12:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759145; bh=2oslNXbZ5TvpgeQIKfT+fnPIIZjYNdYn7WzDK0mmdBk=; h=From:To:Cc:Subject:Date:Reply-To; b=pz2WQFQQpun7bFilU6ue+9Yty3Ojggvc2FCHjDDElD7Y1ImOg2obUvNFyJ4oaS5Bk RjowhDJYk1Dof+FLWfcAkpQUDcia3eCsDJ2TN91klFyLbEIM4mejPpG0x8CRVsOThA WyJ2mh08612wsY8VhP5LCB38iAkSWOMNWFfgTRwc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99042: io_uring/net: populate CONNECT filter fields for 24-byte sockaddr_in6 Date: Fri, 23 Oct 2026 14:20:44 +0200 Message-ID: <2026102327-CVE-2026-99042-f641@gregkh> X-Mailer: git-send-email 2.56.0 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=2735; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=60q41z5N6M4qwNMTCTpU77SDkYvogaq2bPj9UkNRyU8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A847FewRY11cv1hKOrAyQPThTAeL9j6W00cuvo5P+ rLWqGlxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkXznD/AgP343FNec/CHP/ 005137H5uw3bJYYFs5be2LGt0VPjhu6l/xNXTesoDW6qAgA= 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: populate CONNECT filter fields for 24-byte sockaddr_in6 io_connect_bpf_populate() fills connect.port and connect.v6_addr for AF_INET6 only when addr_len >= sizeof(struct sockaddr_in6), i.e. 28 bytes. The IPv6 connect paths accept SIN6_LEN_RFC2133 (24 bytes), which already holds sin6_port and sin6_addr. io_connect() passes addr_len to the socket layer unchanged. At addr_len 24 the filter sees family AF_INET6 with port and address zero, while the kernel connects to the real destination. A filter that denies an IPv6 port or address is bypassed. Denying connect.port == P rejects [::1]:P with -EACCES at addr_len 28 but connects at addr_len 24. Use SIN6_LEN_RFC2133 as the threshold. sin6_scope_id stays zero when absent. The threshold mismatch was found by an AI coding assistant (Claude Code) comparing this hook against the net/ipv6 length checks on my instructions; it also drafted the reproducer and this patch. I verified the bypass and the fix in a VM on 7.3-rc6 and that 7.2 has the same code. The Linux kernel CVE team has assigned CVE-2026-99042 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 899bea8248cee35d54760a5e7d61a76af8e64411 and fixed in 7.2.11 with commit 596a955d2d01b7e29d9fed60ebcf7c4ba518b8e5 Issue introduced in 7.2 with commit 899bea8248cee35d54760a5e7d61a76af8e64411 and fixed in 7.3 with commit aa5d5f8e502318e783545ba5d04bb40130b83e20 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-99042 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/596a955d2d01b7e29d9fed60ebcf7c4ba518b8e5 https://git.kernel.org/stable/c/aa5d5f8e502318e783545ba5d04bb40130b83e20