Skip to content
Memory corruption Write-up Advanced

Cve 2025 21333 Windows Heap Based Buffer Overflow Analysis

A heap-based buffer overflow in the Windows kernel driver vkrnlintvsp.sys lets a local attacker who supplies a crafted security descriptor to NtCreateCrossVmEvent overflow a paged-pool allocation. The author shows a proof of concept that triggers a crash and outlines how heap grooming could turn it into arbitrary kernel read/write and SYSTEM privilege escalation.

Alessandro Iandoli Follow

Published on infosecwriteups.com

CVE-2025–21333 is a vulnerability detected by Microsoft as actively exploited by threat actors. Microsoft patched the vulnerability on January 14th, 2025 with KB5050021 (for Windows 11 23H2/22H2).

Alessandro Iandoli, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the allocation size is computed by adding a caller-controlled DACL size to fixed values without checking for integer overflow, so the subsequent copy writes past the allocated buffer.

Impact

A local attacker could crash the system and, with further heap grooming, potentially achieve arbitrary kernel read/write and escalate to SYSTEM; the text only demonstrates a crash in the proof of concept.

What the attacker needed

Local access to the machine; Windows Sandbox feature enabled; valid sandbox GUIDs

The fix

Microsoft patched the driver in the January 2025 update, and the text notes the patch was applied.

How it was found

  1. Enable Windows Sandbox on the target machine.
  2. Build a security descriptor whose DACL has a very large AclSize and one ACE.
  3. Start WindowsSandbox.exe and read the ContainerId GUID from WindowsSandboxClient.exe.
  4. Call NtCreateCrossVmEvent with the crafted object attributes and the GUIDs to trigger the overflow.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Windows has a protected core called the kernel, and drivers run inside it with full power. This driver trusted a size value that came from the caller when copying data into a new buffer, so a bigger value than the buffer could hold spilled over into neighbouring memory. A local user could crash the machine and, in principle, take full control of it.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.