# CVE-2022-49440: powerpc/rtas: Keep MSR\[RI\] set when calling RTAS

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-26T02:12:53.988Z
- **Modified:** 2026-06-17T05:18:03.313Z

## Who should check

- Anyone running Linux \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< c9c41f0273826a13ac93124e66a4ff45df281ba0; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< b6b1c3ce06ca438eb24e0f45bf0e63ecad0369f5
- Anyone running Linux 2.6.34

## Description

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

powerpc/rtas: Keep MSR\[RI\] set when calling RTAS

RTAS runs in real mode (MSR\[DR\] and MSR\[IR\] unset) and in 32-bit big
endian mode (MSR\[SF,LE\] unset).

The change in MSR is done in enter\_rtas() in a relatively complex way,
since the MSR value could be hardcoded.

Furthermore, a panic has been reported when hitting the watchdog interrupt
while running in RTAS, this leads to the following stack trace:

  watchdog: CPU 24 Hard LOCKUP
  watchdog: CPU 24 TB:997512652051031, last heartbeat TB:997504470175378 (15980ms ago)
  ...
  Supported: No, Unreleased kernel
  CPU: 24 PID: 87504 Comm: drmgr Kdump: loaded Tainted: G            E  X    5.14.21-150400.71.1.bz196362\_2-default \#1 SLE15-SP4 (unreleased) 0d821077ef4faa8dfaf370efb5fdca1fa35f4e2c
  NIP:  000000001fb41050 LR: 000000001fb4104c CTR: 0000000000000000
  REGS: c00000000fc33d60 TRAP: 0100   Tainted: G            E  X     (5.14.21-150400.71.1.bz196362\_2-default)
  MSR:  8000000002981000 \<SF,VEC,VSX,ME\>  CR: 48800002  XER: 20040020
  CFAR: 000000000000011c IRQMASK: 1
  GPR00: 0000000000000003 ffffffffffffffff 0000000000000001 00000000000050dc
  GPR04: 000000001ffb6100 0000000000000020 0000000000000001 000000001fb09010
  GPR08: 0000000020000000 0000000000000000 0000000000000000 0000000000000000
  GPR12: 80040000072a40a8 c00000000ff8b680 0000000000000007 0000000000000034
  GPR16: 000000001fbf6e94 000000001fbf6d84 000000001fbd1db0 000000001fb3f008
  GPR20: 000000001fb41018 ffffffffffffffff 000000000000017f fffffffffffff68f
  GPR24: 000000001fb18fe8 000000001fb3e000 000000001fb1adc0 000000001fb1cf40
  GPR28: 000000001fb26000 000000001fb460f0 000000001fb17f18 000000001fb17000
  NIP \[000000001fb41050\] 0x1fb41050
  LR \[000000001fb4104c\] 0x1fb4104c
  Call Trace:
  Instruction dump:
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  Oops: Unrecoverable System Reset, sig: 6 \[\#1\]
  LE PAGE\_SIZE=64K MMU=Hash SMP NR\_CPUS=2048 NUMA pSeries
  ...
  Supported: No, Unreleased kernel
  CPU: 24 PID: 87504 Comm: drmgr Kdump: loaded Tainted: G            E  X    5.14.21-150400.71.1.bz196362\_2-default \#1 SLE15-SP4 (unreleased) 0d821077ef4faa8dfaf370efb5fdca1fa35f4e2c
  NIP:  000000001fb41050 LR: 000000001fb4104c CTR: 0000000000000000
  REGS: c00000000fc33d60 TRAP: 0100   Tainted: G            E  X     (5.14.21-150400.71.1.bz196362\_2-default)
  MSR:  8000000002981000 \<SF,VEC,VSX,ME\>  CR: 48800002  XER: 20040020
  CFAR: 000000000000011c IRQMASK: 1
  GPR00: 0000000000000003 ffffffffffffffff 0000000000000001 00000000000050dc
  GPR04: 000000001ffb6100 0000000000000020 0000000000000001 000000001fb09010
  GPR08: 0000000020000000 0000000000000000 0000000000000000 0000000000000000
  GPR12: 80040000072a40a8 c00000000ff8b680 0000000000000007 0000000000000034
  GPR16: 000000001fbf6e94 000000001fbf6d84 000000001fbd1db0 000000001fb3f008
  GPR20: 000000001fb41018 ffffffffffffffff 000000000000017f fffffffffffff68f
  GPR24: 000000001fb18fe8 000000001fb3e000 000000001fb1adc0 000000001fb1cf40
  GPR28: 000000001fb26000 000000001fb460f0 000000001fb17f18 000000001fb17000
  NIP \[000000001fb41050\] 0x1fb41050
  LR \[000000001fb4104c\] 0x1fb4104c
  Call Trace:
  Instruction dump:
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
  ---\[ end trace 3ddec07f638c34a2 \]---

This happens because MSR\[RI\] is unset when entering RTAS but there is no
valid reason to not set it here.

RTAS is expected to be called with MSR\[RI\] as specified in PAPR+ section
"7.2.1 Machine State":

  R1–7.2.1–9. If called with MSR\[RI\] equal to 1, then RTAS must protect
  its own critical regions from recursion by setting the MSR\[RI\] bit to
  0 when in the critical regions.

Fixing this by reviewing the way MSR is compute before calling RTAS. Now a
hardcoded value meaning real 
---truncated---

## Affected and fixed versions

- Linux: \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< c9c41f0273826a13ac93124e66a4ff45df281ba0; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< b6b1c3ce06ca438eb24e0f45bf0e63ecad0369f5 (cvelist)
- Linux: 2.6.34 (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-2022-49440. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49440.md
Affected: Linux >= 44c9f3cc1a07503b653b571eac5792436da39a30, < 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d; >= 44c9f3cc1a07503b653b571eac5792436da39a30, < 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3; >= 44c9f3cc1a07503b653b571eac5792436da39a30, < c9c41f0273826a13ac93124e66a4ff45df281ba0; >= 44c9f3cc1a07503b653b571…
Fixed in: Linux 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d, Linux 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3

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-2022-49440 being exploited?

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

### How serious is CVE-2022-49440?

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

### Which versions are affected by CVE-2022-49440?

Linux \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< c9c41f0273826a13ac93124e66a4ff45df281ba0; \>= 44c9f3cc1a07503b653b571eac5792436da39a30, \< b6b1c3ce06ca438eb24e0f45bf0e63ecad0369f5; Linux 2.6.34.

### Is there a fix for CVE-2022-49440?

Yes. Fixed in Linux 5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d, Linux 5f4367448f6817c8a0e94dc9736ed84fa8eee4a3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49440?

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/5ca40fcf0da0ce2b5bc44e7d8b036535955f2e3d>
- patch: <https://git.kernel.org/stable/c/5f4367448f6817c8a0e94dc9736ed84fa8eee4a3>
- patch: <https://git.kernel.org/stable/c/c9c41f0273826a13ac93124e66a4ff45df281ba0>
- patch: <https://git.kernel.org/stable/c/b6b1c3ce06ca438eb24e0f45bf0e63ecad0369f5>

## 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-2022-49440>

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