[High] Patch sudo for CVE-2026-82474. - #18680
Open
AkarshHCL wants to merge 4 commits into
Open
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
AkarshHCL
marked this pull request as draft
September 1, 2026 07:28
Author
Author
AkarshHCL
marked this pull request as ready for review
September 2, 2026 06:12
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
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.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
Patch Sudo for CVE-2026-82474 , Cve details-Sudo through 1.9.17p2 fails to apply intercept policy checks to the execveat system call in ptrace-based intercept mode. Users permitted to run specific commands can execute denied programs by calling execveat directly or through fexecve, bypassing policy enforcement and logging.
Change Log
Vulnerability Test
*Patch backport details
Upstream targets sudo master (post-1.9.17p2), which had already drifted from 1.9.17 in two ways: proc_read_link() returns ssize_t on master but bool on 1.9.17, and master's get_exec_info() carries a /proc/self/fd/N resolution block that 1.9.17 lacks. As a result, 39/44 hunks applied verbatim and 5 (the proc_read_link / get_exec_info region in exec_ptrace.c) were rejected on context and adapted by hand. Of those 5, most are upstream-verbatim code that only needed re-placement; the only genuine additions beyond upstream's diff are:
The proc_read_link bool→ssize_t refactor: static ssize_t, debug_return_ssize_t(-1), if (len != -1 && (size_t)len != bufsize), and the "name and buf may overlap" note.
The two consequent caller updates: /proc/PID/exe and /proc/PID/cwd → == -1.
Reconstructing the /proc/self/fd/N block as additions (1.9.17 had no such block to modify).
The resulting source is byte-identical to upstream's fix.
Does this affect the toolchain?
NO
Links to CVEs
Test Methodology