Skip to the content
The Update Bureau
SQL Server 2022 CU25 + GDR SQL Server 2022 CU25 + GDR Security update
Patch Tuesday

KB5101347

KB5101347: Security update for SQL Server 2022, CU branch, July 2026. Some MSDASQL linked-server queries with provider strings fail

In short

The update fixes four vulnerabilities, including critical SQL Server remote code execution CVE-2026-54118. Linked-server queries using MSDASQL with a provider string can fail with error 7416 in certain configurations.

Does it affect you? Applies to: SQL Server 2022 installations with SQL Server 2022 or a SQL Server 2022 CU through CU25 GDR installed. The security update is optional on computers that do not host Microsoft SQL Server Reporting Services.

Build
16.0.4262.2
Servicing branch
CU
Security
4 fixed · 1 critical
Restart
Required

For servers on the CU branch: they install cumulative updates, which also bring fixes beyond security. Servers on the GDR branch (security fixes only) get a separate update. Which branch am I on?

What changes

Fixes 4 changes

Integration Service

For: Windows systems

  • Remote code execution through untrusted MSMQ messages is blocked in MessageQueueTask.1
    Restricts SoapFormatter deserialization with an allow list binder.

Query Execution

For: Linux and Windows systems

  • Memory no longer leaks when the input buffer is queried with the listed SQL Server tools.2
    Resolves a leak when using the sys.dm_exec_input_buffer dynamic management function or the DBCC INPUTBUFFER command.

Replication

For: Linux and Windows systems

  • Input passed to an internal replication stored procedure is checked and sanitized before use.3
    Validates and sanitizes user input for a parameter passed to an internal replication stored procedure.

SQL Agent

For: Linux and Windows systems

  • An authenticated attacker can no longer use SQL injection to elevate privileges over a network.4
    Resolves a vulnerability caused by improper neutralization of special elements in SQL Server commands.

Known issues

  1. Open Affects: Organizations and IT administrators

    Linked server queries that use MSDASQL fail with error 7416

    In certain configurations, linked-server queries that use the MSDASQL provider and specify a provider string (@provstr) fail with error 7416. A stricter Database Engine connection check can reject these connections even if earlier builds allowed them.5

    Workaround status No workaround yet

    Microsoft has not published a manual workaround for this issue yet. Monitor release health until a resolving update is available.

Technical details

Data sheet · Security · Downloads · Components Click to collapse or expand

Data sheet

Released
2026-07-14
Classification
Security Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5081477, KB5089900, KB5083252, KB5080999
+25 earlier KB5077464, KB5078297, KB5072936, KB5068450, KB5068406, KB5065865, KB5065220, KB5063814, KB5059390, KB5058721, KB5054531, KB5050771, KB5048038, KB5048033, KB5046862, KB5046059, KB5041321, KB5042578, KB5038325, KB5040939, KB5036432, KB5036343, KB5033663, KB5032679, KB5033592
Replaced by
KB5122768
VersionBuildChannel
2022 16.0.4262.2 General availability

Security

4 vulnerabilities fixed
1 critical 3 important
VulnerabilitySeverityCVSS
Microsoft SQL Server Remote Code Execution Vulnerability
Critical —
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 8.8
Microsoft SQL Server Elevation of Privilege Vulnerability
Important 7.5

Downloads (Microsoft Update Catalog)

Updated components

143 files changed since the previous update for the same versions.

Top changed componentsFiles
SQL Server Engine113
SQL Server PolyBase2

Sources

Updated
Cited passages from Microsoft's official notes (5)
  1. 1. This fix resolves an insecure deserialization vulnerability in MessageQueueTask by restricting SoapFormatter deserialization that uses an allow list binder. support.microsoft.com
  2. 2. This fix resolves a memory leak that occurs if the sys.dm_exec_input_buffer dynamic management function (DMF) or the DBCC INPUTBUFFER command is used. support.microsoft.com
  3. 3. This fix addresses input validation and sanitization of user input for a parameter that's passed to an internal replication stored procedure by validating and sanitizing the input before the stored procedure uses it. support.microsoft.com
  4. 4. This fix resolves an SQL injection vulnerability in SQL Server in which improper neutralization of special elements in SQL Server commands allows an authenticated attacker to elevate privileges over a network. support.microsoft.com
  5. 5. Linked server queries that use the MSDASQL (OLE DB Provider for ODBC Drivers) provider and specify a provider string (@provstr) fail and return the following error message: support.microsoft.com
Checked automatically: 8 of 8 checks passed, 5 quoted passages · compared with Microsoft's page on Oct 16, 2026
  • Quotes found in the official pages: passed
  • Numbers found in the sources: passed
  • Vulnerabilities from the dossier only: passed
  • Links to allowed domains only: passed
  • Every official change covered: passed
  • Readable plain text: passed
  • Changes confirmed by the file list: passed
  • Sources agree: passed

A second AI read the text against the sources: correctness 5/5, clarity 4/5, completeness 5/5. How we work

Published by The Update Bureau. Written with AI from Microsoft's own documents, checked by rules and a second AI. How we work · Report a mistake