Important CVSS 7.8 EPSS 0.00298 🔬 Patch diffed 2026-06 archive

Executive Summary

None

Overview

7.8
CVSS HIGH
Important
MS Severity
Not Exploited
MS Exploit Status
Less Likely
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.00298 — 0.22255 percentile
NVD CVSS 7.8 HIGH — matches MSRC

CVSS Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
ATTACK VECTOR
Local
ATTACK COMPLEXITY
Low
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.8

EPSS Score

0.00298
probability of exploitation in the next 30 days
0.22255 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 · udfs.sys (KB5094126)

Numeric truncation error (CWE-197) in udfs.sys UdfGetBlocksNeeded, local EoP via a crafted UDF image. The function converts a 64-bit byte offset/length into a logical block/sector number by right-shifting Vcb->LBSizeShift (Vcb+0x48). PRE: the converted result can exceed 32 bits but was used in a 32-bit slot with no upper-bound check, so a large 64-bit offset/length that does not fit in 32 bits even after the shift has its high bits silently dropped, producing a block/sector number smaller than the real value; that truncated value flows into a disk-I/O sector count or an MCB VBN, misaligning logical<->physical sectors or under-computing the extent. Diff of udfs.sys 10.0.26100.8521 -> .8655 (Jun 9 2026, KB5094126) confirms the fix: gated behind CFR flag Feature_3105867064, before the conversion if (*a3 < 0 || *a3 > 0xFFFFFFFF<<LBSizeShift) ExRaiseStatus(0xC000000D / STATUS_INVALID_PARAMETER). Note: our diff shows Feature_3105867064 (build/arch); the negative + 0xFFFFFFFF<<LBSizeShift bound is as described.

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-40409 — Windows UDFS udfs.sys 64→32-bit VBN Truncation in UdfGetBlocksNeeded


Summary

Product Windows — udfs.sys (Universal Disk Format File System driver)
CVE ID CVE-2026-40409
Impact Elevation of Privilege
MSRC severity Important
CVSS 7.8 / 6.8 — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CWE CWE-197: Numeric Truncation Error
Delivery Local — a crafted UDF image (.iso / .img / UDF VHD) mounted or opened
KB / Fixed build KB5094126 — udfs.sys 10.0.26100.8655 (Win11 24H2 x64)
Patch Date June 9, 2026 (2026-Jun)
Pre-patch binary udfs.sys 10.0.26100.8521 — SHA256 b177af321fdb4ff6907f05b028e7ac33486c2000dbc1e75c4bed848f84e164c6
Post-patch binary udfs.sys 10.0.26100.8655 — SHA256 2a9b930ad0ccb43fc6b31cb8a600cb026bb5dea9ccf79c28c7d311d65e62be99
Feature flag Feature_3105867064 — the fix is CFR-gated
Exploitability Exploitation Less Likely; not publicly disclosed; not exploited (per MSRC)

Product Description

UdfGetBlocksNeeded converts a file’s 64-bit byte offset / length into a logical block or sector number by right-shifting by Vcb->LBSizeShift (Vcb + 0x48), and computes the number of blocks needed for a run of I/O.


Vulnerability Summary

The converted result can exceed the 32-bit range, but pre-patch the code used it in a 32-bit slot without an upper-bound check. When a 64-bit offset/length is large enough that it does not fit in 32 bits even after the LBSizeShift right-shift, the upper bits are silently dropped, yielding a block/sector number smaller than the real value (CWE-197).

That truncated value flows into a disk-I/O sector count or into the VBN of an MCB mapping, so the logical→physical sector correspondence becomes misaligned or the on-disk extent is computed too small — the same under-mapping that leads to out-of-bounds kernel access when the real-size I/O runs.


Prerequisites and Constraints

  • Local, low-privileged (PR:L, AV:L, AC:L): auto-mount/open a crafted UDF image, or reach a write path that calls UdfGetBlocksNeeded.
  • The offset/length is chosen so the block-converted value overflows 32 bits.
  • Result: truncated VBN/sector count → misaligned/under-sized extent mapping.

Vulnerability Details

Root Cause

A 64-bit offset/length was converted to a block unit and consumed as 32 bits with no range check, so the high bits were truncated and downstream VBN/sector counts were smaller than the true values.

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

Gated behind Feature_3105867064, an upper-bound check is added right before the conversion: if the input offset/length (*a3) is negative or exceeds 0xFFFFFFFF << LBSizeShift, it aborts with ExRaiseStatus:

// UdfGetBlocksNeeded (10.0.26100.8655) — PATCHED, feature-enabled branch (from our diff)
if ( (longlong)*param_3 < 0
  || (0xffffffffL << (Vcb->LBSizeShift & 0x3f)) < *param_3 )
    ExRaiseStatus(0xC000000D);   // STATUS_INVALID_PARAMETER

0xFFFFFFFF << LBSizeShift is the maximum byte value that still yields a valid 32-bit VBN/sector count after the shift, so the truncated value can no longer flow into FsRtlAddLargeMcbEntry as a VBN or into a sector count.

Patch Completeness Assessment

CFR-gated behind Feature_3105867064. The bound runs only when the flag is enabled; the original truncating path still ships when disabled. Verify the flag is enabled to confirm the fix is live. (Related same-KB UDFS fix: CVE-2026-40404 in UdfInitializeAllocations, gated by Feature_2146947386.)


Detection Guidance

Behavioural. Mounting/opening UDF images with file offsets/lengths near/over the 32-bit block boundary; UDFS returning STATUS_INVALID_PARAMETER for such requests once the fix is active; misaligned-extent / OOB access crashes in udfs!UdfGetBlocksNeeded on unpatched/flag-disabled builds.

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


References

  • MSRC advisory — CVE-2026-40409 (Windows UDFS Elevation of Privilege), released 2026-06-09, KB5094126.
  • Full binary diff: /data/patch_diffs/udfs_sys-cve-2026-40404-40409-ghidriff.md

Attack Path

A 64-bit offset/length that overflows 32 bits after the block shift truncates to a small VBN/sector count

Attack path for CVE-2026-40409 A 64-bit offset/length that overflows 32 bits after the block shift truncates to a small VBN/sector count 01 — ENTRY Unprivileged user mounts/opens a crafted UDF image or reaches a write path udfs.sys UdfGetBlocksNeeded converts a 64-bit byte offset/length to a block/sector number (>> Vcb->LBSizeShift). AV:L/PR:L. 02 — CONTROLLED INPUT Offset/length chosen so the block-converted value overflows 32 bits Even after >> LBSizeShift the value does not fit in 32 bits. 03 — MISSING CHECK Result used in a 32-bit slot with no upper-bound check (CWE-197) The high bits are silently dropped, yielding a block/sector number smaller than the real value. 04 — PRIMITIVE Truncated VBN/sector count -> misaligned extent / under-mapped run -> OOB access -> EoP The value flows into FsRtlAddLargeMcbEntry (VBN) or a disk-I/O sector count. The Jun 2026 fix (Feature_3105867064) rejects negative or >0xFFFFFFFF<<LBSizeShift inputs with STATUS_INVALID_PARAMETER.

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

Thanatos Tian (PolyU) of Diffract
R4nger with Kunlun Lab
Zhiniang Peng with HUST
@2st___ of Diffract
021w
1nv0k3r