From: AL-KERNEL <[email protected]>
To: [email protected]
Subject: [CVE-2026-99477][MODERATE 7.0] fs/proc/task_mmu: pin mm_users in do_pagemap_scan() commit 4fb975471717c953f912776bb60301add1ffae11 upstream.
Date: Fri, 20 Nov 2026 01:28:43 -0400 [thread overview]
Message-ID: <[email protected]> (raw)
CVE: CVE-2026-99477
Priority: MODERATE 7.0
AL-KERNEL base severity: MODERATE
KPANIC flag: YES
Patch: fs/proc/task_mmu: pin mm_users in do_pagemap_scan() commit 4fb975471717c953f912776bb60301add1ffae11 upstream.
Commit: 6e2299a9356de3364e193d6eaf123b90d7698c1d
Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6e2299a9356de3364e193d6eaf123b90d7698c1d
Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99477
Analysis date: Fri, 20 Nov 2026 01:28:43 -0400
ActionableScore: 6
ActionableScore lower bound: 5
Actionable bucket: Actionable Moderate / Strong Important candidate requiring manual review
Manual review required: YES
Summary:
An unprivileged PAGEMAP_SCAN/exit race can make the kernel execute `down_read()` on a freed hugetlb VMA semaphore, causing a confirmed active-object UAF with crash and unresolved post-free corruption potential.
======================================================================
ABOUT THIS REPORT
======================================================================
The original Linux kernel CVE announcement for CVE-2026-99477 is available here:
https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99477
The original announcement does not normally provide a security severity
estimate, CVSS assessment, or enough information to determine whether the
reported kernel bug represents a practically relevant security issue.
This report was generated by AL-KERNEL, an AI-assisted Linux kernel
vulnerability analysis system developed by Alexander Larkin. It combines
an autonomous classifier with LLM-assisted technical analysis and a
separate ActionableScore mechanism.
The purpose of this report is to prioritize Linux kernel CVEs before
manual review, identify cases that require prompt investigation, and
support automatic closure of issues that are unlikely to have meaningful
security impact.
Published priority for this report: MODERATE 7.0
Manual review required: YES
A detailed explanation of the methodology and priority rules is included
at the end of this message.
======================================================================
AL-KERNEL CLASSIFICATION RESULT
======================================================================
CVE-2026-99477 MODERATE https://www.kernelcve.org/list/?q=CVE-2026-99477 CHECK WITH IMPACT FROM ORIG NN MODERATE | AEGIS IMPACT MODERATE_KPANIC AEGIS_AS=5 LEGACY=MODERATE_KPANIC RESULT=SAME (final reconciliation agrees; DECISION: both MODERATE_KPANIC) Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H';*CWE-416;CWE-362;CWE-825;Other CVSS 'AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H';BEST CVSS score: '7';DESCR 'do_pagemap_scan can race with exit_mmap because the PAGEMAP_SCAN ioctl uses an mm obtained from proc pagemap lacking an mm_users reference. A shared hugetlb VMA allows exit teardown to free hugetlb_vma_lock while walk_hugetlb_range still holds its address and can call down_read on the freed rw_semaphore. This is a confirmed use after free with a kernel crash impact and a plausible memory corruption path because semaphore operations can modify freed memory. For the CVSS the PR:L value is selected because an unprivileged local user context is required to open an accessible pagemap file and issue the ioctl. AC:H reflects the need to coordinate scanning with target process exit and hit the lifetime race. The base impact is C:L I:L A:H because limited confidentiality or integrity impact is plausible but not demonstrated as a reliable primitive. The paranoid C:H I:H A:H score reflects a still defensible local privilege escalation risk from the confirmed use after free and access to a freed synchronization object. Automated impact decision path. The original SimpleNet classifier selected MODERATE_KPANIC. The primary LLM estimated paranoid CVSS 7 and the production ActionableScore returned 6 with recommendation Actionable Moderate / Strong Important candidate requiring manual review. The production rules then evaluated CVSS thresholds and ActionableScore thresholds. Recorded rule transitions were CVSS and initial triage stage MODERATE_KPANIC to IMPORTANT because the CVSS score, vector or bug class threshold rule was applied. KP and FD specialist checks stage IMPORTANT to MODERATE_KPANIC because a specific evidence based protection or manual review veto was applied and FD false positive review allowed a downgrade. The legacy KP specialist produced a review artifact and its decision was processed by the applicable KP rules. The legacy FD or DH downgrade specialist produced a review artifact and its decision was processed by the applicable downgrade and preservation rules. Exact triggered rule markers were INCREASED_TO_HIGH_BASED_ON_GUESSCVSS and V33_ACTIVE_STATE_BOUNDARY_CANDIDATE and IMPORTANT_CANDIDATE_MANUAL_REVIEW and KP_ONLY_DOWNGRADE_VETO and DECREASED_TO_MODERATE7_BASED_ON_FALSEPOSCHECKOFDH. The independent weaker Aegis shadow evaluated CVSS 4.7 and ActionableScore 5 with primitive class CLASS_B and manual review REQUIRED. Its independently reconciled impact was MODERATE_KPANIC. The shadow agreed with the final production impact and aggregation did not change that impact. The final reported impact is MODERATE_KPANIC.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Actionable Moderate / Strong Important candidate requiring manual review (with actual score 6) MAYBE READ OOB NULLPTR DISK LEAK UAF LINUS KPANIC MEMORY KPANIC INCREASED_TO_HIGH_BASED_ON_GUESSCVSS V33_ACTIVE_STATE_BOUNDARY_CANDIDATE IMPORTANT_CANDIDATE_MANUAL_REVIEW KP_ONLY_DOWNGRADE_VETO DECREASED_TO_MODERATE7_BASED_ON_FALSEPOSCHECKOFDH - - checked
======================================================================
ACTIONABLESCORE ANALYSIS
======================================================================
ActionableScore=6
ActionableScoreLower=5
PrimitiveClass=CLASS_B
RealUAF=YES
HostAdminRequired=NO
NamespaceScopedPrivilege=NO
ImportantCandidate=YES
ManualReview=REQUIRED
AutoDowngradeAllowed=NO
RequiresHostUID0=NO
AuthorizationDecisionBypass=NO
ProtectedResourceImpact=NONE
B4PendingReview=NO
B4PendingConfirmed=NO
1. ActionableScore
* Raw base score: 5.
* Conservative score: 5; no floor or cap changed it.
* Raw paranoid score: 6.
* Paranoid score: 6; no floor or cap changed it.
* Final recommended bucket: **Actionable Moderate / Strong Important candidate requiring manual review**::
2. Signal breakdown
* +2 — Confirmed UAF: exit teardown frees `hugetlb_vma_lock` after the scanner loads `vma->vm_private_data`, followed by `down_read()` on the freed semaphore.
* +1 — Local unprivileged trigger: the commit explicitly states any unprivileged user can reach the path, including without configured huge pages.
* +1 — Reliable kernel crash/strong DoS is plausible from semaphore operations on freed storage.
* +1 — Weak but concrete corrupt leverage: `down_read()` is an active synchronization operation that can modify freed rwsem storage, not merely read a stale pointer.
* Paranoid +1 — The attacker can repeatedly invoke PAGEMAP_SCAN and arrange an accessible target's exit, materially driving the lifetime race and reuse opportunity.
* No race penalty: concurrency is required, but the evidence does not establish a one-shot, externally uncontrollable, or unusually unreliable race.
* Not awarded: controlled reclaim, attacker-selected payload/target, arbitrary write, disclosure, LPE, or separate C/I impact. The crash was not counted again as Availability.
3. Reachability analysis
The supported actor is an ordinary local user able to open an accessible `/proc/<pid>/pagemap`, issue PAGEMAP_SCAN, create the shared hugetlb VMA state, and race scanning with target exit. No UID 0, capability, namespace-scoped privilege, prior privileged setup, configured huge pages, or special hardware is required. The path is local rather than remotely reachable.
4. Primitive and severity reading
This is an active structured-object UAF, not fixed stale storage or cleanup-only dereference. Missing `mm_users` pinning permits `exit_mmap()` to free the VMA's rwsem while `walk_hugetlb_range()` still uses it. The later privileged kernel consumer is `down_read()`, which may mutate freed synchronization state.
This is CLASS_B: a concrete post-lifetime kernel-state operation with unknown reuse leverage, but no controlled reclaim or directed corruption proving CLASS_A. ImportantCandidate is YES because unprivileged influence, active freed-state mutation, and unresolved post-free corruption require Important-versus-Moderate review. Auto-downgrade is unsafe despite the absence of a demonstrated LPE.
This is not an authorization bypass; B4-PENDING does not apply.
5. One-sentence report phrase
An unprivileged PAGEMAP_SCAN/exit race can make the kernel execute `down_read()` on a freed hugetlb VMA semaphore, causing a confirmed active-object UAF with crash and unresolved post-free corruption potential.
6. Manual review advice
MANUAL CHECK REQUIRED
Review allocator reuse and rwsem mutation behavior to determine whether the freed-lock operation provides leverage beyond host DoS.
7. Call-site confidence
Call-site confidence: high
======================================================================
UPSTREAM PATCH SUMMARY
======================================================================
Patch: fs/proc/task_mmu: pin mm_users in do_pagemap_scan() commit 4fb975471717c953f912776bb60301add1ffae11 upstream.
Commit: 6e2299a9356de3364e193d6eaf123b90d7698c1d
Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6e2299a9356de3364e193d6eaf123b90d7698c1d
Commit description:
The PAGEMAP_SCAN ioctl takes mmap_read_lock() on an mm obtained from
/proc/<pid>/pagemap without holding a reference to mm_users.
proc_mem_open() deliberately grabs only mm_count, so a consumer that
touches the address space has to call mmget_not_zero() first. Every other
consumer in this file does -- m_start(), do_procmap_query(),
show_smaps_rollup() and pagemap_read() -- but do_pagemap_scan() does not.
Without that reference the target can reach exit_mmap() concurrently, and
exit_mmap() calls unmap_vmas() while holding mmap_lock only for reading,
which does not exclude the scanner. For ordinary VMAs this is harmless,
as free_pgtables() and remove_vma() run afterwards under mmap_write_lock.
A shared hugetlb VMA is different: __hugetlb_zap_end() frees the VMA's
hugetlb_vma_lock inside the read-locked phase.
walk_hugetlb_range() can therefore load vma->vm_private_data, have the
lock freed underneath it, and then down_read() a freed rw_semaphore. The
load happens before the freeing side clears the pointer, so this is a
use-after-free and not a NULL dereference. Any unprivileged user can
reach it with no huge pages configured, as hugetlb_reserve_pages()
allocates the lock before the VM_NORESERVE early return.
Pin mm_users across the scan, the way the other consumers do. mmput()
from the exiting task can then no longer reach exit_mmap() while a walk is
in progress.
[[email protected]: remove unneeded & undesirable test for !mm]
Link: https://lore.kernel.org/[email protected]
Fixes: 52526ca7fdb9 ("fs/proc/task_mmu: implement IOCTL to get and optionally clear info about PTEs")
Signed-off-by: Ngoc Quy <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Assisted-by: Claude:claude-opus-5
Cc: Liam R. Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Pedro Falcato <[email protected]>
Cc: Muhammad Usama Anjum <[email protected]>
Cc: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat -rw-r--r-- fs/proc/task_mmu.c 9
Changed files:
fs/proc/task_mmu.c
Diff excerpt:
Not included in this email. See the upstream URL for the full patch.
Full patch:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6e2299a9356de3364e193d6eaf123b90d7698c1d
======================================================================
DETAILED REPORT METHODOLOGY
======================================================================
The original Linux kernel CVE announcement for CVE-2026-99477 can be found here:
https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-99477
The original CVE announcement normally does not include a security-level
estimate. In particular, it may not contain a CVSS assessment, an impact
level, or enough information to determine whether the reported bug is a
practically relevant security issue. One purpose of this parallel CVE list
is to provide that missing technical and prioritization information.
The original goal of the AL-KERNEL project was to prioritize Linux kernel
CVE analysis automatically before manual review. The system can also help
identify non-security issues that may be suitable for automatic closure.
This report was generated by AL-KERNEL, an AI-assisted Linux kernel
vulnerability analysis system developed by Alexander Larkin.
The first analysis stage combines an autonomous classifier with additional
LLM-based analysis. The autonomous classifier runs locally on a CPU and is
based on a backpropagation neural network. Together, these mechanisms
produce a technical vulnerability description, identify likely weakness
types, estimate CVSS severity, and provide input for ActionableScore.
Two CVSS estimates are retained because incomplete kernel vulnerability
information often permits more than one defensible interpretation:
Conservative CVSS vector: AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
The Best / paranoid CVSS vector: AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
The Best / paranoid CVSS score: 7
The conservative vector represents a lower-impact interpretation.
The Best/paranoid vector intentionally represents a plausible upper-bound
interpretation and should not automatically be treated as demonstrated
real-world impact.
CVSS may also need to be adjusted for a particular Linux deployment,
because actual reachability, privileges, enabled kernel configuration,
hardware, namespaces, exposed device nodes, and other environmental
conditions can differ significantly between systems.
A separate ActionableScore mechanism evaluates practical remediation
urgency. Its analysis may include reachability, attack prerequisites,
subsystem exposure, memory-corruption characteristics, denial-of-service
reliability, and possible confidentiality, integrity, or
privilege-escalation impact.
Conservative ActionableScore: 5
Paranoid ActionableScore: 6
The final base severity is taken directly from the second tab-separated
field of the AL-KERNEL classification result. ActionableScore does not
replace or independently override that final AL-KERNEL decision, and
if ActionableScore adjusted impact level of ALKERNEL, then you would see
self-readable flags above like INCREASED_TO_HIGH_BASED_ON_ACTIONABLESCOREHIGHEREQTHAN7.
For an AL-KERNEL result of MODERATE, this report uses the following
additional presentation split:
ActionableScore below 5 -> MODERATE REGULAR
ActionableScore 5 or more -> MODERATE 7.0
The distinction between MODERATE REGULAR and MODERATE 7.0 makes it
possible to identify Moderate issues that should receive manual analysis
and fixes before lower-priority MODERATE REGULAR issues. In many cases,
MODERATE REGULAR fixes may wait for a later rebase or routine update.
There is one override in which MODERATE REGULAR becomes MODERATE 7.0
even when the ActionableScore is below 5. When the AL-KERNEL result
contains the KPANIC flag, a MODERATE result is always presented as
MODERATE 7.0. The KPANIC flag selected with few regexps without
usage of AI at all, so it helps to detect cases when Kernel Crash happens
and similar (to filter False-Negative results from the LLM usage).
KPANIC indicates that a reliable kernel crash, kernel panic, or similarly
serious kernel availability impact was identified by the classification
workflow.
AL-KERNEL base severity for this report: MODERATE
KPANIC detected for this report: YES
Published priority for this report (same as in Subject): MODERATE 7.0
These results are intended to support engineering triage. They are
machine-generated estimates, and cases marked for manual review should
be validated by a human security engineer before final disposition.
For more info read docs linked from here: https://kernelcve.org/
(and you can submit you own patch there to generate such a report
for non-existant CVE-id yet).
Note that in many cases this AI tool selects higher severity, than
real is (means you can expect Importants instead of Moderate 7.0 or
Moderates 7.0 instead of regular Moderates). If you see such cases,
please use reply email interface to add additional manual analyses
info to this particular CVE.
And please, please, let me know when you see Lows instead of Importants
or Important instead of Low (because particular for such cases I
need to tune this AI tool to make it better for this one and next similar).
My contact email for such notifications is [email protected] (and both
send reply to CVE record itself too and see "reply" button below for howto reply).
reply other threads:[~2026-11-20 5:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --from, and --in-reply-to
switches of git-send-email(1) and next cmd tested by kernelcve.org admin:
git send-email --smtp-server=mail.kernelcve.org --smtp-server-port=25 --smtp-auth=none --from='Your Name <youremail@domain.is>' --suppress-cc=all --no-cc \
--in-reply-to=cve-2026-99477.90e330244791e2e729a92173@kernelcve.org \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
The file with msg could look like this then:
cat YOUR_REPLY
Subject: Re: [CVE-2026-64206][MODERATE REGULAR] Bluetooth: L2CAP test
Just testing public-inbox replies.
Thanks,
MyName
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox