Skip to the content
The Update Bureau
SQL Server 2025 GDR SQL Server 2025 GDR Security update
Patch Tuesday

KB5122770

KB5122770: Security update for SQL Server 2025, GDR branch, September 2026. Critical database flaws addressed; linked-server queries may fail

In short

Addresses 56 SQL Server vulnerabilities, including four critical remote-code-execution flaws. Linked server queries using MSDASQL and a provider string can fail with error 7416.

Does it affect you? Applies to: SQL Server 2025 on Windows and Linux, all editions.

Build
17.0.1135.8
Servicing branch
GDR
Security
56 fixed · 4 critical
Restart
Required

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

What changes

Fixes 38 changes

Backup Restore

2 items
  • The managed backup stored procedures receive a security fix.1
    Addresses a vulnerability affecting managed_backup.sp_get_encryption_option and managed_backup.sp_do_backup. The source advises customers who use managed backup to apply the update through the standard SQL Server servicing process.
  • Malformed or undersized backup metadata is rejected safely.2
    Improves internal validation of backup metadata processed by the SQL Server Volume Shadow Copy Service (VSS) Writer.

SQL Agent

3 items
  • SQL Server Agent applies stronger security checks when loading task-agent components.3
    Addresses a security validation issue when SQL Server Agent loads task-agent components.
  • SQL Server Agent gets reliability and security fixes for processing specific input.4
    Addresses reliability and security issues in SQL Server Agent if it processes specific input.
  • SQL Server Agent gets a security and reliability fix for specific operating conditions.14
    Addresses an issue affecting the security and reliability of SQL Server Agent under specific operating conditions.

WMI Management Provider (SqlMgmProvider)

For: SQL Server on Windows

  • The SQL WMI Provider handles malformed input correctly while retaining its behavior for valid input.5
    Addresses incorrect processing of malformed input by the SQL WMI Provider.

Security Infrastructure

3 items
  • Microsoft Entra authentication login handling receives a security fix.6
    Addresses a security vulnerability in Microsoft Entra authentication login handling in SQL Server.
  • An error condition now produces a correctly formatted error message.26
    Addresses an error condition that causes an incorrectly formatted error message.
  • Audit records consistently include sensitivity information when applicable.29
    Fixes inconsistent population of data_sensitivity_information in audit records generated by SCHEMA_OBJECT_ACCESS_GROUP.

Replication

14 items
  • Replication stored procedures receive stronger internal validation and security checks.7
    Improves internal validation and security checks to ensure replication operations use the expected security safeguards.
  • Replication stored procedures handle supplied and stored identifiers more reliably.8
    Addresses identifier handling and input validation in replication stored procedures.
  • Replication stored procedures handle identifiers with longer or special characters correctly.9
    Addresses replication stored procedures that incorrectly process identifiers containing longer or special characters.
  • Replication stored procedures handle identifiers with special characters correctly.10
    Addresses replication stored procedures that incorrectly process identifiers containing special characters.
  • A merge replication metadata stored procedure validates supplied values more reliably.11
    Addresses input validation for a merge replication metadata stored procedure.
  • A replication stored procedure handles a caller-supplied path value correctly.12
    Addresses a replication stored procedure that handles a caller-supplied path value.
  • Replication stored procedures validate their parameter values more reliably.13
    Addresses input validation for parameters used by replication stored procedures.
  • Buffer length checks in enclave code are strengthened.28
    Strengthens buffer length validation checks within enclave code.
  • Object Store Format deserialization is hardened against malformed or malicious stream data.30
    Strengthens Object Store Format (OSF) deserialization against malformed or malicious stream data.
  • Embedded attestation fields receive bounds checks.31
    Adds bounds validation for embedded attestation fields.
  • A class ID lookup no longer reads arbitrary memory.32
    Addresses an issue in which the class ID lookup call reads arbitrary memory.
  • Protection of internal replication data during processing is addressed.36
    Addresses an issue affecting the protection of internal replication data during processing operations.
  • Merge Replication handles text data more reliably during processing.37
    Addresses an issue in Merge Replication affecting the handling of text data during processing operations.
  • Validation and handling in replication operations receive security and reliability changes.38
    Addresses an issue in replication operations affecting validation and handling, enhancing security and reliability.

In-Memory OLTP

3 items

For: SQL Server on Windows

  • A malformed double-byte character input issue that could make the server read beyond a buffer is addressed.15
    The SUBSTRING function could read beyond the allocated buffer while processing malformed DBCS varchar input in a natively compiled In-Memory OLTP procedure.
  • A conversion issue that could make the server stop responding is addressed.16
    Converting or truncating an NVARCHAR value containing an Ideographic Variation Sequence under a Variation Selector Sensitive (_VSS) collation could cause an access violation in a natively compiled In-Memory OLTP procedure.
  • A stored procedure issue that could overwrite memory and stop the server responding is addressed.17
    Addresses a heap buffer overwrite when a natively compiled stored procedure streams nvarchar(max) data with SET TEXTSIZE truncation under a _VSS collation and uses small TDS packet sizes.

PolyBase

For: SQL Server on Windows and Linux

  • PolyBase services no longer open raw TCP listeners for the DW Engine and DMS channels when started with modified command-line parameters.18
    Addresses a remote code execution vulnerability involving modified PolyBase service command-line parameters that activate a deprecated feature. The fix prevents raw TCP listeners for the DW Engine and DMS control and data channels in this scenario.

XML

3 items
  • XML data type handling for DTD attribute lists is corrected.19
    Addresses an XML data type handling bug in Document Type Definition (DTD) attribute lists.
  • A very large query plan declaration no longer causes the described access violation and unexpected process termination.20
    Addresses an access violation when SQL Server processes a query with an extremely large OPTION (USE PLAN) XML declaration.
  • A specially crafted XML format file no longer causes the described integer overflow when processed.25
    Addresses an integer overflow in the SQL Server XML reader when processing a specially crafted XML format file through OPENROWSET(BULK...) or BULK INSERT; the overflow could stop or unexpectedly terminate the process.

Query Execution

4 items
  • The LEFT_SHIFT and RIGHT_SHIFT functions receive safeguards against inputs that could cause the server to terminate unexpectedly.21
    Addresses arithmetic overflow and out-of-bounds memory access when these functions process specially crafted shift values or binary inputs.
  • Input validation is strengthened against an authenticated user's ability to disclose a limited amount of memory.27
    Addresses improper input validation that allows an authenticated user to disclose a limited amount of memory.
  • Input validation is strengthened against an authenticated user's ability to disclose in-memory information.33
    Addresses improper input validation that allows an authenticated user to disclose in-memory information.
  • Input validation is strengthened against a pointer that could cause dump file generation or out-of-memory conditions.34
    Addresses an issue in which an authenticated user can provide a pointer that SQL Server dereferences and reads but does not execute.

Programmability

2 items
  • The handling and output of certain internal event data is updated to help protect information.22
    Addresses a security issue by updating how SQL Server processes and outputs certain internal event data.
  • Invalid field offsets in SqlDataRecord.SetBytes are addressed to prevent an out-of-bounds heap write.35
    Addresses improper field offset validation for sql_variant values in SqlDataRecord.SetBytes. The issue can cause denial of service or elevation of privilege when CLR is enabled, including in SQL Server installations and Azure SQL Managed Instances.

SQL Server Engine

Verified in package

For: SQL Server on Windows and Linux

  • An authenticated remote procedure call buffer overflow that could terminate the SQL Server process is addressed.23
    Addresses a buffer overflow during an authenticated Tabular Data Stream (TDS) remote procedure call (RPC).

Extended Events

For: SQL Server on Windows and Linux

  • A memory-corruption risk in Extended Events is addressed.24
    Addresses insufficient validation in Extended Events that can cause memory corruption.

Improvements 4 changes

PolyBase

For: SQL Server on Windows and Linux

  • Responses from S3-compatible external storage are validated more carefully.39
    Improves validation of responses from S3-compatible external storage endpoints during external data access.

Query Store

For: SQL Server on Windows

  • Showplan input handling is improved for security and reliability.40
    Improves the handling of input to Showplan to enhance security and reliability.

Replication

2 items

For: SQL Server on Windows

  • Queued Updating Subscriptions in Transactional Replication receive security and reliability improvements.41
    Includes security and reliability improvements for the Queued Updating Subscriptions in Transactional Replication.
  • Queued Updating Subscriptions in Transactional Replication receive security and reliability improvements.42
    Includes security and reliability improvements for the Queued Updating Subscriptions in Transactional Replication.

Known issues

  1. Open Affects: Organizations and IT administrators

    Linked server queries that use MSDASQL fail with error 7416

    Linked server queries using the MSDASQL provider and specifying a provider string (@provstr) fail with error 7416: access to the remote server is denied because no login-mapping exists. A stricter Database Engine connection validation check can reject some configurations that worked in earlier builds.43

    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-09-08
Classification
Security Updates
Type
Cumulative update
Servicing branch
GDR
Restart
Required
Replaces
KB5102333, KB5091223, KB5084814, KB5077468, KB5073177
Replaced by
KB5128492
VersionBuildChannel
2025 17.0.1135.8 General availability

Security

56 vulnerabilities fixed
4 critical 52 important
VulnerabilitySeverityCVSS
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.8
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.8
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.0
Microsoft SQL Server Remote Code Execution Vulnerability
Critical 9.0

The table lists the 4 exploited, publicly disclosed or critical vulnerabilities. See all 56 vulnerabilities →

Downloads (Microsoft Update Catalog)

Updated components

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

Top changed componentsFiles
SQL Server Engine114
SQL Server PolyBase3

Verified in package: changed files confirm SQL Server Engine.

Sources

Updated
Cited passages from Microsoft's official notes (43)
  1. 1. This fix addresses a vulnerability that affects the SQL Server managed backup to the Microsoft Azure stored procedures, managed_backup.sp_get_encryption_option and managed_backup.sp_do_backup. support.microsoft.com
  2. 2. This fix addresses an issue in which internal validation of backup metadata that's processed by the SQL Server Volume Shadow Copy Service (VSS) Writer improves handling of malformed or undersized metadata to ensure that it's rejected safely. support.microsoft.com
  3. 3. This fix addresses a security validation issue in SQL Server Agent if SQL Server Agent loads task-agent components. support.microsoft.com
  4. 4. This fix addresses reliability and security issues in SQL Server Agent if it processes specific input. support.microsoft.com
  5. 5. This fix addresses an issue in which the SQL WMI Provider processes malformed input incorrectly while preserving existing behavior for valid input. support.microsoft.com
  6. 6. This fix addresses a security vulnerability in Microsoft Entra authentication login handling in SQL Server. support.microsoft.com
  7. 7. This fix improves internal validation and security checks for SQL Server replication stored procedures to ensure that replication operations are processed by using the expected security safeguards. support.microsoft.com
  8. 8. This fix addresses identifier handling and input validation in replication stored procedures to ensure that supplied and stored values are processed correctly. support.microsoft.com
  9. 9. This fix addresses replication stored procedures that incorrectly process identifiers that contains longer or special characters. support.microsoft.com
  10. 10. This fix addresses replication stored procedures that incorrectly process identifiers that contain special characters. support.microsoft.com
  11. 11. This fix addresses input validation for a merge replication metadata stored procedure to ensure that supplied values are processed reliably. support.microsoft.com
  12. 12. This fix addresses a replication stored procedure that handles a caller-supplied path value. support.microsoft.com
  13. 13. This fix addresses input validation for parameters that are used by replication stored procedures to ensure that supplied values are processed reliably. support.microsoft.com
  14. 14. This fix addresses an issue that affects the security and reliability of SQL Server Agent under specific operating conditions. support.microsoft.com
  15. 15. This fix addresses an issue in which the SUBSTRING function reads beyond the allocated buffer if it processes malformed double-byte character set (DBCS) varchar input. support.microsoft.com
  16. 16. This fix addresses an issue in which converting or truncating an NVARCHAR value that contains an Ideographic Variation Sequence (IVS) under a Variation Selector Sensitive (_VSS) collation causes an access violation. support.microsoft.com
  17. 17. This fix addresses an issue in which a natively compiled stored procedure causes a heap buffer overwrite while streaming nvarchar(max) data that has SET TEXTSIZE truncation under a Variation Selector Sensitive (_VSS) collation. support.microsoft.com
  18. 18. The fix prevents PolyBase services from opening raw TCP listeners for the DW Engine and DMS control and data channels if the services start by having modified command-line parameters. support.microsoft.com
  19. 19. This fix addresses an XML data type handling bug in Document Type Definition (DTD) attribute lists. support.microsoft.com
  20. 20. This fix addresses an access violation that occurs if SQL Server processes a query that has an extremely large OPTION (USE PLAN) XML declaration. support.microsoft.com
  21. 21. This fix addresses arithmetic overflow and out-of-bounds memory access issues in the SQL Server LEFT_SHIFT and RIGHT_SHIFT functions if these functions process specially crafted shift values or binary inputs. support.microsoft.com
  22. 22. This fix addresses a security issue in SQL Server by updating how SQL Server processes and outputs certain internal event data to help protect information. support.microsoft.com
  23. 23. This fix addresses a buffer overflow that occurs during an authenticated Tabular Data Stream (TDS) remote procedure call (RPC) and causes the SQL Server process to terminate unexpectedly. support.microsoft.com
  24. 24. This fix addresses a security issue in SQL Server in which insufficient validation in Extended Events can cause memory corruption. support.microsoft.com
  25. 25. This fix addresses an integer overflow in the SQL Server XML reader that occurs if SQL Server processes a specially crafted XML format file through OPENROWSET(BULK...) or BULK INSERT. support.microsoft.com
  26. 26. This fix addresses an error condition that causes an incorrectly formatted error message. support.microsoft.com
  27. 27. This fix addresses an improper input validation issue in SQL Server that allows an authenticated user to disclose a limited amount of memory. support.microsoft.com
  28. 28. This fix strengthens buffer length validation checks within enclave code. support.microsoft.com
  29. 29. Fixes an issue in which the data_sensitivity_information field is not consistently populated in audit records that are generated by SCHEMA_OBJECT_ACCESS_GROUP. support.microsoft.com
  30. 30. This fix strengthens Object Store Format (OSF) deserialization against malformed or malicious stream data. support.microsoft.com
  31. 31. This fix adds bounds validation for embedded attestation fields. support.microsoft.com
  32. 32. This fix addresses an issue in which the class ID lookup call reads arbitrary memory. support.microsoft.com
  33. 33. This fix addresses an improper input validation issue in SQL Server that allows an authenticated user to disclose in-memory information. support.microsoft.com
  34. 34. This fix addresses an improper input validation issue in SQL Server in which an authenticated user can provide a pointer that SQL Server dereferences and reads but does not execute. support.microsoft.com
  35. 35. This fix addresses improper field offset validation in the SqlDataRecord.SetBytes API for sql_variant values. support.microsoft.com
  36. 36. This fix addresses an issue that affects the protection of internal replication data during processing operations. support.microsoft.com
  37. 37. This fix addresses an issue in Merge Replication that affects the handling of text data during processing operations. support.microsoft.com
  38. 38. This fix addresses an issue in replication operations that affects validation and handling, enhancing security and reliability. support.microsoft.com
  39. 39. This fix improves the validation of responses from S3-compatible external storage endpoints during external data access. support.microsoft.com
  40. 40. This fix improves the handling of input to Showplan to enhance security and reliability. support.microsoft.com
  41. 41. This update includes security and reliability improvements for the Queued Updating Subscriptions in Transactional Replication. support.microsoft.com
  42. 42. This update includes security and reliability improvements for the Queued Updating Subscriptions in Transactional Replication. support.microsoft.com
  43. 43. 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, 43 quoted passages · compared with Microsoft's page on Nov 8, 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