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.
Published: 2026-07-19
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw allows a confined task that has permission to send data to open a TCP or MPTCP connection via the sendmsg()/sendto() system call using the MSG_FASTOPEN flag, without being subjected to the AppArmor connect mediation that would normally deny the operation. The bug arises because the AppArmor socket logic checked only the SEND permission, not the CONNECT permission, for this particular operation. An attacker controlling a confined process can thus establish an outbound connection bypassing AppArmor profiles designed to block such traffic, potentially exfiltrating data or communicating with an attacker‑controlled host.

Affected Systems

All Linux kernel installations before the patch that adds the implicit connect permission check for sendmsg() with MSG_FASTOPEN are affected. The vulnerability applies to the generic Linux kernel platform, so any unpatched kernel version is vulnerable.

Risk and Exploitability

The exposure carries a CVSS score of 8.4, indicating high severity. The EPSS score is listed as < 1%, suggesting that exploitation attempts are expected to be very uncommon at this time. The vulnerability is not currently cataloged in the CISA KEV list. Attackers would need to execute or influence a confined task that can invoke sendmsg() with MSG_FASTOPEN; once this is achieved, they can open outbound connections that are otherwise prohibited by AppArmor, enabling data exfiltration or remote command reachability. Given that the flaw requires specific system call usage and a compromised confined process, the likelihood of exploitation is low but the potential impact remains significant for systems relying on AppArmor to enforce strict network restrictions.

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the AppArmor sendmsg fast‑open fix, ensuring the patch is applied to all affected nodes.
  • Re‑evaluate AppArmor profiles to explicitly deny outbound connections that use MSG_FASTOPEN if the application does not require the fast‑open feature, thereby reducing the attack surface.
  • Disable the TCP Fast Open feature system‑wide via the kernel sysctl net.ipv4.tcp_fastopen=0 as a protective measure when the feature is not needed.

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4700-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4717-1 linux security update
History

Fri, 24 Jul 2026 18:30:00 +0000


Tue, 21 Jul 2026 00:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
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.
Title apparmor: mediate the implicit connect of TCP fast open sendmsg
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:36:11.164Z

Reserved: 2026-07-19T07:54:57.014Z

Link: CVE-2026-63828

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63828 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:15:13Z

Weaknesses
  • CWE-1220

    Insufficient Granularity of Access Control