CVE-2025-40065
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40065 is a vulnerability discovered in the Linux kernel, specifically affecting the RISC-V KVM implementation. The vulnerability was disclosed on October 28, 2025, and involves improper handling of the hgatp register when MODE=Bare is selected (NVD, Ubuntu).

Technical details

The vulnerability relates to the handling of the hgatp register in RISC-V systems. According to the RISC-V Privileged Architecture Specification, when MODE=Bare is selected, software must write zero to the remaining fields of hgatp. The issue involves the detection of valid mode supported by the hardware and using it to detect how many vmid bits are supported (NVD).

Impact

The vulnerability affects multiple Linux distributions including Ubuntu's newer releases (25.10, 25.04, 24.04 LTS) and various kernel versions. Several Ubuntu packages including linux-azure, linux-aws, and linux-gcp are marked as vulnerable in their latest versions (Ubuntu).

Mitigation and workarounds

Some Linux distributions have already implemented fixes. For Ubuntu, older LTS releases (22.04, 20.04, 18.04, 16.04) are marked as not affected, while fixes are in progress for newer versions. Debian has fixed the issue in version 6.17.7-2 (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-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
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