
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40127 is a vulnerability discovered in the Linux kernel affecting the hardware random number generator (hwrng) subsystem, specifically in the ks-sa driver. The vulnerability was disclosed on November 12, 2025, and involves a division by zero error in the kssarng_init function (NVD).
The vulnerability stems from a missing clock pointer initialization in the kssarnginit function within the drivers/char/hwrandom/ks-sa-rng.c file. When clkgetrate() is called on an uninitialized clk pointer, it results in a division by zero error during the calculation of delay values. The fix involves adding proper clock initialization code before using the clock, requiring 7 lines of code changes (NVD).
The vulnerability affects multiple Linux distributions and versions, including Ubuntu releases 25.10, 25.04, 24.04 LTS, and 22.04 LTS, as well as various kernel variants such as linux-azure, linux-gcp, and linux-aws. Several Ubuntu systems marked this as 'Vulnerable' in their security tracking (Ubuntu).
For Debian 11 (bullseye), the vulnerability has been fixed in version 6.1.158-1~deb11u1 of the linux-6.1 package. Users are recommended to upgrade their linux-6.1 packages to the latest version (Debian).
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."