---
title: "CVE-2025-40065"
canonical_url: "https://pkgseek.com/security/CVE-2025-40065"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2025-40065

In the Linux kernel, the following vulnerability has been resolved:  RISC-V: KVM: Write hgatp register with valid mode bits  According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp.  We have detected the valid mode supported by the HW before, So using a valid mode to detect how many vmid bits are supported.

CVE-2025-40065 is rated MEDIUM, with 13 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM
- **Affected builds**: 13
- **Affected distros**: 1
- **Distros with fixed_in**: Debian

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | linux-headers-6.12.107+deb13-amd64 | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-headers-6.12.107+deb13-cloud-amd64 | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-headers-6.12.107+deb13-common | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-headers-6.12.107+deb13-common-rt | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-headers-6.12.107+deb13-rt-amd64 | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-amd64-dbg | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-amd64-unsigned | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-cloud-amd64-dbg | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-cloud-amd64-unsigned | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-rt-amd64-dbg | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-image-6.12.107+deb13-rt-amd64-unsigned | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-kbuild-6.12.107+deb13 | 6.12.107-1 | 6.12.115-2 |
| Debian | trixie | linux-support-6.12.107+deb13 | 6.12.107-1 | 6.12.115-2 |
