⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-139106: Linux kernel AppArmor silently bypasses SCTP connect restrictions | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-139106: Linux kernel AppArmor silently bypasses SCTP connect restrictions

Background

CVE-2026-139106 documents a policy-enforcement defect in the AppArmor Linux Security Module (LSM) bundled with the upstream Linux kernel. AppArmor consults profile rules through LSM socket hooks; when a confined process opens an outbound TCP or UDP connection, rules such as deny network inet stream connect are evaluated at the generic socket connect hook.

The Stream Control Transmission Protocol (SCTP) offers two additional routes to establish an association: sendmsg() carrying the SENDMSG_CONNECT flag, and the CONNECTX ancillary data operation. Both paths run through sctp_bind_connect() rather than the standard socket connect entry point. Because AppArmor never registered a callback for the SCTP-specific hook, no connect permission check fired on either route.

What the defect allows

A profile that denies connect while permitting send or setopt no longer confines the SCTP egress it was authored to block. The associated permission decision is silently skipped, the policy intent is not enforced, and the confined task can still complete an SCTP handshake with a reachable SCTP peer.

This is a logic gap inside the mandatory access control layer rather than a memory-safety bug. It does not grant kernel privilege, does not enable remote code execution, and does not relax any other AppArmor restriction on the task. The blast radius is limited to the specific authorization decision that AppArmor was supposed to make and did not.

Affected systems

  • Linux kernel releases carrying the AppArmor LSM without the upstream fix for the SCTP hook registration. The advisories provided do not enumerate specific affected kernel versions, fixed kernel versions, or distribution package numbers. Patch state for any deployment should be confirmed via the MSRC update guide entry referenced below and the matching vendor security notice.

  • The defect is reachable only when the kernel loads SCTP support (sctp module present and not disabled) and when an AppArmor profile follows the exact pattern the upstream analysis calls out: deny connect, allow send or setopt.

  • Hosts that have SCTP disabled (CONFIG_SCTP=n at build time or sctp blacklisted at runtime) and hosts whose confined processes do not hold send or setopt are not exposed through this code path.

Attack prerequisites

  1. An unprivileged process running inside an AppArmor profile.

  1. The profile grants send and/or setopt.

  1. The SCTP protocol stack is loaded on the host.

  1. The target SCTP peer is reachable from the host.

All four are routine in SCTP-aware workloads such as telecom signaling, IMS components, and certain network appliances.

Observed threat activity

The supplied sources contain no CVSS score, no entry on the CISA Known Exploited Vulnerabilities catalog, no public proof-of-concept, and no exploitation telemetry. Treat the issue as a defense-in-depth policy-enforcement weakness rather than an actively exploited attack vector.

Mitigation

Patch. Update each affected host to a kernel build that contains the AppArmor change registering the SCTP sctp_bind_connect hook and enforcing connect permission for SENDMSG_CONNECT and CONNECTX. Upstream mainline inclusion is not by itself evidence that a given distribution kernel carries the fix; verify the vendor backport.

Compensating controls while patching is in flight.

  • Disable the SCTP module on hosts that do not require it (build with CONFIG_SCTP=n, blacklist the module via /etc/modprobe.d, or modprobe -r sctp on running systems where the kernel permits).

  • Tighten AppArmor profiles for SCTP-aware services so that send/setopt is not held broadly, or restrict egress reachability at the network layer so confinement gaps have nothing meaningful to bypass.

  • Apply network-layer egress filtering so that only intended SCTP peers are reachable from confined workloads.

Verification after patching. With a localized AppArmor profile that denies connect and permits send, exercise both SENDMSG_CONNECT and CONNECTX paths; both should now be denied, confirming the hook registration and permission check took effect.

Summary takeaway

The bug is narrow in practical exploitability: it is local, requires SCTP to be loaded, and requires a specific profile shape. Its importance is symbolic — AppArmor policy is only as strong as its hook coverage, and a single missing hook registration can neutralize a deny rule without any error or warning reaching the administrator.

References

·
← News