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 7196F391E60 for ; Sun, 19 Jul 2026 12:04:13 +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=1784462654; cv=none; b=D4Y9CbXlbJuEWmAfe8nE4BAtU2FXnxTASo0dVq53WYgRFTCv98nTnVxJIrzdwGoF3+hvUeLebQ9Trw/iee8m62b4NJqyAhp0pkLVqm6IEZAk4cJ83hrlcHRSDDUumhHrN4+gWZGZrSy6qF5QjxYzfFwmU7fSMxpfV3/fWfna9OY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462654; c=relaxed/simple; bh=7gCxa3fMEsRNmnUKmfOf9H1l4LoX8TF0G0As91eUPTU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GhitRfZZ56qpf2gJ3yFcQBtRDvCIyF2MKy2t+3W6xToxILNJMrnOwQk0eMQ7PRiphn7ZdRdT49X5b7drXqXBX0RCikR6w/Egz/x98b7um1uw95DhpIcFwcNroXNZvDgWiMYQAeT4ADyl7tofTF/A+KAiUwRmHDhc9VP51pe7uKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kyqG2x0V; 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="kyqG2x0V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8694C1F000E9; Sun, 19 Jul 2026 12:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462653; bh=ooWrVRjb0uWvV9CBoqIsEKhz302BeE7qES+UtkesNGE=; h=From:To:Cc:Subject:Date:Reply-To; b=kyqG2x0VMw89BS/WddCjEeduw+gUUq1vWlGdNx4xcpuP7ML8rUlqqrxg/PclYAu3x ORoRhEizQDDcuQefj/QghCM+vmvLehEtlcH/j5/HKVn8CXDxuEuALLxfIZBrsMvRy/ vKcMslUbPHRQJ4KALpwIpdHnGMyi2d0vyx1cQaH8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63828: apparmor: mediate the implicit connect of TCP fast open sendmsg Date: Sun, 19 Jul 2026 14:02:45 +0200 Message-ID: <2026071907-CVE-2026-63828-c436@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=3389; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oIi8SODsrCHrAN2r7IGtcKjjcS1nqqm11BEx5XF2ohM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe/brx67e31PZG1A90eDwm2mL+B30nJwmH1Xt1Q5Qb D8wQ4i5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai9ZZhwdmfQWt0d9wuVzrp 8tH68OqIw8q6XgzzlJ9/7ajVXzhjK5eOWBT/hS/amzJPAwA= 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: apparmor: mediate the implicit connect of TCP fast open sendmsg sendmsg()/sendto() with MSG_FASTOPEN is a combination of connect(2) and write(2): it opens the connection in the SYN. apparmor_socket_sendmsg() only checks AA_MAY_SEND, so a profile that grants send but denies connect lets a confined task open an outbound TCP/MPTCP connection that connect(2) would have refused, bypassing connect mediation. Mediate the implicit connect when MSG_FASTOPEN is set and a destination is supplied. Add it to apparmor_socket_sendmsg() (not the shared aa_sock_msg_perm() helper, which recvmsg also uses) and call aa_sk_perm() directly, mirroring the selinux and tomoyo fixes. sk_is_tcp() does not cover MPTCP fast open, so the SOCK_STREAM/IPPROTO_MPTCP arm is explicit. The Linux kernel CVE team has assigned CVE-2026-63828 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 6.1.177 with commit 7f57428ce00891d26b0f087ef754a4d820ec83aa Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 6.6.144 with commit faea60deaa05c76f0772650f42eafde12bd39d93 Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 6.12.95 with commit 07b71c342382b854ab8030b244aeab6a7228ad7d Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 6.18.38 with commit 4a69b83045d3195d5b9a9b053ad840ddb2998b4e Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 7.1.3 with commit 45ebb934ea50b436ce49b2f159f090dab0d7fa28 Issue introduced in 3.6 with commit cf60af03ca4e71134206809ea892e49b92a88896 and fixed in 7.2-rc1 with commit 4d587cd8a72155089a627130bbd4716ec0856e21 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-63828 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: security/apparmor/lsm.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/7f57428ce00891d26b0f087ef754a4d820ec83aa https://git.kernel.org/stable/c/faea60deaa05c76f0772650f42eafde12bd39d93 https://git.kernel.org/stable/c/07b71c342382b854ab8030b244aeab6a7228ad7d https://git.kernel.org/stable/c/4a69b83045d3195d5b9a9b053ad840ddb2998b4e https://git.kernel.org/stable/c/45ebb934ea50b436ce49b2f159f090dab0d7fa28 https://git.kernel.org/stable/c/4d587cd8a72155089a627130bbd4716ec0856e21