UBUNTU-CVE-2026-98216: High severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: IB/hfi1: Fix the PIOCRED credit-return mmap hfi1filemmap()'s PIOCRED case must hand user space the single credit-return page that holds this context's entry. That page is the second or third page of the per-node credit-return allocation once the hardware send context index reaches 64 or 128, so the failure below is intermittent: when the entry lands on the first page the offset is zero and everything works. Two things are wrong. First, crpageoffset is a byte offset but .va is a struct creditreturn , so adding it is pointer arithmetic and scales the offset by sizeof(struct creditreturn) == 64. memvirt then lands 256 KiB or 512 KiB past a 10240-byte allocation. With an IOMMU translating, that address is inside the vmalloc range but in no vmarea, so dmammapcoherent() -> iommudmammap() finds no pages, vmalloctopfn() returns pagetopfn(NULL), and remappfnrange() installs a frame above MAXPHYADDR. The first user read then takes: psm2epopenpr: Corrupted page table at address 7a14d007e000 PGD 800000013886a067 P4D 800000013886a067 PUD 13886b067 PMD 13886c067 PTE 800049168e911235 Oops: Bad pagetable: 000d [#1] SMP PTI Second, and still wrong once the arithmetic is corrected, dmammapcoherent() describes a whole coherent buffer and selects the page within it with vma->vmpgoff. Offsetting cpuaddr has no effect: for a vmap'd allocation iommudmammap() uses cpuaddr only to locate the vmarea and then maps pages[vmpgoff], which hfi1filemmap() has just set to 0. User space therefore always receives the first credit-return page, every credit read is for the wrong context, and send PIO stalls forever. Use the DMA API as intended: pass the base of the allocation with its full length and select the page with vmpgoff. A separate length is needed because memlen must keep describing the VMA for the existing size check. The dma-direct path stays correct as well, since dmadirectmmap() adds the same vmpgoff to the base pfn. Tested on a Dell T7610 (Xeon E5-2650 v2, Intel IOMMU in DMA-FQ mode) against a Threadripper PRO 3995WX peer, both Omni-Path 100. Before this change psm2epopen() Oopses the kernel; with only the arithmetic corrected psm2epopen() succeeds but any transfer that uses send PIO hangs, PSM2SDMA=2 (send PIO disabled) completing normally while PSM2SDMA=0 (send PIO only) hangs every time. With this change send PIO, send DMA and the default mixed mode all work.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
Fix hfi1_file_mmap()'s PIO_CRED handling to use the DMA API with the base of the credit-return allocation and its full length, and select the context's credit-return page with vma->vm_pgoff rather than offsetting cpu_addr; ensure cr_page_offset is treated as a byte offset rather than struct credit_return pointer arithmetic.
Event History
Frequently Asked Questions
Is this exploitable remotely?
No. The severity vector identifies this as a local attack (AV:L) requiring low privileges (PR:L) and no user interaction (UI:N).
What conditions make the failure occur?
The issue is in the hfi1 PIO_CRED mmap path. It becomes intermittent when the hardware send context index reaches 64 or 128, because the relevant credit-return entry may be on the second or third allocation page; entries on the first page have a zero offset and work normally.
How can I recognize a system already hitting this issue?
A first user-space read of the mapped page can trigger a corrupted page-table failure. Reported indicators include "psm2_ep_open_pr: Corrupted page table" and an "Oops: Bad pagetable" message.
Which Ubuntu kernel packages are listed as affected?
The listed packages are ubuntu/linux-riscv, ubuntu/linux-realtime, ubuntu/linux-azure, ubuntu/linux-gcp, ubuntu/linux-azure-fde, ubuntu/linux-gke, ubuntu/linux-hwe-edge, and ubuntu/linux-gkeop.