AZL-117727: CVE-2026-142921 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
powerpc/interrupt: Use earlyradixenabled() in NMI real-mode guard
radixenabled() uses a jump label which is only valid after setupfeaturekeys() is called. Before that point, on a pSeries hash guest, earlycheckvec5() clears MMUFTRTYPERADIX in curcpuspec->mmufeatures, but the jump label has not yet been patched, so radixenabled() incorrectly returns true.
The dangerous usage window where it goes wrong in earlysetup():
earlysetup: configureexceptions(); <exceptions can happen now, and handler enter/exit can be invoked> <those could use radixenabled(), which returns stale true> setupfeaturekeys(); <jump labels set up; post this it is safe to use radixenabled()>
If an NMI occurs in this window, !radixenabled() evaluates to false in DEFINEINTERRUPTHANDLERNMI. The handler fails to skip NMI entry in real mode and attempts to access memory outside the Real Mode Area (RMA), hanging the boot.
Since common interrupt wrappers do not have the context of early or late, using earlyradixenabled() is the safer option. It does a plain bitmask check against curcpuspec->mmufeatures and is correct at all times.
Console logs from a pSeries HASH guest showing values across boot stages:
[ 0.000000] DEBUG: after earlyinitdevtree: earlyradixenabled=0 radixenabled=1 (mismatch means NMI real-mode check is unsafe!) [ 0.000000] DEBUG: after configureexceptions (DANGEROUS WINDOW): earlyradixenabled=0 radixenabled=1 [ 0.000000] DEBUG: after setupfeaturekeys (jump labels initialized): earlyradixenabled=0 radixenabled=0 (should now match!) [ 0.057124] DEBUG: post secondary CPU bringup: earlyradixenabled=0 radixenabled=0 (should match!)
Console logs from a RADIX guest showing values across boot stages:
[ 0.000000] DEBUG: after earlyinitdevtree: earlyradixenabled=1 radixenabled=1 (mismatch means NMI real-mode check is unsafe!) [ 0.000000] DEBUG: after configureexceptions (DANGEROUS WINDOW): earlyradixenabled=1 radixenabled=1 [ 0.000000] DEBUG: after setupfeaturekeys (jump labels initialized): earlyradixenabled=1 radixenabled=1 (should now match!) [ 0.057016] DEBUG: post secondary CPU bringup: earlyradixenabled=1 radixenabled=1 (should match!)
Add the missing #include <asm/mmu.h> in alphabetical order since earlyradixenabled() is declared there.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the powerpc/interrupt NMI real-mode guard, use early_radix_enabled() instead of radix_enabled(); the jump label used by radix_enabled() is not valid until setup_feature_keys() is called.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The described failure affects pSeries hash guests during early kernel initialization. The vulnerable path depends on the system clearing the radix MMU feature before jump labels are initialized.
What must occur for the failure to be triggered?
An NMI must arrive in the narrow interval after exception handling is configured but before setup_feature_keys() has initialized jump labels. In that window, radix_enabled() can return a stale true value.
What is the observable impact if the issue is triggered?
The NMI handler can attempt to access memory outside the Real Mode Area because it does not skip NMI entry in real mode. This can hang the system during boot.