# CVE-2025-71078: powerpc/64s/slb: Fix SLB multihit issue during SLB preload

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-01-13T15:34:43.437Z
- **Modified:** 2026-10-19T19:17:08.507Z

## Who should check

- Anyone running Linux \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 01324c0328181b94cf390bda22ff91c75126ea57; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 2e9a95d60f1df7b57618fd5ef057aef331575bd2; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< c9f865022a1823d814032a09906e91e4701a35fc; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< b13a3dbfa196af68eae2031f209743735ad416bf; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 895123c309a34d2cfccf7812b41e17261a3a6f37; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 4ae1e46d8a290319f33f71a2710a1382ba5431e8; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 00312419f0863964625d6dcda8183f96849412c6
- Anyone running Linux 4.20

## Description

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

powerpc/64s/slb: Fix SLB multihit issue during SLB preload

On systems using the hash MMU, there is a software SLB preload cache that
mirrors the entries loaded into the hardware SLB buffer. This preload
cache is subject to periodic eviction — typically after every 256 context
switches — to remove old entry.

To optimize performance, the kernel skips switch\_mmu\_context() in
switch\_mm\_irqs\_off() when the prev and next mm\_struct are the same.
However, on hash MMU systems, this can lead to inconsistencies between
the hardware SLB and the software preload cache.

If an SLB entry for a process is evicted from the software cache on one
CPU, and the same process later runs on another CPU without executing
switch\_mmu\_context(), the hardware SLB may retain stale entries. If the
kernel then attempts to reload that entry, it can trigger an SLB
multi-hit error.

The following timeline shows how stale SLB entries are created and can
cause a multi-hit error when a process moves between CPUs without a
MMU context switch.

CPU 0                                   CPU 1
-----                                    -----
Process P
exec                                    swapper/1
 load\_elf\_binary
  begin\_new\_exc
    activate\_mm
     switch\_mm\_irqs\_off
      switch\_mmu\_context
       switch\_slb
       /\*
        \* This invalidates all
        \* the entries in the HW
        \* and setup the new HW
        \* SLB entries as per the
        \* preload cache.
        \*/
context\_switch
sched\_migrate\_task migrates process P to cpu-1

Process swapper/0                       context switch (to process P)
(uses mm\_struct of Process P)           switch\_mm\_irqs\_off()
                                         switch\_slb
                                           load\_slb++
                                            /\*
                                            \* load\_slb becomes 0 here
                                            \* and we evict an entry from
                                            \* the preload cache with
                                            \* preload\_age(). We still
                                            \* keep HW SLB and preload
                                            \* cache in sync, that is
                                            \* because all HW SLB entries
                                            \* anyways gets evicted in
                                            \* switch\_slb during SLBIA.
                                            \* We then only add those
                                            \* entries back in HW SLB,
                                            \* which are currently
                                            \* present in preload\_cache
                                            \* (after eviction).
                                            \*/
                                        load\_elf\_binary continues...
                                         setup\_new\_exec()
                                          slb\_setup\_new\_exec()

                                        sched\_switch event
                                        sched\_migrate\_task migrates
                                        process P to cpu-0

context\_switch from swapper/0 to Process P
 switch\_mm\_irqs\_off()
  /\*
   \* Since both prev and next mm struct are same we don't call
   \* switch\_mmu\_context(). This will cause the HW SLB and SW preload
   \* cache to go out of sync in preload\_new\_slb\_context. Because there
   \* was an SLB entry which was evicted from both HW and preload cache
   \* on cpu-1. Now later in preload\_new\_slb\_context(), when we will try
   \* to add the same preload entry again, we will add this to the SW
   \* preload cache and then will add it to the HW SLB. Since on cpu-0
   \* this entry was never invalidated, hence adding this entry to the HW
   \* SLB will cause a SLB multi-hit error.
   \*/
load\_elf\_binary cont
---truncated---

## Affected and fixed versions

- Linux: \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 01324c0328181b94cf390bda22ff91c75126ea57; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 2e9a95d60f1df7b57618fd5ef057aef331575bd2; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< c9f865022a1823d814032a09906e91e4701a35fc; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< b13a3dbfa196af68eae2031f209743735ad416bf; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 895123c309a34d2cfccf7812b41e17261a3a6f37; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 4ae1e46d8a290319f33f71a2710a1382ba5431e8; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 00312419f0863964625d6dcda8183f96849412c6 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 00312419f0863964625d6dcda8183f96849412c6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-71078.md
Affected: Linux >= 5434ae74629af58ad0fc27143a9ea435f7734410, < 01324c0328181b94cf390bda22ff91c75126ea57; >= 5434ae74629af58ad0fc27143a9ea435f7734410, < 2e9a95d60f1df7b57618fd5ef057aef331575bd2; >= 5434ae74629af58ad0fc27143a9ea435f7734410, < c9f865022a1823d814032a09906e91e4701a35fc; >= 5434ae74629af58ad0fc271…
Fixed in: Linux 01324c0328181b94cf390bda22ff91c75126ea57, Linux 2e9a95d60f1df7b57618fd5ef057aef331575bd2, Linux 895123c309a34d2cfccf7812b41e17261a3a6f37, Linux 4ae1e46d8a290319f33f71a2710a1382ba5431e8, Linux 00312419f0863964625d6dcda8183f96849412c6

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-2025-71078 being exploited?

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

### How serious is CVE-2025-71078?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-71078?

Linux \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 01324c0328181b94cf390bda22ff91c75126ea57; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 2e9a95d60f1df7b57618fd5ef057aef331575bd2; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< c9f865022a1823d814032a09906e91e4701a35fc; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< b13a3dbfa196af68eae2031f209743735ad416bf; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 895123c309a34d2cfccf7812b41e17261a3a6f37; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 4ae1e46d8a290319f33f71a2710a1382ba5431e8; \>= 5434ae74629af58ad0fc27143a9ea435f7734410, \< 00312419f0863964625d6dcda8183f96849412c6; Linux 4.20.

### Is there a fix for CVE-2025-71078?

Yes. Fixed in Linux 01324c0328181b94cf390bda22ff91c75126ea57, Linux 2e9a95d60f1df7b57618fd5ef057aef331575bd2, Linux 895123c309a34d2cfccf7812b41e17261a3a6f37, Linux 4ae1e46d8a290319f33f71a2710a1382ba5431e8, Linux 00312419f0863964625d6dcda8183f96849412c6. Upgrade Linux to 00312419f0863964625d6dcda8183f96849412c6 or later.

### How do I check if I'm affected by CVE-2025-71078?

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

- patch: <https://git.kernel.org/stable/c/01324c0328181b94cf390bda22ff91c75126ea57>
- patch: <https://git.kernel.org/stable/c/2e9a95d60f1df7b57618fd5ef057aef331575bd2>
- patch: <https://git.kernel.org/stable/c/c9f865022a1823d814032a09906e91e4701a35fc>
- patch: <https://git.kernel.org/stable/c/b13a3dbfa196af68eae2031f209743735ad416bf>
- patch: <https://git.kernel.org/stable/c/895123c309a34d2cfccf7812b41e17261a3a6f37>
- patch: <https://git.kernel.org/stable/c/4ae1e46d8a290319f33f71a2710a1382ba5431e8>
- patch: <https://git.kernel.org/stable/c/00312419f0863964625d6dcda8183f96849412c6>

## 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-2025-71078>

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