Patch kernel to fix CVE-2026-46333#17416
Closed
omkhar wants to merge 1696 commits into
Closed
Conversation
…IGH] - branch main (microsoft#15189) Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…] and CVE-2025-12969 [Medium] - branch main" microsoft#15207 Co-authored-by: BinduSri-6522866 <v-badabala@microsoft.com>
…-66031 [High] and CVE-2025-66030 [Medium] - branch main" microsoft#15208 Co-authored-by: Akhila Guruju <v-guakhila@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
… main" microsoft#15223 Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com> Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: Kanishk Bansal <kanbansal@microsoft.com>
…es-base' - branch main" microsoft#15232 Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…6.52 for CVE-2025-66293 [HIGH] - branch main" microsoft#15234 Co-authored-by: jslobodzian <joslobo@microsoft.com>
…in (microsoft#15229) Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-65637 [HIGH] - branch main" microsoft#15312 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-65637 [HIGH] - branch main" microsoft#15313 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-65637 [HIGH] - branch main" microsoft#15314 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
…-2025-65637 [HIGH] - branch main" microsoft#15315 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…65637 [HIGH] - branch main" microsoft#15316 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…2025-65637 [HIGH] - branch main" microsoft#15317 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-65637 [HIGH] - branch main" microsoft#15318 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-66293 [HIGH] - branch main" microsoft#15319 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com>
…-2025-65637 [HIGH] - branch main" microsoft#15320 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…025-65637 [HIGH] - branch main" microsoft#15321 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…VE-2025-65637 [HIGH] - branch main" microsoft#15322 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
…- branch main" microsoft#15323 Co-authored-by: Ratiranjan5 <v-ratbehera@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
….66 for CVE-2025-55753, CVE-2025-58098, CVE-2025-59775, CVE-2025-65082, CVE-2025-66200 [High] - branch main" microsoft#15324 Co-authored-by: jslobodzian <joslobo@microsoft.com>
…-2025-65637 [HIGH] - branch main" microsoft#15325 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…rovider for CVE-2025-65637 [HIGH] - branch main" microsoft#15326 Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
…026-1965 [MEDIUM] (microsoft#16207) Co-authored-by: akhila-guruju <v-guakhila@microsoft.com>
…[MEDIUM] (microsoft#16354) Co-authored-by: SumitJenaHCL <v-sumitjena@microsoft.com>
…-68146 [MEDIUM] (microsoft#16212) Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com>
…[HIGH] - branch main (microsoft#16860) Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
…[HIGH] - branch main (microsoft#16863) Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: akhila-guruju <v-guakhila@microsoft.com>
…VE-2025-49010 [LOW] (microsoft#16452) Co-authored-by: Ratiranjan Behera <v-ratbehera@microsoft.com>
…E-2026-32776 [MEDIUM] (microsoft#16229) Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: Aditya Singh <v-aditysing@microsoft.com>
…6004) Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: Archana Shettigar <v-shettigara@microsoft.com>
…16647) Co-authored-by: akhila-guruju <v-guakhila@microsoft.com>
…-2026-0965, CVE-2026-0964, CVE-2026-3731 [MEDIUM] (microsoft#16409) Co-authored-by: Aditya Singh <v-aditysing@microsoft.com>
…icrosoft#16432) Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: akhila-guruju <v-guakhila@microsoft.com>
Backport upstream fix for CVE-2026-46333: ptrace 'get_dumpable()' logic allowed local unprivileged users with matching uid/gid to bypass CAP_SYS_PTRACE checks against kernel threads or any task whose mm has been torn down. Reported by Qualys Security Advisory. Upstream commit: torvalds/linux@31e62c2 Author: Linus Torvalds <torvalds@linux-foundation.org> Reported-by: Qualys Security Advisory <qsa@qualys.com> The stable backport for 5.15.y landed at commit 15b828a46f305ae9 in upstream linux-5.15.207. Mariner 2.0 currently ships 5.15.202.1 (five stable revs behind), so this PR pulls the fix in via a single forward- ported patch file. The forward-port reuses the same hunk as the 6.6 backport because the surrounding task_struct/exit_mm/ptrace.c shape is identical between 5.15.y and 6.6.y in the affected region (no sched_rt_mutex:1 bitfield refactor between those branches). Evidence (from prior validation work, /Users/oarasara/src/kernel/ptrace-exploit): - Azure Linux 3 kernel 6.6.138.1 with identical hunk: stock leaked /etc/shadow and SSH host private key via pidfd_getfd; patched kernel survived 15,000,000 pidfd_getfd attempts with zero leakage. - CBL-Mariner 2 kernel 5.15.202.1 with this exact patch: built clean, installed, booted; patched-phase PoCs returned exploit-blocked across 500 spawn rounds (stock baseline was not captured separately because the kernel had already been upgraded — relying on the shared-hunk argument with the Azure Linux 3 stock-vs-patched proof). - Hunk reused verbatim across 5.15 and 6.6 because the surrounding task_struct, exit_mm(), and __ptrace_may_access() shapes are identical between the two LTS branches. Mariner 2.0 caveat: AKS support ended 2025-11-30 per https://learn.microsoft.com/en-us/azure/azure-linux/support-cycle; the 2.0 branch still receives kernel auto-upgrades and this PR is intended for non-AKS Mariner 2.0 consumers. No follow-up Fixes: commits found on torvalds/master as of 2026-05-23. Signed-off-by: Omkhar Arasaratnam <omkhar@linkedin.com>
5 tasks
Author
|
Closing — this is a Mariner 2.0 kernel backport (head branch is Holding on opening the equivalent PR on |
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.
Backport upstream fix for CVE-2026-46333.
CVE-2026-46333 —
ptrace_may_access()skips theget_dumpable()checkwhenever the target task's
mmpointer is NULL, allowing a localunprivileged user (matching uid/gid only) to ptrace kernel threads or
any task whose mm has been torn down. Reported by Qualys Security
Advisory.
Upstream commit: torvalds/linux@31e62c2
Author: Linus Torvalds torvalds@linux-foundation.org
Reported-by: Qualys Security Advisory qsa@qualys.com
The stable backport for 5.15.y landed at upstream linux-5.15.207
(commit 15b828a46f305ae9f05a7c16914b3ce273474205 on linux-stable).
Mariner 2.0 ships 5.15.202.1 (five stable revs behind), so this PR
adds a single forward-ported patch file. The forward-port reuses the
6.6 backport hunk verbatim because the surrounding
task_struct,exit_mm(), and__ptrace_may_access()shapes are identical between5.15.y and 6.6.y in the affected region (no
sched_rt_mutex:1bitfield refactor on 5.15.y).
No follow-up
Fixes:commits found on torvalds/master as of2026-05-23.
Validation evidence
Carried over from
/Users/oarasara/src/kernel/ptrace-exploit/(priorin-house validation; full transcript available on request):
reproduced the exploit —
pidfd_getfdagainst a kernel threadexfiltrated
/etc/shadowcontent and a 4096-byte RSA SSH hostprivate key. Patched kernel survived 15,000,000
pidfd_getfdattempts with zero leakage.
rebuilt cleanly, installed, booted, fingerprinted. Patched-phase
PoCs returned
exploit-blockedacross 500 spawn rounds. (Stockbaseline was not captured separately on Mariner 2 because the
kernel had already been upgraded — relying on the shared-hunk
argument with the Azure Linux 3 stock-vs-patched proof.)
the trailer line
[Forward-ported for Azure Linux 3 / CBL-Mariner- Linux-Kernel 6.6.138.1: ...]is preserved verbatim.Mariner 2.0 caveat: AKS support ended 2025-11-30 per
https://learn.microsoft.com/en-us/azure/azure-linux/support-cycle ;
the 2.0 branch still receives kernel auto-upgrades and this PR is
intended for non-AKS Mariner 2.0 consumers.
PR checklist
From:,Reported-by:,Signed-off-by:lines from upstreamgit format-patch -1).Release:incremented1→2.lane) and 0/10 on patched.
non-64k spec).
LTP
runltpwas deprecated upstream so the run useskirk.