Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove timerfd_create() syscall from the seccomp allow-list #962

Closed
acatangiu opened this issue Feb 22, 2019 · 1 comment · Fixed by #2606
Closed

Remove timerfd_create() syscall from the seccomp allow-list #962

acatangiu opened this issue Feb 22, 2019 · 1 comment · Fixed by #2606
Assignees
Labels
Priority: High Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled

Comments

@acatangiu
Copy link
Contributor

With a bit of refactoring all timer fds could be created before booting up the guest. This would allow removing this syscall from the seccomp whitelist.

The timerfd_create syscall in conjunction with the timerfd_settime syscall could be abused to DoS attack the host kernel by creating many timers and continuously have them fire. Because the timerfd subsystem runs in the host kernel context and thus cannot be bounded by user CPU limits it can be used to starve other guests from CPU resources.

@acatangiu acatangiu added Security: Hardening Priority: High Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled labels Feb 22, 2019
This was referenced Jul 14, 2019
@acatangiu acatangiu assigned sandreim and unassigned acatangiu Sep 20, 2019
@AlexandruCihodaru AlexandruCihodaru changed the title Remove timerfd_create() syscall from the seccomp whitelist Remove timerfd_create() syscall from the seccomp allow-list Mar 31, 2021
@acatangiu acatangiu self-assigned this Jun 2, 2021
@acatangiu
Copy link
Contributor Author

Fixed in #2606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Indicates than an issue or pull request should be resolved ahead of issues or pull requests labelled
Projects
None yet
3 participants