Security vulnerability: NULL pointer dereference in ServerNetworkHandler::handle(DisconnectPacket)
Bedrock Server does not handle DisconnectPacket correctly. When a client establish a connection to the server but does not send loginPacket,sending DisconnectPacket can trigger a NULL pointer dereference in ServerNetworkHandler::handle(DisconnectPacket), which will crash the server.
The vulnerability widely affects many versions(1.18.2 and earlier) of Bedrock Server.