# CVE-2023-52740: powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.22% (percentile 7, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2024-05-21T15:23:03.201Z
- **Modified:** 2026-06-17T06:43:28.253Z

## Who should check

- Anyone running Linux \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 86f7e423933608d536015a0f2eb9e0338c1227e0; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 6f097c24815e67909a1fcc2c605586d02babd673; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1
- Anyone running Linux 5.14

## Description

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

powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch

The RFI and STF security mitigation options can flip the
interrupt\_exit\_not\_reentrant static branch condition concurrently with
the interrupt exit code which tests that branch.

Interrupt exit tests this condition to set MSR\[EE\|RI\] for exit, then
again in the case a soft-masked interrupt is found pending, to recover
the MSR so the interrupt can be replayed before attempting to exit
again. If the condition changes between these two tests, the MSR and irq
soft-mask state will become corrupted, leading to warnings and possible
crashes. For example, if the branch is initially true then false,
MSR\[EE\] will be 0 but PACA\_IRQ\_HARD\_DIS clear and EE may not get
enabled, leading to warnings in irq\_64.c.

## Affected and fixed versions

- Linux: \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 86f7e423933608d536015a0f2eb9e0338c1227e0; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 6f097c24815e67909a1fcc2c605586d02babd673; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52740.md
Affected: Linux >= 13799748b957bc5659f97c036224b0f4b42172e2, < 86f7e423933608d536015a0f2eb9e0338c1227e0; >= 13799748b957bc5659f97c036224b0f4b42172e2, < 6f097c24815e67909a1fcc2c605586d02babd673; >= 13799748b957bc5659f97c036224b0f4b42172e2, < 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1; Linux 5.14
Fixed in: Linux 86f7e423933608d536015a0f2eb9e0338c1227e0, Linux 6f097c24815e67909a1fcc2c605586d02babd673, Linux 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1

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-2023-52740 being exploited?

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

### How serious is CVE-2023-52740?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-52740?

Linux \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 86f7e423933608d536015a0f2eb9e0338c1227e0; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 6f097c24815e67909a1fcc2c605586d02babd673; \>= 13799748b957bc5659f97c036224b0f4b42172e2, \< 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1; Linux 5.14.

### Is there a fix for CVE-2023-52740?

Yes. Fixed in Linux 86f7e423933608d536015a0f2eb9e0338c1227e0, Linux 6f097c24815e67909a1fcc2c605586d02babd673, Linux 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1. Upgrade Linux to 2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1 or later.

### How do I check if I'm affected by CVE-2023-52740?

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/86f7e423933608d536015a0f2eb9e0338c1227e0>
- patch: <https://git.kernel.org/stable/c/6f097c24815e67909a1fcc2c605586d02babd673>
- patch: <https://git.kernel.org/stable/c/2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1>

## 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-2023-52740>

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