CVE-2022-49666

powerpc/memhotplug: Add add_pages override for PPC

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:24 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.10.111v ≥ 5.16.20v ≥ 5.17.3v ≥ 5.4.1905.10.111 ≤ v < 5.115.15.34 ≤ v < 5.15.535.16.20 ≤ v < 5.175.17.3 ≤ v < 5.185.18 ≤ v < 5.18.105.18 ≤ v < 5.195.18.1 ≤ v < 5.18.105.4.190 ≤ v < 5.55.10.1115.15.345.16.205.17.35.185.18 rc25.18 rc35.18 rc45.18 rc55.18 rc65.18 rc75.19 rc15.19 rc25.19 rc35.19 rc45.4.190a3727c25eacd7e437c4f560957fa3a376fe93e6bcbc065efcba000ad8f615f506ebe61b6d3c5145bd36febbcd537fcc50284e8b89609632d0146529fdeab81144d5a043f42804207fb76cfbd8a806978fddb88bd266f4513abab7c36bca98935c9148a98ffa0b64e3be58519ae472ea29a1a1ad681e32f48
Vendor states this is fixed in 84d146fd35a01b08e9515041de60f0f915a417d5 (fixed)
Vendor states this is fixed in 89296ac435e2cf8a5101f7fab8f0c7b754b92052 (fixed)
Vendor states this is fixed in ac790d09885d36143076e7e02825c541e8eee899 (fixed)
Affected range stops below 5.11, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.15.53 (unaffected)
Affected range stops below 5.17, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.18.10 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Affected range stops below 5.5, so it looks safe — our inference, not a vendor statement

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/84d146fd35a01b08e9515041de60f0f915a417d5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/89296ac435e2cf8a5101f7fab8f0c7b754b92052
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac790d09885d36143076e7e02825c541e8eee899

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card