Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98216 Overview
CVE-2026-98216 is a Linux kernel vulnerability in the Intel Omni-Path hfi1 InfiniBand driver. The flaw resides in hfi1_file_mmap() handling of the PIO_CRED case, which maps credit-return pages into user space. Incorrect pointer arithmetic and misuse of dma_mmap_coherent() cause the kernel to map an address outside any valid vm_area when the hardware send context index reaches 64 or 128. The result is a bad page table entry that oopses the kernel, or silent data corruption where every process reads credit values for the wrong context. Local users of PSM2 or Omni-Path hardware can trigger the condition during normal use of psm2_ep_open().
Critical Impact
A local user opening a PSM2 endpoint on affected hardware can trigger a kernel oops (Bad pagetable) or cause send PIO transfers to hang indefinitely, resulting in denial of service.
Affected Products
- Linux kernel IB/hfi1 driver (Intel Omni-Path host fabric interface)
- Systems using PSM2 user-space library with Omni-Path 100 adapters
- Kernels containing the pre-fix hfi1_file_mmap()PIO_CRED logic
Discovery Timeline
- 2026-10-06 - CVE-2026-98216 published to NVD
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98216
Vulnerability Analysis
The vulnerability is a kernel-mode memory mapping defect [CWE-125/CWE-787 class] in the hfi1 RDMA driver. The PIO_CRED branch of hfi1_file_mmap() is supposed to expose a single credit-return page to user space so that the PSM2 library can read send-context credit values directly. The driver computes the wrong virtual address and passes the wrong parameters to dma_mmap_coherent(), producing either an invalid mapping or a mapping to the wrong page.
Attack vector is local with low privileges and no user interaction required. Confidentiality and availability impact are high because unprivileged users can crash the kernel or corrupt inter-process credit accounting. Integrity impact is none in the reporter's analysis.
Root Cause
Two defects exist in the pre-fix code. First, cr_page_offset is a byte offset but .va is typed as struct credit_return *, so adding the two performs pointer arithmetic scaled by sizeof(struct credit_return) == 64. The resulting memvirt lands 256 KiB or 512 KiB past the end of a 10,240-byte allocation. When an IOMMU is active, iommu_dma_mmap() cannot find backing pages, vmalloc_to_pfn() returns page_to_pfn(NULL), and remap_pfn_range() installs a physical frame above MAXPHYADDR.
Second, even with corrected arithmetic, dma_mmap_coherent() always selects the page inside a coherent allocation using vma->vm_pgoff. Offsetting cpu_addr has no effect for vmap'd allocations because iommu_dma_mmap() uses cpu_addr only to locate the vm_area and then maps pages[vm_pgoff], which the driver had set to 0.
Attack Vector
An unprivileged local user opens an hfi1 device file and invokes mmap() on the credit-return region. When the user's send-context index is 64 or higher, the driver computes an out-of-range kernel virtual address and attempts to map it. The first user read then triggers a Bad pagetable oops similar to:
psm2_ep_open_pr: Corrupted page table at address 7a14d007e000
PGD 800000013886a067 P4D 800000013886a067 PUD 13886b067 PMD 13886c067
PTE 800049168e911235
Oops: Bad pagetable: 000d [#1] SMP PTI
On systems where the oops does not occur, user space receives the first credit-return page for every context. Credit reads refer to the wrong send context, and send PIO transfers stall forever. Transfers using PSM2_SDMA=2 complete normally while PSM2_SDMA=0 (send PIO only) hangs every time.
Detection Methods for CVE-2026-98216
Indicators of Compromise
- Kernel log entries containing Bad pagetable or Corrupted page table at address originating from processes using the PSM2 library.
- Repeated psm2_ep_open failures or indefinite hangs on hosts with Omni-Path 100 adapters.
- Send PIO stalls on hfi1 interfaces when the send-context index reaches 64 or 128.
Detection Strategies
- Inventory Linux hosts loading the hfi1 kernel module and compare running kernel versions against the fixed commits.
- Correlate PSM2 workload failures with kernel oops events in dmesg or /var/log/messages.
- Monitor RDMA counters for stalled send contexts that never drain credits.
Monitoring Recommendations
- Forward kernel ring buffer output to a central log store and alert on Oops: Bad pagetable strings.
- Track process crashes for binaries linked against libpsm2 on fabric compute nodes.
- Audit lsmod output across HPC clusters to confirm patched kernels are deployed where hfi1 is loaded.
How to Mitigate CVE-2026-98216
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as distribution packages are available.
- Restrict local shell access on hosts running the hfi1 driver until patched kernels are deployed.
- Reboot affected systems after installing the updated kernel so the fixed hfi1 module is loaded.
Patch Information
The fix passes the base of the coherent allocation with its full length to dma_mmap_coherent() and uses vm_pgoff to select the correct credit-return page. A separate length value preserves the existing VMA size check. The patch is available in the following stable kernel commits: Kernel Git Commit 180752d, Kernel Git Commit 535530b, Kernel Git Commit 62f0f34, Kernel Git Commit bafeac9, and Kernel Git Commit dcebe0b.
Workarounds
- Unload the hfi1 kernel module on hosts that do not require Omni-Path connectivity.
- Where PSM2 workloads are mandatory, set PSM2_SDMA=2 to disable send PIO and force send DMA, which avoids the broken credit-return mapping path.
- Limit the number of send contexts allocated per node so no context reaches index 64, reducing exposure until a patched kernel is installed.
# Configuration example - temporarily force send DMA to avoid PIO credit path
export PSM2_SDMA=2
# Or unload the driver on nodes that do not need Omni-Path
sudo modprobe -r hfi1
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

