{"id":"CVE-2026-142925","summary":"RDMA/irdma: Use kvzalloc for lvl2 leafmem allocation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/irdma: Use kvzalloc for lvl2 leafmem allocation\n\nDuring VM live migration or when registering large memory regions\n(e.g., guest memory \u003e= 256 GB backed by 4 KiB pages), get_lvl2_pble()\ncalculates total leaves exceeding ~131,072. The memory required for\nlvl2-\u003eleafmem.va exceeds 4 MiB (sizeof(*leaf) * total \u003e 5.24 MiB).\n\nBecause kzalloc() requires physically contiguous pages, requests larger\nthan MAX_PAGE_ORDER (4 MiB on x86_64) fail and trigger a warning:\n\n  WARNING: CPU: 123 PID: 119906 at mm/page_alloc.c:5997 __alloc_frozen_pages_noprof+0x50c/0x1050\n  Call Trace:\n   \u003cTASK\u003e\n   alloc_frozen_pages_noprof+0xc0/0x240\n   ___kmalloc_large_node+0x3d/0xd0\n   __kmalloc_large_node_noprof+0x1b/0x90\n   __kmalloc_noprof+0x254/0x660\n   get_lvl1_lvl2_pble+0xbc/0x270 [irdma]\n   irdma_get_pble+0x44/0xc0 [irdma]\n   irdma_setup_pbles+0x46/0x1d0 [irdma]\n   irdma_reg_user_mr_type_mem+0x41/0x230 [irdma]\n   irdma_reg_user_mr+0x194/0x1c0 [irdma]\n   ib_uverbs_reg_mr+0x1b0/0x2c0 [ib_uverbs]\n\nThe leafmem array is purely host software tracking structures (struct\nirdma_pble_info) and does not require physically contiguous memory.\n\nSwitch the allocation from kzalloc() to kvzalloc() and free it with\nkvfree() so that requests exceeding MAX_PAGE_ORDER fall back to\nvirtually contiguous memory via vmalloc.","modified":"2026-12-03T05:00:21.571033052Z","published":"2026-12-03T03:26:02.195Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142925.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/06c5a668a40220614e22a4d332be50c4cb2a8810"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c34bad69ccb25d6f299fa198048a73d23d73cc2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/73515120c00f9b2d045cddd157bd4b52e302a8d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/753760684706fcb37b3f26714fd1dc22b947a53c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/82bf32ebdc3e0422fa5a3c45a9f663ea79eb8eb0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98c6b351fd8ac59bd304c02d1098b7ce27262791"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c40f13a63a4b87177de3e8c318af25068fc6ab4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142925.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142925"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e8c4dbc2fcacf5a7468d312168bb120c27c38b32"},{"fixed":"82bf32ebdc3e0422fa5a3c45a9f663ea79eb8eb0"},{"fixed":"2c34bad69ccb25d6f299fa198048a73d23d73cc2"},{"fixed":"73515120c00f9b2d045cddd157bd4b52e302a8d2"},{"fixed":"06c5a668a40220614e22a4d332be50c4cb2a8810"},{"fixed":"753760684706fcb37b3f26714fd1dc22b947a53c"},{"fixed":"98c6b351fd8ac59bd304c02d1098b7ce27262791"},{"fixed":"9c40f13a63a4b87177de3e8c318af25068fc6ab4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142925.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142925.json"}}],"schema_version":"1.9.2"}