CVE-2025-39742
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-39742) was discovered in the Linux kernel's RDMA subsystem, specifically in the find_hw_thread_mask() function of the HFI1 driver. The vulnerability was disclosed on September 11, 2025, affecting various Linux kernel versions. The issue involves a potential divide-by-zero condition where the function divides the number of online CPUs by num_core_siblings without properly validating the divisor first (NVD).

Technical details

The vulnerability exists in the find_hw_thread_mask() function within the HFI1 driver of the RDMA subsystem. The function performs a division operation using the number of online CPUs as the dividend and num_core_siblings as the divisor, but checks for zero only after the division operation. This implementation could lead to a divide-by-zero runtime error. The fix involves restructuring the code to perform the zero check before the division operation, which also improves code readability by reducing one indentation level (NVD).

Impact

The vulnerability could potentially cause a divide-by-zero runtime error in the Linux kernel, which might lead to system instability or crashes in systems utilizing the HFI1 driver in the RDMA subsystem (Ubuntu).

Mitigation and workarounds

The vulnerability has been addressed by moving the divisor check prior to the division operation in the find_hw_thread_mask() function. This fix has been implemented in various Linux distributions, including Ubuntu, where multiple kernel versions have been updated to include the patch (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-fips
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-oracle-6.8
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-nvidia-6.8
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-devel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management