# CVE-2025-38233: powerpc64/ftrace: fix clobbered r15 during livepatching

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:46.293Z
- Modified: 2026-08-05T12:00:33.319Z
- Assigned by: Linux

## Description

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

powerpc64/ftrace: fix clobbered r15 during livepatching

While r15 is clobbered always with PPC_FTRACE_OUT_OF_LINE, it is
not restored in livepatch sequence leading to not so obvious fails
like below:

  BUG: Unable to handle kernel data access on write at 0xc0000000000f9078
  Faulting instruction address: 0xc0000000018ff958
  Oops: Kernel access of bad area, sig: 11 [#1]
  ...
  NIP:  c0000000018ff958 LR: c0000000018ff930 CTR: c0000000009c0790
  REGS: c00000005f2e7790 TRAP: 0300   Tainted: G              K      (6.14.0+)
  MSR:  8000000000009033 <SF,EE,ME,IR,DR,RI,LE>  CR: 2822880b  XER: 20040000
  CFAR: c0000000008addc0 DAR: c0000000000f9078 DSISR: 0a000000 IRQMASK: 1
  GPR00: c0000000018f2584 c00000005f2e7a30 c00000000280a900 c000000017ffa488
  GPR04: 0000000000000008 0000000000000000 c0000000018f24fc 000000000000000d
  GPR08: fffffffffffe0000 000000000000000d 0000000000000000 0000000000008000
  GPR12: c0000000009c0790 c000000017ffa480 c00000005f2e7c78 c0000000000f9070
  GPR16: c00000005f2e7c90 0000000000000000 0000000000000000 0000000000000000
  GPR20: 0000000000000000 c00000005f3efa80 c00000005f2e7c60 c00000005f2e7c88
  GPR24: c00000005f2e7c60 0000000000000001 c0000000000f9078 0000000000000000
  GPR28: 00007fff97960000 c000000017ffa480 0000000000000000 c0000000000f9078
  ...
  Call Trace:
    check_heap_object+0x34/0x390 (unreliable)
  __mutex_unlock_slowpath.isra.0+0xe4/0x230
  seq_read_iter+0x430/0xa90
  proc_reg_read_iter+0xa4/0x200
  vfs_read+0x41c/0x510
  ksys_read+0xa4/0x190
  system_call_exception+0x1d0/0x440
  system_call_vectored_common+0x15c/0x2ec

Fix it by restoring r15 always.

(As written by CVE List.)

## Affected

- Linux Linux: from eec37961a56aa4f3fe1c33ffd48eec7d1bb0c009 before a9212bf5ca640232254b31330e86272fe4073bc9; from eec37961a56aa4f3fe1c33ffd48eec7d1bb0c009 before cb5b691f8273432297611863ac142e17119279e0; 6.13 (not affected: before 6.13; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.13 before 6.15.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/a9212bf5ca640232254b31330e86272fe4073bc9> (patch)
- <https://git.kernel.org/stable/c/cb5b691f8273432297611863ac142e17119279e0> (patch)

## Sources

- CVE List: [CVE-2025-38233](https://www.cve.org/CVERecord?id=CVE-2025-38233), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38233](https://nvd.nist.gov/vuln/detail/CVE-2025-38233), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38233 · Whole record: https://cve.day/CVE-2025-38233.json · Rebuilt by cve.day 2026-11-25T22:59:00.662Z
