Skip to content

[8.19] Mark ML controller non-dumpable before accepting commands (#3081)#3107

Merged
github-actions[bot] merged 1 commit into
8.19from
backport/8.19/pr-3081
Jul 24, 2026
Merged

[8.19] Mark ML controller non-dumpable before accepting commands (#3081)#3107
github-actions[bot] merged 1 commit into
8.19from
backport/8.19/pr-3081

Conversation

@github-actions

Copy link
Copy Markdown

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

* Mark ML controller non-dumpable before accepting commands

Same-UID peers in the shared ES/ml-cpp pod could write /proc/<controller-pid>/mem
and overwrite access@GOT so a spawn's access(path, X_OK) became
dlopen(path, RTLD_LAZY) (elastic/security#12621). Call prctl(PR_SET_DUMPABLE, 0)
after logging is up and before opening command pipes; verify with
PR_GET_DUMPABLE and fail closed if the boundary cannot be established.

No-op on non-Linux platforms where /proc/<pid>/mem is not the concern.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add changelog for #3081

Co-authored-by: Cursor <cursoragent@cursor.com>

* [ML] Improve PR_GET_DUMPABLE diagnostic in controller non-dumpable guard

Distinguish a PR_GET_DUMPABLE syscall failure (-1) from the process still
being dumpable, and log the actual value, per review feedback on #3081.

Co-authored-by: Cursor <cursoragent@cursor.com>

* [ML] Remove public-to-private security-tracker references

Co-authored-by: Cursor <cursoragent@cursor.com>

* [ML] Fix clang-format in controller Main.cc

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 9c46fa0)

@edsavage edsavage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clean automated backport of an already-reviewed, approved change. Approving so auto-merge can complete.

@github-actions
github-actions Bot merged commit b562c28 into 8.19 Jul 24, 2026
8 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants