CVE-2025-40127
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

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