CVE-2026-46333 Local Root Privilege Escalation and Credentia...#2308
Open
carlospolop wants to merge 1 commit into
Open
CVE-2026-46333 Local Root Privilege Escalation and Credentia...#2308carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.qualys.com/vulnerabilities-threat-research/2026/05/20/cve-2026-46333-local-root-privilege-escalation-and-credential-disclosure-in-the-linux-kernel-ptrace-path Content Categories: Based on the analysis, this content was categorized under "Linux Hardening -> Linux Privilege Escalation -> CVE-2026-46333 ptrace/pidfd_getfd file descriptor theft". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
CVE-2026-46333: Linux kernel
ptraceauthorization logic flawQualys Threat Research Unit disclosed CVE-2026-46333, a local Linux kernel vulnerability in the
__ptrace_may_access()permission path. The flaw allows an unprivileged local user to abuse a race condition while a privileged process is exiting or dropping credentials, then steal privileged file descriptors or authenticated IPC channels. The issue has existed in mainline Linux since v4.10-rc1...🔧 Technical Details
Racing ptrace authorization during privileged process teardown: The core technique is to target a privileged process while it is exiting, dropping credentials, or passing through the
do_exit()-related lifetime window. The process should be protected by its dumpable state, but a logic flaw in__ptrace_may_access()can skip the dumpable branch whenmm == NULL. Access may then continue tosecurity_ptrace_access_check(task, mode), allowing the decision to fall through to YAMA. In environments with defaultkernel.yama.ptrace_scope=1, the attack is viable when the attacker is the parent of the privileged SUID child they spawned.Turning a ptrace check bug into file-descriptor theft with
pidfd_getfd():pidfd_getfd()duplicates a file descriptor from another process after authorizing access with__ptrace_may_access(target, PTRACE_MODE_ATTACH_REALCREDS). If the ptrace p...🤖 Agent Actions
Done.
Updated
src/linux-hardening/privilege-escalation/linux-kernel-exploitation/linux-ptrace-exit-race-pidfd_getfd-fd-theft.mdsrc/SUMMARY.mdWhat I added
A new kernel-privesc technique page focused on the technique, not the CVE itself:
pidfd_getfd()ptrace_scopeimpact and mitigationWhy a new page
I checked existing Linux privesc/kernel pages and found ptrace/YAMA mentions, but no existing HackTricks page covering this specific primitive: teardown race +
pidfd_getfd()+ privileged FD/channel theft.Validation
mdbook build, butmdbookis not installed in this environmentSources used
pidfd_getfd(2): https://man7.org/linux/man-pages/man2/pidfd_getfd.2.htmlThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.