Skip to content

[release/2.3] seccomp: Use an allow-list for socket domains - #14248

Merged
mxpv merged 1 commit into
containerd:release/2.3from
k8s-infra-cherrypick-robot:cherry-pick-14245-to-release/2.3
Sep 29, 2026
Merged

mxpv merged 1 commit into
containerd:release/2.3from
k8s-infra-cherrypick-robot:cherry-pick-14245-to-release/2.3

Conversation

@k8s-infra-cherrypick-robot

@k8s-infra-cherrypick-robot k8s-infra-cherrypick-robot commented Sep 28, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #14245

/assign samuelkarp

Apply hardening to allowlist socket domains in the default seccomp profile

The default profile allowed socket(2) through open-ended range checks
around AF_ALG and AF_VSOCK. Any address family added to Linux later was
allowed automatically.

List the Linux address families the default profile supports and build
the socket rules from that list.

AF_ALG and AF_VSOCK stay blocked, and unknown or future domains now get
the default EPERM response.

A single rule cannot bound both ends of a range, because runc treats
repeated comparisons on one argument as OR.

The consecutive run starting at AF_UNIX therefore becomes one less-than
rule, which is safe because AF_UNSPEC cannot be created. Every other
domain gets its own equality rule.

This matches the same change in Moby's default seccomp profile.

Signed-off-by: Paweł Gronowski <[email protected]>
@mxpv
mxpv merged commit 245a0a5 into containerd:release/2.3 Sep 29, 2026
50 checks passed
jackmisbach added a commit to METR/hawk that referenced this pull request Nov 16, 2026
#3042)

Bottlerocket 1.68.1 ships containerd 2.2.9, whose default seccomp
profile filters socket(2) with range checks on the 64-bit domain
argument. The kernel reads the low 32 bits, so a high-bit domain opens
an AF_VSOCK or AF_ALG socket the profile should refuse
(containerd/containerd#14348). Bottlerocket 1.69.0 ships containerd
2.3.7, whose profile allows only the socket domains it lists
(containerd/containerd#14248).

- default Karpenter pools and the Falcon SSM path: 1.68.1 -> 1.69.0
- Karpenter controller node group: 1.68.1-b4870834 -> 1.69.0-be6a1e85

Kernels are unchanged (6.12.113 on the k8s 1.35 variant, 6.18.56 on
1.36), so the Falcon kernel pin is unaffected.

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants