CVE-2026-63828
Executive Summary
In the Linux kernel, AppArmor failed to mediate implicit TCP Fast Open connections: sendmsg()/sendto() with MSG_FASTOPEN performed a connect‑like operation that bypassed connect checks, allowing confined tasks to open outbound TCP/MPTCP connections denied by their profiles. This flaw could enable privilege escalation or unauthorized network access. The patch adds explicit connect mediation for MSG_FASTOPEN, aligning AppArmor with SELinux/Tomoyo fixes.
Authoritative CVE Metadata
- CVSS Base Score: 8.4 (HIGH)
- Last Modified: 16-11-26
Original 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.