Skip to content

Connections to ::1 crash lsass and causes windows to restart #4523

Description

@Charles-Gagnon

Describe the bug

When trying to connect to ::1 on a server that either doesn't have SQL installed or where it's not running the connection will fail, but then after a short period Windows will forcibly restart.

Looking through the event log, it seems lsass.exe crashes within seconds and then Windows displays a restart warning and automatically restarts the computer.

The System event log records LsaSrv Event ID 5000 stating that the NegoExtender security package generated an exception. The Application log records an access violation in lsass.exe, with msvcrt.dll as the faulting module and exception code 0xc0000005.

Event log summary:

SSMS → Windows-auth (Negotiate) connect to ::1 (SQL not listening)

SSPI Negotiate handshake invokes NegoExtender package inside LSASS

NegoExtender throws → access violation (0xc0000005) in msvcrt.dll ← LsaSrv 5000 / AppError 1000

LSASS (critical, protected process) terminates ← WER 1001 CriticalProcessFault2

wininit.exe forces reboot in 60 s (“restart in one minute” dialog) ← User32 1074

Next boot logs unexpected shutdown ← EventLog 6008

To reproduce

This can be reproduced on a machine easily with a simple console app :

using Microsoft.Data.SqlClient;

var conn = new SqlConnection("Server=::1");
conn.Open();

Expected behavior

The connection should fail, but Windows should not restart (LSASS should not crash)

Further technical details

Microsoft.Data.SqlClient version: 7.0.2
.NET target: .NET 10
SQL Server version: N/A
Operating system: Windows 11 Enterprise

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions