Patchfirst
CVE-2025-21418 KEV High · 7.8 EPSS 2.1%

Microsoft Windows Ancillary Function Driver for WinSock Heap-Based Buffer Overflow Vulnerability

Microsoft · Windows

Summary

The flaw is a heap-based buffer overflow in the Windows Ancillary Function Driver for WinSock (afd.sys), a component of Microsoft Windows that handles socket-related operations. The vulnerability is an elevation of privilege issue within that driver. An attacker with local access and low-privileged credentials, requiring no user interaction, could exploit the overflow to gain elevated privileges on the affected system.

Official description · NVD

Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability

Breakdown
59.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
3/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited the day it was disclosed.

  1. DisclosedFirst seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agreesday 0

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

3 , grouped by in kill-chain order 3

Privilege EscalationTA0004

Process Injection T1055 also Stealth
MITRE CTID mapping of the KEV entry · primary impact

Exploiting this buffer overflow vulnerability could lead to an adversary gaining elevated privileges on the machine, leading to the potential for process injection using malicious code, as well as data loss.

MITRE CTID mapping of the KEV entry · how it is exploited

CollectionTA0009

MITRE CTID mapping of the KEV entry · primary impact

Detection

0 rules for this CVE · 82 general rules for its techniques

Rules for this CVE

0 that reference CVE-2025-21418 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Exploitation for Privilege EscalationT106831 general rules
Process InjectionT105537 general rules
Data from Local SystemT100514 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close