Important CVSS 7 EPSS 0.00274 🔬 Patch diffed 2026-06 archive

Executive Summary

Heap-based buffer overflow in Microsoft Windows DNS allows an authorized attacker to elevate privileges locally.

Overview

7
CVSS HIGH
Important
MS Severity
Not Exploited
MS Exploit Status
Exploitation Unlikely
MS Exploit Likelihood
Category Elevation of Privilege
Released Jun 9 2026
Last Updated Jun 9 2026
Publicly Disclosed No
CISA KEV Not Listed
Known Exploits None Known
EPSS Score 0.00274 — 0.1967 percentile
NVD CVSS 7 HIGH — matches MSRC

CVSS Vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
ATTACK VECTOR
Local
ATTACK COMPLEXITY
High
PRIVILEGES REQUIRED
Low
USER INTERACTION
None
SCOPE
Unchanged
CONFIDENTIALITY
High
INTEGRITY
High
AVAILABILITY
High
EXPLOIT CODE MATURITY
Unproven
REMEDIATION LEVEL
Official Fix
REPORT CONFIDENCE
Confirmed
Temporal Score: 6.1

EPSS Score

0.00274
probability of exploitation in the next 30 days
0.1967 percentile - updated 2026-08-14
View on FIRST.org

Affected Products

30 affected products
Product KB Article Severity Impact Restart Required
Windows 10 Version 1607 for 32-bit Systems 5094122 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1607 for x64-based Systems 5094122 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1809 for 32-bit Systems 5094123 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 1809 for x64-based Systems 5094123 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for 32-bit Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for ARM64-based Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 21H2 for x64-based Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for 32-bit Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for ARM64-based Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 10 Version 22H2 for x64-based Systems 5094127 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 23H2 for ARM64-based Systems 5093998 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 23H2 for x64-based Systems 5093998 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 24H2 for ARM64-based Systems 5094126 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 24H2 for x64-based Systems 5094126 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 25H2 for ARM64-based Systems 5094126 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 25H2 for x64-based Systems 5094126 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 26H1 for ARM64-based Systems 5095051 (Security Update) Important Elevation of Privilege Yes
Windows 11 version 26H1 for x64-based Systems 5095051 (Security Update) Important Elevation of Privilege Yes
Windows Server 2012 5094042 (Monthly Rollup) Important Elevation of Privilege Yes
Windows Server 2012 (Server Core installation) 5094042 (Monthly Rollup) Important Elevation of Privilege Yes
Windows Server 2012 R2 5094041 (Monthly Rollup) Important Elevation of Privilege Yes
Windows Server 2012 R2 (Server Core installation) 5094041 (Monthly Rollup) Important Elevation of Privilege Yes
Windows Server 2016 5094122 (Security Update) Important Elevation of Privilege Yes
Windows Server 2016 (Server Core installation) 5094122 (Security Update) Important Elevation of Privilege Yes
Windows Server 2019 5094123 (Security Update) Important Elevation of Privilege Yes
Windows Server 2019 (Server Core installation) 5094123 (Security Update) Important Elevation of Privilege Yes
Windows Server 2022 5094128 (Security Update) Important Elevation of Privilege Yes
Windows Server 2022 (Server Core installation) 5094128 (Security Update) Important Elevation of Privilege Yes
Windows Server 2025 5094125 (Security Update) Important Elevation of Privilege Yes
Windows Server 2025 (Server Core installation) 5094125 (Security Update) Important Elevation of Privilege Yes

Patches

10 patches
Article Type Restart
5094122 Security Update Yes
5094123 Security Update Yes
5094127 Security Update Yes
5093998 Security Update Yes
5094126 Security Update Yes
5095051 Security Update Yes
5094042 Monthly Rollup Yes
5094041 Monthly Rollup Yes
5094128 Security Update Yes
5094125 Security Update Yes

Patch Diff

ghidriff · dnsapi.dll (KB5094126)

Heap-based buffer overflow (CWE-122) in the Windows DNS client dnsapi.dll, local elevation of privilege to SYSTEM (Important, AV:L, AC:H race, CVSS 7.0). Dns_WriteStringToPacket(write_ptr, end_ptr, string, flag) serialises a name/label into the DNS packet buffer as a length-prefixed string. PRE: once the computed length passed the < 0x100 check, the function wrote the one-byte length prefix *write_ptr = (char)len BEFORE verifying that write_ptr was still inside the buffer (write_ptr < end_ptr). When the write pointer had already reached end_ptr, that length-prefix store landed one byte past the heap-allocated packet buffer - a one-byte heap overflow, reached by winning a race on the buffer state (MSRC AC:H). Because the DNS client runs in a service context, a successful overflow yields SYSTEM. Diff of dnsapi.dll 10.0.26100.8521 -> .8655 (Jun 9 2026, KB5094126) shows a single code-changed function, Dns_WriteStringToPacket: gated behind CFR flag Feature_3831740731, the fix adds a write_ptr < end_ptr precondition around the whole prefix-write-and-copy block ((feature == 0) || (write_ptr < end_ptr)), so the length byte can no longer be written at or past the buffer end; the boundary case now returns ERROR_BUFFER_OVERFLOW (0xea).

Pre-patch version 10.0.26100.8521 Download
Post-patch version 10.0.26100.8655 Download
Loading diff…
Select a function to see its diff.
View full diff report View RCA report

Root Cause Analysis

CVE-2026-41108 — Windows DNS Client dnsapi.dll Length-Prefix Write Past Packet Buffer → Heap Buffer Overflow


Summary

Product Windows — dnsapi.dll (Windows DNS Client / DNS API)
CVE ID CVE-2026-41108
Impact Elevation of Privilege (to SYSTEM)
MSRC severity Important
CVSS 7.0 / 6.1 — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CWE CWE-122: Heap-based Buffer Overflow (race-triggered)
Delivery Local — winning a race on the DNS packet-buffer bounds
KB / Fixed build KB5094126 — dnsapi.dll 10.0.26100.8655 (Win11 24H2 x64)
Patch Date June 9, 2026 (2026-Jun)
Pre-patch binary dnsapi.dll 10.0.26100.8521 — SHA256 d7f46b666ac7bb0559f0f074b31263121b8ea324ad8de86ca954cfcc1a666c23
Post-patch binary dnsapi.dll 10.0.26100.8655 — SHA256 55f028f320563f04d456682850d47d0e67d4dba89cc62711fbf3653a648bba43
Feature flag Feature_3831740731 — the fix is CFR-gated
Exploitability Exploitation Unlikely; not publicly disclosed; not exploited (per MSRC)

Product Description

dnsapi.dll is the Windows DNS Client library. When it assembles a DNS message, Dns_WriteStringToPacket serialises a name/label into the packet buffer as a length-prefixed string: it writes a one-byte length prefix at the current write pointer and then copies the string bytes after it, checking the result against the end-of-buffer pointer as it goes.


Vulnerability Summary

Dns_WriteStringToPacket(write_ptr, end_ptr, string, flag) writes the one-byte length prefix *write_ptr = (char)len before it has verified that write_ptr is still inside the buffer (write_ptr < end_ptr). When the write pointer has reached the end of the packet buffer, that length-prefix store lands one byte past the heap-allocated packet buffer — a heap-based buffer overflow (CWE-122). The condition is reached by racing the buffer state (MSRC: AC:H — “requires an attacker to win a race condition”), and because the DNS client work runs in a service context, a successful overflow yields SYSTEM (per the MSRC FAQ).


Prerequisites and Constraints

  • Local, low-privileged (PR:L, AV:L); AC:H — must win a race that drives the packet write pointer to the buffer boundary as Dns_WriteStringToPacket runs.
  • Result: the length-prefix byte is written at/after end_ptr, one byte past the heap packet buffer.

Vulnerability Details

Root Cause

The length-prefix byte was written unconditionally once the string length passed the < 0x100 check, without first confirming the destination write pointer was still below the end-of-buffer pointer. At the buffer boundary this is a one-byte out-of-bounds heap write.

The patch (confirmed — diff, .8521 → .8655)

The diff shows a single code-changed function, Dns_WriteStringToPacket. Gated behind Feature_3831740731, the fix adds a write_ptr < end_ptr precondition around the entire prefix-write-and-copy block, so the length byte and the string copy only proceed when there is room in the buffer:

// Dns_WriteStringToPacket (10.0.26100.8655) — PATCHED (from the diff)
iVar3 = Dns_GetBufferLengthForStringCopy(string, 0, 2 - (flag != 0), 2);
uVar1 = iVar3 - 1;
if (uVar1 < 0x100) {
    uVar4 = Feature_3831740731__private_IsEnabled();
    if ((uVar4 == 0) || (write_ptr < end_ptr)) {          // *** NEW bounds precondition ***
        _Dst = write_ptr + 1;
        *write_ptr = (char)uVar1;                          // length prefix — now only when write_ptr < end_ptr
        puVar2 = (uchar*)((ulonglong)uVar1 + (longlong)_Dst);
        if (puVar2 <= end_ptr) {
            if (flag == 0) { memcpy(_Dst, string, uVar1); return puVar2; }
            if (puVar2 + 1 <= end_ptr) {
                local_38[0] = (int)end_ptr - (int)_Dst;
                Dns_StringCopy(_Dst, local_38, string, uVar1, 1, 2);
                return puVar2;
            }
        }
    }
    dwErrCode = 0xea;                                       // ERROR_BUFFER_OVERFLOW
}

Pre-patch, *write_ptr = (char)uVar1 executed whenever uVar1 < 0x100, regardless of whether write_ptr had already reached end_ptr. With the added write_ptr < end_ptr guard, the length-prefix store can no longer land at or past the end of the packet buffer, closing the one-byte heap overflow; the boundary case now falls through to ERROR_BUFFER_OVERFLOW (0xea).

Patch Completeness Assessment

CFR-gated behind Feature_3831740731. The bounds precondition runs only when the flag is enabled; the original unconditional length-prefix write still ships when disabled. Verify Feature_3831740731 is enabled to confirm the fix is live.


Detection Guidance

Behavioural. Heap corruption / one-byte-overwrite crashes in dnsapi!Dns_WriteStringToPacket (and its callers building DNS packets) on unpatched/flag-disabled builds, particularly under concurrent DNS activity that stresses packet-buffer boundaries.

Config. The fix is CFR-gated — confirm Feature_3831740731 is enabled.


References

  • MSRC advisory — CVE-2026-41108 (Windows DNS Client Elevation of Privilege), released 2026-06-09, KB5094126.
  • Full binary diff: /data/patch_diffs/dnsapi_dll-cve-2026-41108-ghidriff.md

Attack Path

A length-prefix byte is written past the DNS packet buffer end, overflowing the heap by one byte

Attack path for CVE-2026-41108 A length-prefix byte is written past the DNS packet buffer end, overflowing the heap by one byte 01 — ENTRY Local attacker drives DNS client packet assembly dnsapi!Dns_WriteStringToPacket serialises a label into the DNS packet buffer. AV:L / PR:L (local, low-privileged). 02 — CONTROLLED INPUT Wins a race that puts the write pointer at the buffer end MSRC AC:H - exploitation requires winning a race so that write_ptr has reached end_ptr as the length prefix is written. 03 — MISSING CHECK Length-prefix byte written before bounds check (CWE-122) *write_ptr = (char)len executes before verifying write_ptr < end_ptr, storing one byte past the heap packet buffer. 04 — IMPACT One-byte heap overflow -> SYSTEM The out-of-bounds write corrupts adjacent heap state; because the DNS client runs in a service context, successful exploitation gains SYSTEM.

Derived from the patch delta: the checks added by the vendor identify which fields crossed a trust boundary unvalidated. Reachability and privilege are taken from the call chain in the RCA report.

Exploits & PoC

Detection Rules

Acknowledgments

WARP team at Microsoft