RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation

Summary

CVECVE-2026-142925
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:33 UTC
Updated2026-12-03 04:18:33 UTC
DescriptionIn 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), get_lvl2_pble() 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 MAX_PAGE_ORDER (4 MiB on x86_64) fail and trigger a warning: WARNING: CPU: 123 PID: 119906 at mm/page_alloc.c:5997 __alloc_frozen_pages_noprof+0x50c/0x1050 Call Trace: <TASK> alloc_frozen_pages_noprof+0xc0/0x240 ___kmalloc_large_node+0x3d/0xd0 __kmalloc_large_node_noprof+0x1b/0x90 __kmalloc_noprof+0x254/0x660 get_lvl1_lvl2_pble+0xbc/0x270 [irdma] irdma_get_pble+0x44/0xc0 [irdma] irdma_setup_pbles+0x46/0x1d0 [irdma] irdma_reg_user_mr_type_mem+0x41/0x230 [irdma] irdma_reg_user_mr+0x194/0x1c0 [irdma] ib_uverbs_reg_mr+0x1b0/0x2c0 [ib_uverbs] The leafmem array is purely host software tracking structures (struct irdma_pble_info) and does not require physically contiguous memory. Switch the allocation from kzalloc() to kvzalloc() and free it with kvfree() so that requests exceeding MAX_PAGE_ORDER fall back to virtually contiguous memory via vmalloc.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 82bf32ebdc3e0422fa5a3c45a9f663ea79eb8eb0 git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 2c34bad69ccb25d6f299fa198048a73d23d73cc2 git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 73515120c00f9b2d045cddd157bd4b52e302a8d2 git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 06c5a668a40220614e22a4d332be50c4cb2a8810 git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 753760684706fcb37b3f26714fd1dc22b947a53c git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 98c6b351fd8ac59bd304c02d1098b7ce27262791 git Not specified
CNA Linux Linux affected e8c4dbc2fcacf5a7468d312168bb120c27c38b32 9c40f13a63a4b87177de3e8c318af25068fc6ab4 git Not specified
CNA Linux Linux affected 5.14 Not specified
CNA Linux Linux unaffected 5.14 semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/98c6b351fd8ac59bd304c02d1098b7ce27262791 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/73515120c00f9b2d045cddd157bd4b52e302a8d2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9c40f13a63a4b87177de3e8c318af25068fc6ab4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/753760684706fcb37b3f26714fd1dc22b947a53c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/82bf32ebdc3e0422fa5a3c45a9f663ea79eb8eb0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c34bad69ccb25d6f299fa198048a73d23d73cc2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/06c5a668a40220614e22a4d332be50c4cb2a8810 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report