[CSHARP-980] Driver Seems to Cause AppCrash During Kerberos Auth Created: 28/May/14  Updated: 02/Apr/16  Resolved: 16/Jun/14

Status: Closed
Project: C# Driver
Component/s: Security
Affects Version/s: 1.9, 1.9.1
Fix Version/s: 1.9.2

Type: Bug Priority: Major - P3
Reporter: Peter Garafano (Inactive) Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2012 (DC)
Windows Server 2012 (MongD)


Issue Links:
Depends

 Description   

When attempting to auth against a mongod with kerberos, the driver makes a call to unmanaged code which (according to WinDbg) causes Heap Corruption, which, in turn, brings down the CLR. This type of crash cannot be caught. Previous versions of the driver do not appear to have this problem.

I have traced the problem to MongoDB.Driver.Communication.Security.Mechanisms.Sspi.SecurityContext.GetMaxTokenSize(), Line 418.

The faulting module shown in the crash dumps is ntdll.dll.



 Comments   
Comment by Githook User [ 16/Jun/14 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-980:fixed issue with Kerberos corrupting managed memory.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/cbc44f41ab8ef1872514119f2e62eab7fe1372c4

Comment by Githook User [ 16/Jun/14 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-980:fixed issue with Kerberos corrupting managed memory.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/f40b821dae339cc31fbce22cf7529e0fca1439d3

Generated at Wed Feb 07 21:38:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.