# CVE-2022-49666: powerpc/memhotplug: Add add\_pages override for PPC

> 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:24:01.148Z
- **Modified:** 2026-06-17T05:18:47.597Z

## Who should check

- Anyone running Linux \>= fddb88bd266f4513abab7c36bca98935c9148a98, \< 89296ac435e2cf8a5101f7fab8f0c7b754b92052; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< 84d146fd35a01b08e9515041de60f0f915a417d5; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< ac790d09885d36143076e7e02825c541e8eee899; deab81144d5a043f42804207fb76cfbd8a806978; d36febbcd537fcc50284e8b89609632d0146529f; a3727c25eacd7e437c4f560957fa3a376fe93e6b; cbc065efcba000ad8f615f506ebe61b6d3c5145b; \>= 5.15.34, \< 5.15.53; \>= 5.4.190, \< 5.5; \>= 5.10.111, \< 5.11; …
- Anyone running Linux 5.18

## Description

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

powerpc/memhotplug: Add add\_pages override for PPC

With commit ffa0b64e3be5 ("powerpc: Fix virt\_addr\_valid() for 64-bit Book3E & 32-bit")
the kernel now validate the addr against high\_memory value. This results
in the below BUG\_ON with dax pfns.

\[  635.798741\]\[T26531\] kernel BUG at mm/page\_alloc.c:5521!
1:mon\> e
cpu 0x1: Vector: 700 (Program Check) at \[c000000007287630\]
    pc: c00000000055ed48: free\_pages.part.0+0x48/0x110
    lr: c00000000053ca70: tlb\_finish\_mmu+0x80/0xd0
    sp: c0000000072878d0
   msr: 800000000282b033
  current = 0xc00000000afabe00
  paca    = 0xc00000037ffff300   irqmask: 0x03   irq\_happened: 0x05
    pid   = 26531, comm = 50-landscape-sy
kernel BUG at :5521!
Linux version 5.19.0-rc3-14659-g4ec05be7c2e1 (kvaneesh@ltc-boston8) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) \#625 SMP Thu Jun 23 00:35:43 CDT 2022
1:mon\> t
\[link register   \] c00000000053ca70 tlb\_finish\_mmu+0x80/0xd0
\[c0000000072878d0\] c00000000053ca54 tlb\_finish\_mmu+0x64/0xd0 (unreliable)
\[c000000007287900\] c000000000539424 exit\_mmap+0xe4/0x2a0
\[c0000000072879e0\] c00000000019fc1c mmput+0xcc/0x210
\[c000000007287a20\] c000000000629230 begin\_new\_exec+0x5e0/0xf40
\[c000000007287ae0\] c00000000070b3cc load\_elf\_binary+0x3ac/0x1e00
\[c000000007287c10\] c000000000627af0 bprm\_execve+0x3b0/0xaf0
\[c000000007287cd0\] c000000000628414 do\_execveat\_common.isra.0+0x1e4/0x310
\[c000000007287d80\] c00000000062858c sys\_execve+0x4c/0x60
\[c000000007287db0\] c00000000002c1b0 system\_call\_exception+0x160/0x2c0
\[c000000007287e10\] c00000000000c53c system\_call\_common+0xec/0x250

The fix is to make sure we update high\_memory on memory hotplug.
This is similar to what x86 does in commit 3072e413e305 ("mm/memory\_hotplug: introduce add\_pages")

## Affected and fixed versions

- Linux: \>= fddb88bd266f4513abab7c36bca98935c9148a98, \< 89296ac435e2cf8a5101f7fab8f0c7b754b92052; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< 84d146fd35a01b08e9515041de60f0f915a417d5; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< ac790d09885d36143076e7e02825c541e8eee899; deab81144d5a043f42804207fb76cfbd8a806978; d36febbcd537fcc50284e8b89609632d0146529f; a3727c25eacd7e437c4f560957fa3a376fe93e6b; cbc065efcba000ad8f615f506ebe61b6d3c5145b; \>= 5.15.34, \< 5.15.53; \>= 5.4.190, \< 5.5; \>= 5.10.111, \< 5.11; … (cvelist)
- Linux: 5.18 (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-49666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49666.md
Affected: Linux >= fddb88bd266f4513abab7c36bca98935c9148a98, < 89296ac435e2cf8a5101f7fab8f0c7b754b92052; >= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, < 84d146fd35a01b08e9515041de60f0f915a417d5; >= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, < ac790d09885d36143076e7e02825c541e8eee899; deab81144d5a043f42804207fb…
Fixed in: Linux 89296ac435e2cf8a5101f7fab8f0c7b754b92052, Linux 84d146fd35a01b08e9515041de60f0f915a417d5, Linux 5.15.53, Linux 5.5, Linux 5.11

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

There is no confirmed exploitation: CVE-2022-49666 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-49666?

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

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

Linux \>= fddb88bd266f4513abab7c36bca98935c9148a98, \< 89296ac435e2cf8a5101f7fab8f0c7b754b92052; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< 84d146fd35a01b08e9515041de60f0f915a417d5; \>= ffa0b64e3be58519ae472ea29a1a1ad681e32f48, \< ac790d09885d36143076e7e02825c541e8eee899; deab81144d5a043f42804207fb76cfbd8a806978; d36febbcd537fcc50284e8b89609632d0146529f; a3727c25eacd7e437c4f560957fa3a376fe93e6b; cbc065efcba000ad8f615f506ebe61b6d3c5145b; \>= 5.15.34, \< 5.15.53; \>= 5.4.190, \< 5.5; \>= 5.10.111, \< 5.11; …; Linux 5.18.

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

Yes. Fixed in Linux 89296ac435e2cf8a5101f7fab8f0c7b754b92052, Linux 84d146fd35a01b08e9515041de60f0f915a417d5, Linux 5.15.53, Linux 5.5, Linux 5.11. No fix listed yet: follow the vendor advisory.

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

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/89296ac435e2cf8a5101f7fab8f0c7b754b92052>
- patch: <https://git.kernel.org/stable/c/84d146fd35a01b08e9515041de60f0f915a417d5>
- patch: <https://git.kernel.org/stable/c/ac790d09885d36143076e7e02825c541e8eee899>

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

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