CVE-2005-2119
Description
The MIDL_user_allocate function in the Microsoft Distributed Transaction Coordinator (MSDTC) proxy (MSDTCPRX.DLL) allocates a 4K page of memory regardless of the required size, which allows attackers to overwrite arbitrary memory locations using an incorrect size value that is provided to the NdrAllocate function, which writes management data to memory outside of the allocated buffer.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
10- cpe:2.3:o:microsoft:windows_2000:*:sp4:*:fr:*:*:*:*
cpe:2.3:o:microsoft:windows_2003_server:64-bit:*:*:*:*:*:*:*+ 4 more
- cpe:2.3:o:microsoft:windows_2003_server:64-bit:*:*:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_2003_server:itanium:*:*:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_2003_server:r2:*:*:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_2003_server:sp1:*:*:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_2003_server:sp1:*:itanium:*:*:*:*:*
cpe:2.3:o:microsoft:windows_xp:*:*:64-bit:*:*:*:*:*+ 2 more
- cpe:2.3:o:microsoft:windows_xp:*:*:64-bit:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_xp:*:sp1:tablet_pc:*:*:*:*:*
- cpe:2.3:o:microsoft:windows_xp:*:sp2:tablet_pc:*:*:*:*:*
Patches
Vulnerability mechanics
Root cause
"The MIDL_user_allocate function in MSDTCPRX.DLL always allocates a fixed 4K page regardless of the requested size, and the caller passes an incorrect size value to NdrAllocate, causing management data to be written outside the allocated buffer."
Attack vector
An attacker can exploit this vulnerability remotely or locally by sending a crafted RPC request to the MSDTC service. The MIDL_user_allocate function in MSDTCPRX.DLL allocates a fixed 4K page regardless of the required size, but the caller provides an incorrect size value to NdrAllocate, which then writes management data beyond the bounds of the allocated buffer [ref_id=1]. On Windows Server 2003, the MSDTC service is started by default but requires Network DTC Access to be enabled for remote anonymous exploitation; on Windows XP SP1 and Windows 2000, a local user can start the service, after which remote anonymous attacks become possible [ref_id=1]. Firewall best practices blocking port 3372 (TIP) and related RPC endpoints can mitigate network-based attacks [ref_id=1].
Affected code
The vulnerability resides in the MIDL_user_allocate function within MSDTCPRX.DLL, the Microsoft Distributed Transaction Coordinator (MSDTC) proxy DLL [ref_id=1]. The advisory does not specify exact source file paths or line numbers.
What the fix does
The security update corrects the memory allocation logic in MSDTCPRX.DLL so that MIDL_user_allocate honors the actual requested size instead of always allocating a fixed 4K page, and ensures the size value passed to NdrAllocate is accurate [ref_id=1]. Additionally, the update disables the TIP protocol by default on Windows 2000 and introduces several registry keys to restrict TIP command validation, reducing the attack surface for related vulnerabilities [ref_id=1]. No patch diff is available in the bundle; the advisory is the sole source for remediation details.
Preconditions
- networkThe MSDTC service must be running and (for remote attacks) Network DTC Access must be enabled, or the attacker must have local logon credentials.
- configOn Windows Server 2003, Network DTC Access must be explicitly enabled by an administrator for remote anonymous exploitation.
- configOn Windows XP SP1 and Windows 2000, the MSDTC service must be started (any local user can start it unless disabled by an administrator).
Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
16- www.kb.cert.org/vuls/id/180868nvdUS Government Resource
- www.us-cert.gov/cas/techalerts/TA05-284A.htmlnvdUS Government Resource
- secunia.com/advisories/17161nvd
- secunia.com/advisories/17172nvd
- secunia.com/advisories/17223nvd
- secunia.com/advisories/17509nvd
- securityreason.com/securityalert/73nvd
- securitytracker.com/idnvd
- support.avaya.com/elmodocs2/security/ASA-2005-214.pdfnvd
- www.eeye.com/html/research/advisories/AD20051011b.htmlnvd
- www.osvdb.org/18828nvd
- www.securityfocus.com/bid/15056nvd
- docs.microsoft.com/en-us/security-updates/securitybulletins/2005/ms05-051nvd
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1071nvd
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1452nvd
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A551nvd
News mentions
0No linked articles in our index yet.