Skip to content

kernel: disable DirtyFrag trigger modules#59

Merged
kvinwang merged 1 commit into
mainfrom
fix/disable-dirtyfrag-modules
May 8, 2026
Merged

kernel: disable DirtyFrag trigger modules#59
kvinwang merged 1 commit into
mainfrom
fix/disable-dirtyfrag-modules

Conversation

@kvinwang
Copy link
Copy Markdown
Collaborator

@kvinwang kvinwang commented May 8, 2026

Summary

  • disable IPv4/IPv6 ESP transforms in the dstack kernel config to remove the ESP DirtyFrag trigger path
  • explicitly keep AF_RXRPC/RXKAD disabled so the RxRPC trigger path cannot be enabled by future feature sets
  • keep generic XFRM userspace support enabled for non-ESP networking use cases

Validation

  • ran git diff --check
  • inspected generated config fragments; ESP/RxRPC are disabled via dstack-docker.cfg

Note: this is a mitigation by removing the vulnerable protocol handlers from the built kernel rather than relying on module blacklisting, since ESP is currently built in.

Copilot AI review requested due to automatic review settings May 8, 2026 05:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dstack kernel config fragment used by the Yocto linux-yocto build to mitigate DirtyFrag-style trigger paths by ensuring ESP (IPv4/IPv6) and RxRPC are not built into the kernel, while keeping generic XFRM userspace support enabled for non-ESP use cases.

Changes:

  • Disable IPv4/IPv6 ESP transforms and XFRM ESP support in dstack-docker.cfg.
  • Explicitly keep RxRPC (AF_RXRPC/RXKAD) disabled to prevent future feature sets from enabling it indirectly.
  • Add inline comments documenting the security rationale and the intended constraints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kvinwang kvinwang merged commit d920a02 into main May 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants