Linux
apparmor: mediate the implicit connect of TCP fast open sendmsg
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= cf60af03ca4e71134206809ea892e49b92a88896, < a16714e7cf2baa98ba2efddd5d6cbac641f4e76b
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 20383429b56974507c465d016e5238b189f7a246
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 7f57428ce00891d26b0f087ef754a4d820ec83aa
- >= cf60af03ca4e71134206809ea892e49b92a88896, < faea60deaa05c76f0772650f42eafde12bd39d93
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 07b71c342382b854ab8030b244aeab6a7228ad7d
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 4a69b83045d3195d5b9a9b053ad840ddb2998b4e
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 45ebb934ea50b436ce49b2f159f090dab0d7fa28
- >= cf60af03ca4e71134206809ea892e49b92a88896, < 4d587cd8a72155089a627130bbd4716ec0856e21
Fixed in a16714e7cf2baa98ba2efddd5d6cbac641f4e76b, 20383429b56974507c465d016e5238b189f7a246, 7f57428ce00891d26b0f087ef754a4d820ec83aa, faea60deaa05c76f0772650f42eafde12bd39d93, 07b71c342382b854ab8030b244aeab6a7228ad7d, 4a69b83045d3195d5b9a9b053ad840ddb2998b4e, 45ebb934ea50b436ce49b2f159f090dab0d7fa28, 4d587cd8a72155089a627130bbd4716ec0856e21
- 3.6
Fixed in 0, 5.10.261, 5.15.212, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2
Mitigation
Upgrade Linux to a16714e7cf2baa98ba2efddd5d6cbac641f4e76b or 20383429b56974507c465d016e5238b189f7a246 or 7f57428ce00891d26b0f087ef754a4d820ec83aa or faea60deaa05c76f0772650f42eafde12bd39d93 or 07b71c342382b854ab8030b244aeab6a7228ad7d or 4a69b83045d3195d5b9a9b053ad840ddb2998b4e or 45ebb934ea50b436ce49b2f159f090dab0d7fa28 or 4d587cd8a72155089a627130bbd4716ec0856e21 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.177 or 6.6.144 or 6.12.95 or 6.18.38 or 7.1.3 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 4n4s4zi/tfo-connect-bypass | 2 Sep 2026 +45 d | 1 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.