linkservers no longer working after applying KB5024276

pGwtech1234 1 Reputation point

Hi there, After applying sqlserver2019-kb5024276-x64, most of my link servers are erroring with either SSL = expiredcert or certchainnottrusted. I have the same Production equivalent server without kb5024276 and it works fine. The linkservers are fqdn representations and they are using the default, Microsoft OLE DB Driver for SQL Server. The same result when I test using udl. Further, I can connect to these same servers fine through ssms/regsrvr/osql/sqlcmd. I assume kb5024276 updates MSOLEDBSQL driver, since add/remove shows it as updated on 2023-04-17, and the PRD server is at The release notes shows that this driver is updated, but not sure what changed that is breaking these.
I would rather not uninstall/reinstall old version as kb5024276 is part of the recently announce CVE-2023-23384 from this month. Anyone have any guidance on this, would be appreciated, as I couldn't find any related posts for kb5024276 severing linkservers/msoledbsql, thank you kindly.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,850 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bjoern Peters 8,856 Reputation points

    Hi Pierson, Welcome to Q&A Forum; this is a great place to get support, answers, and tips. Thank you for posting your question; I'll be more than glad to help you out.

    Maybe your googling for any known issues was too early ;-) If you take a look at the official CU20 documentation, you will find at least two known issues; one is related to MSOLEDBSQL...

    Msg 7320, Level 16, State 110, Line 68 Cannot execute the query "Remote Query" against OLE DB provider "MSOLEDBSQL" for linked server "(null)". Object reference not set to an instance of an object.

    I hope my answer is helpful to you, Your Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!

    0 comments No comments