CVE-2026-142925: RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation
During VM live migration or when registering large memory regions (e.g., guest memory >= 256 GB backed by 4 KiB pages), getlvl2pble() calculates total leaves exceeding ~131,072. The memory required for lvl2->leafmem.va exceeds 4 MiB (sizeof(leaf) total > 5.24 MiB).
Because kzalloc() requires physically contiguous pages, requests larger than MAXPAGEORDER (4 MiB on x8664) fail and trigger a warning:
WARNING: CPU: 123 PID: 119906 at mm/pagealloc.c:5997 allocfrozenpagesnoprof+0x50c/0x1050 Call Trace: <TASK> allocfrozenpagesnoprof+0xc0/0x240 kmalloclargenode+0x3d/0xd0 kmalloclargenodenoprof+0x1b/0x90 kmallocnoprof+0x254/0x660 getlvl1lvl2pble+0xbc/0x270 [irdma] irdmagetpble+0x44/0xc0 [irdma] irdmasetuppbles+0x46/0x1d0 [irdma] irdmaregusermrtypemem+0x41/0x230 [irdma] irdmaregusermr+0x194/0x1c0 [irdma] ibuverbsregmr+0x1b0/0x2c0 [ibuverbs]
The leafmem array is purely host software tracking structures (struct irdmapbleinfo) and does not require physically contiguous memory.
Switch the allocation from kzalloc() to kvzalloc() and free it with kvfree() so that requests exceeding MAXPAGEORDER fall back to virtually contiguous memory via vmalloc.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
In RDMA/irdma, allocate lvl2 leafmem with kvzalloc() instead of kzalloc() and free it with kvfree() so large allocations can use virtually contiguous memory.
Event History
Frequently Asked Questions
Which systems are most likely to encounter this issue?
Systems using the Linux irdma RDMA driver are affected when they perform VM live migration or register very large memory regions. The described trigger is guest memory of at least 256 GB backed by 4 KiB pages, which can require more than approximately 131,072 level-2 leaves.
How can I identify this condition in logs?
The failure produces a kernel allocation warning from __alloc_frozen_pages_noprof. The call trace includes get_lvl1_lvl2_pble and irdma_get_pble in the irdma module, followed by irdma_reg_user_mr_type_mem or irdma_reg_user_mr.
What is the practical failure mode?
The driver attempts a physically contiguous kzalloc allocation for the level-2 leafmem array. When that request exceeds the maximum page order, the allocation fails and emits a warning during memory-region setup.