AMD's amdkmdag.sys May Leak Memory Even When a Ryzen Integrated GPU Drives No Displays
What happened on a Radeon with no displays attached?
In November 2026, a user reported a memory leak on a Windows PC equipped with a Radeon AI PRO R9700.
An NVIDIA GeForce RTX 3060 Ti drove the display. The reporter examined the AMD graphics driver amdkmdag.sys and said it failed to release a file object reference and a memory allocation it acquired when it detected that a process had started.
On December 1, another user who had upgraded from a Ryzen 7 9800X3D to a Ryzen 9 9950X3D reported the same problem with integrated Radeon graphics. All displays were connected to a GeForce RTX 5090. The AMD driver version was 32.0.21045.1000.
Using Windows Performance Recorder (WPR) to trace memory allocations, the user reported that process launches left behind a roughly 400-byte file object allocated through amdkmdag.sys and a 32-byte D2d allocation. D2d is a four-character pool tag that includes a trailing space.
In testing on the R9700, whether the leak occurred varied with the length of the executable's path. The user who reported it on integrated Radeon graphics did not test that condition.
With no change in workload, disabling the unused integrated GPU in Device Manager stopped the growth in D2d allocations, which had been increasing by about 2,500 per minute. Memory already retained was freed only after a reboot, the reporter said.
The leak returned when the CPU swap led Windows to identify and enable the integrated GPU as a new device. The growth stopped again when the user disabled the integrated GPU.
Disabling the integrated GPU also reportedly stopped D2d growth on a laptop with a Ryzen AI 9 HX 370 and Radeon 890M graphics.
Each process launch reportedly left behind only a small amount of memory. In the R9700 user's investigation, however, some executables took longer to start as unreleased file objects accumulated. Looking only at available memory could miss part of the impact.
The kernel pool reached 17.2 GB
The user who reported the problem on integrated Radeon graphics also published measurements taken while using Anthropic's Claude Code.
They were running Claude Code through Git Bash on Windows 11 Pro 25H2 Build 26200.8655 with 64 GB of memory. They said total kernel pool usage, memory used by the OS kernel and drivers, reached 17.2 GB after 79 hours of uptime.
Pool tags, which identify memory allocations, show how that usage broke down.
Four key kernel pool tags (OS and driver memory)
| Identifier (tag) | Outstanding allocations | Memory usage |
|---|---|---|
| 17.2 GB total (79 hours after reboot, 64 GB installed) Integrated Ryzen Radeon enabled; RTX 5090 drives all displays | ||
| Suspected cause: AMD graphics driver | ||
| File | 8,526,840 | 3.18GB |
| D2d | 8,337,212 | 254MB |
| Suspected cause: Windows foreground window management | ||
| Toke | 3,710,643 | 6.41GB |
| SeAt | 14,850,992 | 1.33GB |
The file object tag File accounted for 3.18 GB in the nonpaged pool and 8,526,840 outstanding allocations. The D2d tag accounted for 254 MB in the paged pool across 8,337,212 allocations. The access token tag Toke accounted for 6.41 GB across 3,710,643 allocations, and the security-attribute tag SeAt reached 1.33 GB across 14,850,992 allocations.
The reporter attributed growth in File and D2d to the AMD graphics driver and growth in Toke and SeAt to the Windows code that controls which windows can come to the foreground.
The PC appears to have had two types of memory leak at the same time. The 17.2 GB figure measures total kernel pool usage, including both leaks. It does not directly show how much memory either bug retained.
KB5132057 fixes the Windows bug
In a case reported to Windows Terminal in October, the total number of tokens had reached about 660,000 after 22 days of uptime, and Toke memory usage had reached about 1.3 GB. The investigation found that references to tokens could remain after a process had exited.
The investigation initially focused on processes launched from Git Bash. A Microsoft developer confirmed that the problem also occurred when another app had focus and traced it to the code in win32kfull.sys that allows a window to come to the foreground.
Memory leak fixes and workarounds by configuration
| Workaround or update | Affected setup | Result |
|---|---|---|
| Integrated GPU | RTX 5090 | D2d growth (per minute) About 2,500 to zero Retained allocations |
| KB5132057 Preview | Windows 11 25H2・26H2 | Foreground window management access tokens (Toke) no longer retained |
| Adrenalin 26.11.2 | Radeon RX 5000 and newer | Fixes a memory leak that slowed app launches Effect on integrated GPUs |
| Git Bash →WSL | RTX 4060 Claude Code | Kernel pool |
The Microsoft developer reported that the bug had been fixed in Windows and confirmed that KB5132057 includes the fix.
KB5132057 is a preview update for Windows 11 25H2 and 26H2 released on November 19 in the U.S. It brings those versions to builds 26200.10075 and 26300.10075, respectively.
A Git for Windows user who measured before and after the update also reported that abnormal token growth stopped after updating Windows 11 26H2 from build 26300.9974 to 26300.10075.
This update has been confirmed to fix the Windows token leak. Memory retained by the AMD graphics driver still needs to be investigated on the driver side.
AMD also fixed similar symptoms in 26.11.2
In Adrenalin 26.11.2, released on November 18 in the U.S., AMD fixed a memory leak that caused app launches to slow over time on Radeon RX 5000 series and newer GPUs.
AMD's release notes list the Radeon AI PRO R9700 and Ryzen processors with integrated Radeon graphics among the supported products. The fix entry does not mention integrated GPUs or pool tags. The symptoms are similar, but it is unclear whether the fix addresses the same cause.
Adrenalin 26.11.2 lists Windows Driver Store Versions 32.0.32029.2010 and 32.0.21045.29003. The December 1 report used 32.0.21045.1000 and included no measurements after installing 26.11.2. Measurements with the newer driver could show whether the issue is fixed on integrated Radeon graphics. As of December 2, the relevant TheRock issue was open, and the original reporter was asking when a driver with the fix would ship.
Memory usage changed after a move from Git Bash to WSL
Another Claude Code user revisited earlier measurements. Their PC also used a discrete GPU, a GeForce RTX 4060, for its displays, with the integrated Radeon graphics on the Ryzen processor driving none.
The allocation trace reportedly showed about 1.8 million outstanding File allocations and 1,761,088 outstanding D2d allocations.
The user said they might not have accounted for the foreground window behavior and corrected their initial conclusion that the leak occurred only with processes launched by Claude. At the time of the report, they said they would measure again after applying the Windows preview update and after disabling the integrated GPU.
After moving Claude Code from Git Bash to the Windows Subsystem for Linux (WSL), the user reported that kernel pool growth stopped, even during builds and Git operations.
In WSL 2, the Linux kernel runs in a virtual machine. The user suspects that running commands as Linux processes avoided a problem associated with process creation on the Windows side. Workflows that launch Windows development tools directly still need separate testing.
AI coding agents run builds, Git operations, and other tasks repeatedly on a developer's behalf. If each process launch leaves behind a small amount of memory, this pattern can make the problem apparent sooner.
How to investigate growing memory usage
Microsoft documents how to use PoolMon to find a kernel-mode memory leak. The tool is included in the Windows Driver Kit (WDK).
PoolMon shows the difference between allocations and frees for each pool tag. Tracking which tags keep growing as you change workloads or try fixes can help identify the cause.
The Radeon driver can be a suspect even when a GeForce GPU handles display output. Before trying to disable integrated graphics, make sure another GPU can drive the display. File objects may continue to accumulate after a Windows update stops token growth. Checking growth by pool tag can show which fix had an effect.
As development environments delegate more work to AI, previously inconspicuous OS or driver bugs may surface more often. Investigating even the driver for a GPU that was driving no displays helped reveal the source of a problem associated with builds and Git operations.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
