Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-100038

published high CVSS 3.1 · 7.8

alpha: run check_mmu_context() from finish_arch_post_lock_switch()

Published
30 Nov 2026, 13:23:18 UTC
Updated
01 Dec 2026, 05:39:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7405a29356b5f519434f90d04b1d6dd39e9fc858 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9928b715e2daaa7fe12e810d213a2b0d8f4db5f0 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 21c5041e79a4764833e3b66e3efca508af0ddf90 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 79c636dffe63ac63a33145a9281cc7774ecb27d8 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e47f875879259e16a0a16ded3236687b372efbe1 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 07b4cbae2060778e53e4b102f28b042abf1331c5 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1460d772e2f28bf87f49414bc15886a26c15933c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 020d2e70b7538b66eee3c3480d2b8921fb182f0c · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: alpha: run check_mmu_context() from finish_arch_post_lock_switch() check_mmu_context() clears asn_lock and acts on need_new_asn, but it runs only as the tail of switch_to(), after alpha_switch_to() returns. A newly forked user task never gets there: its first context switch resumes at ret_from_fork and reaches schedule_tail() without returning to the code following alpha_switch_to(). asn_lock is left set on that CPU, so the new user task can run with interrupts enabled while shootdown IPIs keep taking the deferred path. The handshake meant to complete those invalidations never runs. New kernel threads also reach schedule_tail(), but context_switch() does not call switch_mm() for a task without an mm. They therefore do not set asn_lock in the first place and are not affected by this bug. Move check_mmu_context() to finish_arch_post_lock_switch(), which is called by finish_task_switch() for both existing and newly created tasks. Drop the now redundant call from switch_to(). The hook runs after finish_lock_switch() releases the rq lock and enables interrupts. An IPI arriving before asn_lock is cleared retires the slot through flush_tlb_other(); an IPI arriving afterwards can flush directly, since PAL_swpctx has already installed the incoming context. Set need_new_asn whether ev5_switch_mm() reuses or allocates an ASN. An IPI in that interval can zero either slot. Without this, the allocated case can return to user space with a live ASN but a zero context slot, which a later context-based shootdown shortcut could mistake for an inactive CPU. check_mmu_context() reloads only when the slot is zero. Call the hook unconditionally. Alpha selects ARCH_NO_PREEMPT, and neither kthread_use_mm() nor sched_force_init_mm() sleeps between the direct switch and this hook. RCU_STRICT_GRACE_PERIOD can enable PREEMPT_COUNT, but cannot make those callers migrate there. Testing preemptible() would only leave asn_lock set in that configuration. This requires the preceding direct-switch fix, "alpha: load the MMU context when switch_mm() switches the current task". It installs the borrowed context before kthread_use_mm() reaches this hook, so clearing asn_lock cannot expose a targeted invalidate against the wrong context.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Reached only by local syscalls: clone()/pthread_create() starts a user task whose first switch resumes at ret_from_fork, skipping check_mmu_context() in switch_to(); a sibling thread's munmap() then reaches tlb_flush()->flush_tlb_mm()->ipi_flush_tlb_mm(). No remote peer supplies any input. AC:L - The attacker creates the stuck asn_lock state by spawning a thread, and it lasts until that thread is descheduled. The attacker also sends the shootdown with munmap from another thread, pinning both with sched_setaffinity. No race window or victim state is needed, only an SMP Alpha with 2+ CPUs. PR:L - An ordinary unprivileged user only needs clone(CLONE_VM), mmap/munmap on their own memory and sched_setaffinity on their own threads; no capability is checked anywhere on the path. UI:N - Every step is done by the attacker's own threads (spawning the new task, touching the page, unmapping it). No other user or administrator has to act. S:U - The impact is local privilege escalation or memory corruption within the same kernel. No hypervisor, IOMMU or other security authority is crossed. C:H - With asn_lock left set, ipi_flush_tlb_mm() only zeroes mm->context[cpu] via flush_tlb_other(), and nothing reloads the ASN. The new thread keeps TLB entries for pages munmap() has freed and can read them after they are reused as page tables, slab or another user's data. I:H - Stale writable translations let user mode write into freed physical pages. Getting those pages reallocated as page tables or privileged page cache gives arbitrary kernel or cross-process writes and privilege escalation. A:H - Writes through stale TLB entries corrupt whatever reuses the freed pages, kernel structures or other processes' memory, which can crash the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7405a29356b5f519434f90d04b1d6dd39e9fc858 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 9928b715e2daaa7fe12e810d213a2b0d8f4db5f0 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 21c5041e79a4764833e3b66e3efca508af0ddf90 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 79c636dffe63ac63a33145a9281cc7774ecb27d8 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e47f875879259e16a0a16ded3236687b372efbe1 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 07b4cbae2060778e53e4b102f28b042abf1331c5 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1460d772e2f28bf87f49414bc15886a26c15933c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 020d2e70b7538b66eee3c3480d2b8921fb182f0c (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

alpha: run check_mmu_context() from finish_arch_post_lock_switch()

Provenance

Schema
5.2
Searchable
yes
Content hash
82770219e7aab19566843a63a0c85f0f31282e7f720a2079d47416d853a0ecae
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected