CVE-2026-143093: x86/mm: Ensure write visibility during LDT installation
In the Linux kernel, the following vulnerability has been resolved:
x86/mm: Ensure write visibility during LDT installation
During LDT installation, the intent is to overwrite the old per-mm LDT value, then send an IPI to the mm user CPUs to have each load the new value.
But there is an ordering problem: a new mm user CPU sets itself in mmcpumask() and then reads mm->context.ldt. The LDT-installing CPU writes mm->context.ldt and then reads mmcpumask(). But, there is nothing which orders the LDT installation side actions. The CPU can read mmcpumask() before its write becomes visible.
Ensure that new mm user CPUs see the new mm->context.ldt. Make mm->context.ldt visible before reading mmcpumask().
Also convert the smpstorerelease() over to a WRITEONCE(). smpstorerelease() has an internal barrier which is weaker than the new smpmb(). Avoid an extra barrier by converting it to WRITEONCE().
Also refresh/correct misleading comments. READ/WRITEONCE() do not "synchronize" anything themselves.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
During LDT installation, replace smp_store_release() with WRITE_ONCE() and add an smp_mb() before reading mm_cpumask() so new mm-user CPUs see the updated mm->context.ldt.
Event History
Frequently Asked Questions
Which systems are implicated by this issue?
The issue applies to the x86 memory-management code in the Linux kernel and involves processes that use an LDT.
What race condition causes the problem?
It can occur when one CPU installs a new per-mm LDT while another CPU becomes an mm user. The second CPU may add itself to mm_cpumask() and read mm->context.ldt before the installing CPU's LDT write is visible.