# CVE-2026-98395: powerpc/entry: Fix irq\_soft\_mask corruption on replayed interrupt exit

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-10-14T13:25:57.887Z
- **Modified:** 2026-10-19T10:18:42.880Z

## Who should check

- Anyone running Linux \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 95cd316a896f1c1aa4ee4a817ba3d4691103c81b; \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd
- Anyone running Linux 7.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

powerpc/entry: Fix irq\_soft\_mask corruption on replayed interrupt exit

When \_\_replay\_soft\_interrupts() replays a pending interrupt (e.g.
PACA\_IRQ\_DEC -\> timer\_interrupt), it calls the handler directly with a
synthetic pt\_regs. The DEFINE\_INTERRUPT\_HANDLER\_ASYNC wrapper around
each handler calls arch\_interrupt\_async\_exit\_prepare() on the way out,
which calls arch\_interrupt\_exit\_prepare() -\> local\_irq\_disable() -\>
arch\_local\_irq\_disable(), which does:

    irq\_soft\_mask\_set(IRQS\_DISABLED)   /\* 0x1 \*/

This unconditionally overwrites irq\_soft\_mask with IRQS\_DISABLED (0x1),
stripping the IRQS\_PMI\_DISABLED (0x2) bit. The result is that
irq\_soft\_mask is 0x1 instead of IRQS\_ALL\_DISABLED (0x3) when the
handler returns to \_\_replay\_soft\_interrupts().

For a normally-taken interrupt this is harmless: the next interrupt
always enters through arch\_interrupt\_enter\_prepare() which
unconditionally sets irq\_soft\_mask to IRQS\_ALL\_DISABLED. But during
replay, next\_interrupt() is called directly between replayed handlers
without going back through arch\_interrupt\_enter\_prepare(), so the
stripped bit is never restored. next\_interrupt() then fires a WARNING:

    WARNING: arch/powerpc/kernel/irq\_64.c:75
    WARN\_ON(irq\_soft\_mask\_return() != IRQS\_ALL\_DISABLED)

The warning was observed early in boot on a POWER10 pseries guest
during kmem\_cache\_init\_late(), where a spinlock release triggers
interrupt replay that processes a pending timer interrupt.

Debugger state confirming the bug:
  Before timer\_interrupt(&regs):
    irq\_soft\_mask = 0x3 (IRQS\_ALL\_DISABLED)   correct
    irq\_happened  = 0x41 (HARD\_DIS\|REPLAYING)  correct
  After timer\_interrupt(&regs) returns:
    irq\_soft\_mask = 0x1 (IRQS\_DISABLED)        WRONG - PMI bit stripped
    irq\_happened  = 0x41                        unchanged

The fix is to replace local\_irq\_disable() with hard\_irq\_disable().

hard\_irq\_disable() is the right primitive here for two reasons:

1. On PPC64 (hw\_irq.h:301) it calls irq\_soft\_mask\_set\_return(IRQS\_ALL\_DISABLED),
   setting the soft mask to 0x3 (both IRQS\_DISABLED and IRQS\_PMI\_DISABLED),
   which preserves the PMI bit and fixes the WARNING. The additional
   work it does (\_\_hard\_irq\_disable(), PACA\_IRQ\_HARD\_DIS \|=) is
   redundant but safe since both are already set at this point in the
   exit path; the trace\_hardirqs\_off() inside is guarded by
   if (!arch\_irqs\_disabled\_flags(flags)) so it will not double-fire.

2. On PPC32 (hw\_irq.h:467) hard\_irq\_disable() maps to
   arch\_local\_irq\_disable() -\> \_\_hard\_irq\_disable(), which clears
   MSR\[EE\] in hardware. This is exactly correct: PPC32 has no soft-mask
   PACA mechanism, so the hardware disable is the right way to satisfy
   irqentry\_exit()'s requirement. This also fixes a build error on PPC32
   where irq\_soft\_mask\_set() is only defined under CONFIG\_PPC64:

       arch/powerpc/include/asm/entry-common.h:273: error: implicit
       declaration of function 'irq\_soft\_mask\_set'

   Using hard\_irq\_disable() requires no \#ifdef and is consistent with
   how the rest of the entry code (e.g. entry-common.h:463) handles the
   same PPC32/PPC64 split.

## Affected and fixed versions

- Linux: \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 95cd316a896f1c1aa4ee4a817ba3d4691103c81b; \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

- Upgrade Linux to 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98395.md
Affected: Linux >= 334f3f6d7a1660fd65597bad9960bfa33a716d35, < 95cd316a896f1c1aa4ee4a817ba3d4691103c81b; >= 334f3f6d7a1660fd65597bad9960bfa33a716d35, < 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd; Linux 7.2
Fixed in: Linux 95cd316a896f1c1aa4ee4a817ba3d4691103c81b, Linux 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98395 being exploited?

There is no confirmed exploitation: CVE-2026-98395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98395?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98395?

Linux \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 95cd316a896f1c1aa4ee4a817ba3d4691103c81b; \>= 334f3f6d7a1660fd65597bad9960bfa33a716d35, \< 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd; Linux 7.2.

### Is there a fix for CVE-2026-98395?

Yes. Fixed in Linux 95cd316a896f1c1aa4ee4a817ba3d4691103c81b, Linux 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd. Upgrade Linux to 63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd or later.

### How do I check if I'm affected by CVE-2026-98395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/95cd316a896f1c1aa4ee4a817ba3d4691103c81b>
- other: <https://git.kernel.org/stable/c/63a7531ca31f9f097d9cc1cc3fe86ae683cdabdd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98395>

HTML: <https://flawdb.com/CVE-2026-98395> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98395>
