CVE-2024–38063: A Deep Dive into the IPv6 Kernel Pool Vulnerabi
An integer wrap-around in the IPv6 extension-header reordering routine in the Windows kernel allowed oversized headers to push processing past the intended buffer, corrupting kernel pool memory. The write-up claims this could crash the machine and, through a chain of pool grooming and a legacy error-handling path, potentially lead to remote code execution.
Published on medium.com
In 2024, two Chinese security researchers discovered a critical vulnerability that could lead to BSOD (Blue Screen of Death) or even Remote Code Execution (RCE) through IPv6 packets. With a CVSS score of 9.8, Microsoft awarded them a $100,000 bounty for this discovery.
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 loop that walks IPv6 extension headers subtracts each header length from a remaining counter without checking inside the loop, so an oversized header makes the counter wrap and the bounds check runs only after memory has been touched.
Impact
The corruption could crash affected Windows systems, and the author claims a full chain could potentially achieve remote code execution, though the write-up does not demonstrate a working exploit.
What the attacker needed
IPv6 enabled (default on Windows); ability to send crafted IPv6 packets; no authentication needed
How it was found
- Send an IPv6 packet whose extension headers are each larger than the normal 8 bytes.
- The reordering loop subtracts the oversized lengths, wrapping the counter and moving the offset far ahead in memory.
- The out-of-bounds write corrupts kernel pool memory, which can crash the system.
- To aim for code execution, flood the network pools with ICMPv6 traffic so later allocations land near system structures.
- Send fragmented packets that omit the final fragment, so the kernel waits during reassembly and allocates a large buffer.
- Deliver the last fragment so the crafted data lands at the chosen location.
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 stores part of its networking code in a protected area of memory called the kernel, which ordinary programs cannot touch. A mistake in how that code counted the length of incoming network packets let a specially crafted packet make the count wrap around to a huge number, so the code wrote past where it should. The author says this could first crash the computer and, with a lot more work, possibly 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.