Skip to content

Commit 390a7ac

Browse files
committed
cve-2025-21333 - 1day breakdown
1 parent 06f039f commit 390a7ac

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

content/1day-breakdowns/cve-2025-21333.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ layout: "single"
1313
showTableOfContents: true
1414
---
1515

16+
A vulnerability in the Windows Hyper-V NT Kernel Integration VSP driver exists due to a vulnerable function, `VkiRootAdjustSecurityDescriptorForVmwp()`, which can be invoked from user mode. This leads to a heap-based buffer overflow, ultimately resulting in privilege escalation.
17+
1618
**CVE-2025-21333:** https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21333
1719
**Vulnerability Type:** Heap-based Buffer Overflow
1820
**Tested On:** Windows 11 23H2
1921
**Driver Version:** vkrnlintvsp.sys - 10.0.22621.2506
2022

21-
## Description
22-
23-
A vulnerability in the Windows Hyper-V NT Kernel Integration VSP driver exists due to a vulnerable function, `VkiRootAdjustSecurityDescriptorForVmwp()`, which can be invoked from user mode. This leads to a heap-based buffer overflow, ultimately resulting in privilege escalation.
24-
2523
## Requirements
2624

2725
To exploit this vulnerability, Windows Sandbox must be enabled in "Turn Windows features on or off".
@@ -135,14 +133,7 @@ The kernel has a mechanism to register and use specific callbacks for some prede
135133
136134
In this case, it was discovered that `VkiRootCalloutCreateEvent()` is one of the callback functions that can be invoked by `NtCreateCrossVmEvent()`. Therefore, to reach the vulnerable function call, we need to invoke `NtCreateCrossVmEvent()` from user space.
137135
138-
```mermaid
139-
flowchart LR
140-
%%{init: {"flowchart": {"htmlLabels": false}} }%%
141-
A["NtCreateCrossVmEvent (ntdll.dll)"]
142-
--> B["ExpCreateCrossVmEvent (ntoskrnl.exe)"]
143-
--> C["VkiRootCalloutCreateEvent (vkrnlintvsp.sys)"]
144-
--> D["VkiRootAdjustSecurityDescriptorForVmwp (vkrnlintvsp.sys)"]
145-
```
136+
![IMG](/img/cve-2025-21333/img2.png)
146137
147138
`NtCreateCrossVmEvent()` is an undocumented function that takes an `OBJECT_ATTRIBUTES` structure as an argument. This structure includes a `SecurityDescriptor` (`SECURITY_DESCRIPTOR`), which contains the security information associated with the object — including the `Dacl`. This is where the payload should be injected in order to trigger the vulnerability.
148139
```c++

0 commit comments

Comments
 (0)