# CVE-2023-52499: powerpc/47x: Fix 47x syscall return crash

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-03-02T21:52:15.268Z
- **Modified:** 2026-06-17T06:42:52.183Z

## Who should check

- Anyone running Linux \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 29017ab1a539101d9c7bec63cc13a019f97b2820; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 8ac2689502f986a46f4221e239d4ff2897f1ccb3; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 70f6756ad96dd70177dddcfac2fe4bd4bb320746; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< f0eee815babed70a749d2496a7678be5b45b4c14
- Anyone running Linux 5.12

## Description

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

powerpc/47x: Fix 47x syscall return crash

Eddie reported that newer kernels were crashing during boot on his 476
FSP2 system:

  kernel tried to execute user page (b7ee2000) - exploit attempt? (uid: 0)
  BUG: Unable to handle kernel instruction fetch
  Faulting instruction address: 0xb7ee2000
  Oops: Kernel access of bad area, sig: 11 \[\#1\]
  BE PAGE\_SIZE=4K FSP-2
  Modules linked in:
  CPU: 0 PID: 61 Comm: mount Not tainted 6.1.55-d23900f.ppcnf-fsp2 \#1
  Hardware name: ibm,fsp2 476fpe 0x7ff520c0 FSP-2
  NIP:  b7ee2000 LR: 8c008000 CTR: 00000000
  REGS: bffebd83 TRAP: 0400   Not tainted (6.1.55-d23900f.ppcnf-fs p2)
  MSR:  00000030 \<IR,DR\>  CR: 00001000  XER: 20000000
  GPR00: c00110ac bffebe63 bffebe7e bffebe88 8c008000 00001000 00000d12 b7ee2000
  GPR08: 00000033 00000000 00000000 c139df10 48224824 1016c314 10160000 00000000
  GPR16: 10160000 10160000 00000008 00000000 10160000 00000000 10160000 1017f5b0
  GPR24: 1017fa50 1017f4f0 1017fa50 1017f740 1017f630 00000000 00000000 1017f4f0
  NIP \[b7ee2000\] 0xb7ee2000
  LR \[8c008000\] 0x8c008000
  Call Trace:
  Instruction dump:
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  ---\[ end trace 0000000000000000 \]---

The problem is in ret\_from\_syscall where the check for
icache\_44x\_need\_flush is done. When the flush is needed the code jumps
out-of-line to do the flush, and then intends to jump back to continue
the syscall return.

However the branch back to label 1b doesn't return to the correct
location, instead branching back just prior to the return to userspace,
causing bogus register values to be used by the rfi.

The breakage was introduced by commit 6f76a01173cc
("powerpc/syscall: implement system call entry/exit logic in C for PPC32") which
inadvertently removed the "1" label and reused it elsewhere.

Fix it by adding named local labels in the correct locations. Note that
the return label needs to be outside the ifdef so that CONFIG\_PPC\_47x=n
compiles.

## Affected and fixed versions

- Linux: \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 29017ab1a539101d9c7bec63cc13a019f97b2820; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 8ac2689502f986a46f4221e239d4ff2897f1ccb3; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 70f6756ad96dd70177dddcfac2fe4bd4bb320746; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< f0eee815babed70a749d2496a7678be5b45b4c14 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52499.md
Affected: Linux >= 6f76a01173ccaa363739f913394d4e138d92d718, < 29017ab1a539101d9c7bec63cc13a019f97b2820; >= 6f76a01173ccaa363739f913394d4e138d92d718, < 8ac2689502f986a46f4221e239d4ff2897f1ccb3; >= 6f76a01173ccaa363739f913394d4e138d92d718, < 70f6756ad96dd70177dddcfac2fe4bd4bb320746; >= 6f76a01173ccaa363739f91…
Fixed in: Linux 29017ab1a539101d9c7bec63cc13a019f97b2820, Linux 8ac2689502f986a46f4221e239d4ff2897f1ccb3, Linux 70f6756ad96dd70177dddcfac2fe4bd4bb320746

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-52499 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 29017ab1a539101d9c7bec63cc13a019f97b2820; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 8ac2689502f986a46f4221e239d4ff2897f1ccb3; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< 70f6756ad96dd70177dddcfac2fe4bd4bb320746; \>= 6f76a01173ccaa363739f913394d4e138d92d718, \< f0eee815babed70a749d2496a7678be5b45b4c14; Linux 5.12.

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

Yes. Fixed in Linux 29017ab1a539101d9c7bec63cc13a019f97b2820, Linux 8ac2689502f986a46f4221e239d4ff2897f1ccb3, Linux 70f6756ad96dd70177dddcfac2fe4bd4bb320746. No fix listed yet: follow the vendor advisory.

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

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/29017ab1a539101d9c7bec63cc13a019f97b2820>
- patch: <https://git.kernel.org/stable/c/8ac2689502f986a46f4221e239d4ff2897f1ccb3>
- patch: <https://git.kernel.org/stable/c/70f6756ad96dd70177dddcfac2fe4bd4bb320746>
- patch: <https://git.kernel.org/stable/c/f0eee815babed70a749d2496a7678be5b45b4c14>

## 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-52499>

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