When you run a spatial query that contains OPENQUERY methods through a linked server in an instance of Microsoft SQL Server 2014 or 2016, an access violation occurs.
This problem was first fixed in the following cumulative update for SQL Server:
About cumulative updates for SQL Server
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Article ID: 3152135 - Last Review: Jul 26, 2016 - Revision: 1