Skip to content
Memory corruption Write-up Advanced

Patch Diffing Microsoft Windows Wi-Fi Driver Vulnerability (CVE-2024-30078) - Part 2

The Windows Wi-Fi driver's frame translation function lacked a bounds check when handling 802.11 data frames carrying a VLAN tag, so a crafted frame could cause the driver to read and write beyond the mapped packet buffer. An attacker within Wi-Fi range could send such a frame to trigger memory corruption in kernel mode, which the vendor rated as remote code execution.

research.aurainfosec.io

Published on research.aurainfosec.io

Part 1: Patch Diffing Microsoft Windows Wi-Fi Driver Vulnerability (CVE-2024-30078) - Part 1

The author, on research.aurainfosec.io

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 a missing length validation: the patched code adds a check that the mapped MDL byte count is at least the MAC header size plus 0xC before processing a VLAN-tagged frame, and that check is absent in the vulnerable version.

Impact

An attacker in Wi-Fi range could send a crafted VLAN-tagged frame to corrupt kernel memory, which the vendor classifies as remote code execution; the author has not yet demonstrated a working exploit.

What the attacker needed

Attacker within Wi-Fi radio range; victim's Wi-Fi adapter receives the frame; no authentication required

The fix

The vendor added a check that the mapped buffer is large enough for the MAC header plus the VLAN field before processing the frame, and the text shows this check present in the patched binary.

How it was found

  1. Load the patched and unpatched driver files in Ghidra with the correct symbol files.
  2. Rename variables and retype structures in the patched function to make the code readable.
  3. Compare the patched and unpatched versions side by side to spot added or removed statements.
  4. Identify the new bounds check on the mapped buffer size for VLAN-tagged frames.
  5. Plan to send a VLAN-tagged data frame to test whether it causes a four-byte overwrite.

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.

A Wi-Fi driver takes wireless frames and repackages them as ordinary network packets. This function trusted a length field in the incoming frame and copied data based on it without first confirming the buffer was big enough, so a short frame with a VLAN tag made it read and write past the end of the buffer. Because the driver runs in the operating system's core (kernel), that kind of mistake can crash the machine or, in principle, let an attacker run their own code.

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.