Skip to content
Memory corruption Advisory Advanced CVE-2021-43217

Windows Encrypting File System (EFS) Remote Code Execution Vulnerability (CVE-2021-43217)

A buffer overflow write in the Windows Encrypting File System could let an unauthenticated attacker run non-sandboxed code remotely. EFS does not need to be in active use, because its interfaces start the EFS service when it is not already running.

Asuka Follow

Originally disclosed on Microsoft

Critical 8.1 View original

FAQ

What is the attack vector for this vulnerability? An attacker could cause a buffer overflow write leading to unauthenticated non-sandboxed code execution. Does EFS need to be in use for this to be exploited? No. EFS interfaces trigger a start to the EFS service if it isn’t already running. How does Microsoft plan to address this vulnerability? Microsoft is addressing the vulnerability in a phased two-part rollout. These updates address the vulnerability by modifying how EFS makes connections from client to server. For guidelines on how to manage the changes required for this vulnerability and more information on the phased rollout, see KB5009763: EFS security hardening changes in CVE-2021-43217 . When the second phase of Windows updates become available in Q1 2022, customers will be notified via a revision to this security vulnerability. If you wish to be notified when these updates are released, we recommend that you register for the security notifications mailer to be alerted of content changes to this advisory. See Microsoft Technical Security Notifications . How do the two deployment phases address the vulnerability? The initial deployment phase starts with the Windows updates released on December 14, 2021. The updates will enable packet-level privacy for EFS when the client initiates a connection, and the server will only allow connections with packet-level privacy. The second phase, planned for a Q1 2022 release, marks the transition into the enforcement phase. Support for the AllowAllCliAuth registry key will be removed and servers will require packet-level privacy regardless of the registry key setting. Is there a recommended order in which I should install these updates on client and server machines? Yes. We recommend that you install the security updates to address this vulnerability on client machines first and then on servers.

Windows Encrypting File System (EFS)

Windows Encrypting File System (EFS)

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Asuka with https://www.cyberkl.com/. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a memory-safety flaw in how the EFS service handles data received over a client-to-server connection, allowing a buffer overflow write.

What the attacker needed

Network reach to the EFS service; no authentication needed; EFS need not be in use

The fix

Microsoft was fixing it in two phases: the December 2021 updates enabled packet-level privacy for EFS connections and made servers accept only such connections, with a later phase removing the AllowAllCliAuth registry key and requiring packet-level privacy regardless of that setting.

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 report has not been written yet. The Original tab links to the source.

The Encrypting File System is a Windows feature that scrambles files so only the right user can read them. A buffer overflow means a program writes more data into a memory area than it can hold, which can let an attacker take control of the program. Here the flaw could be reached over the network without logging in, and the attacker's code would run outside the usual restricted sandbox.

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.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.