
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."