Skip to the content
The Update Bureau
SQL Server 2025 CU9 SQL Server 2025 CU9 Cumulative update

KB5122048

KB5122048: Cumulative update for SQL Server 2025, CU branch, September 2026. Parallel session results can be wrong; recovery queries can crash

In short

CU9 for SQL Server 2025 includes 45 fixes, but it also has open issues that can affect parallel SESSION_CONTEXT queries, MSDASQL linked servers, and queries during database recovery.

Does it affect you? Applies to: SQL Server 2025 instances on Windows or Linux. The package updates only SQL Server components already installed on the selected instance; the Windows package is x64.

Build
17.0.5005.3
Servicing branch
CU
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 30 changes

Security Infrastructure

6 items
  • Creating a database user with certain Unicode characters in the display name no longer fails with character-mapping or token errors.1
    Addresses unsupported Kanji or other Unicode characters in the system default code page.
  • Fixes a security vulnerability in sign-in requests that use Microsoft Entra authentication.6
  • Creating a database user from Microsoft Entra ID no longer fails with certain Unicode display names.7
    Fixes failure with WITH OBJECT_ID when the display name contains Kanji or other Unicode characters unsupported by the system default code page.
  • A class ID lookup in enclave code no longer reads arbitrary memory.13
  • An error from sys.fn_external_policy_actions_assigned_to_principal is formatted correctly.21
  • Audit records consistently include sensitivity information when applicable.22
    Fixes inconsistent population of data_sensitivity_information for the SCHEMA_OBJECT_ACCESS_GROUP audit action group.

SQL Server Engine

Verified in package

For: All platforms

  • An authenticated remote procedure call that overflows a buffer no longer causes the SQL Server process to end unexpectedly.2
    Fixes a buffer overflow during an authenticated Tabular Data Stream (TDS) remote procedure call (RPC).

Management Services

Verified in package 2 items

For: All platforms

  • Addresses a vulnerability in the SQL Server managed-backup stored procedures for Microsoft Azure.3
    Affects managed_backup.sp_get_encryption_option and managed_backup.sp_do_backup; customers using managed backup should apply the update through standard SQL Server servicing.
  • Addresses a security and reliability issue affecting SQL Server Agent in certain operating conditions.8

SQL Server WMI Provider

For: Windows SQL Server instances

  • The SQL Server WMI provider handles malformed input correctly while keeping its existing behavior for valid input.4

Access Methods

For: All platforms

  • An assertion failure no longer occurs in this optimized-locking scenario.5
    The failure occurred when a row was requalified after being forwarded.

High Availability and Disaster Recovery

For: All platforms

  • A secondary replica can join an availability group with a 64-character name and cluster type NONE or EXTERNAL.9

In-Memory OLTP

3 items

For: All platforms

  • The SUBSTRING function no longer reads beyond its allocated buffer when processing malformed DBCS varchar data in a natively compiled stored procedure.10
  • Converting or truncating certain nvarchar values no longer causes an access violation that ends the SQL Server process.11
    Fixes the issue for values containing an ideographic variation sequence under a variation selector sensitive (_VSS) collation in a natively compiled stored procedure.
  • Streaming certain nvarchar(max) data no longer overwrites heap memory or causes the server to stop responding.12
    Occurs with a variation selector sensitive (_VSS) collation in a natively compiled stored procedure when TEXTSIZE truncates data and small TDS packet sizes are used.

PolyBase

For: All platforms

  • Starting PolyBase services with modified command-line parameters no longer opens a raw TCP listener for the DW Engine and DMS channels.14
    Applies to the DMS control and data channels.

XML

3 items

For: All platforms

  • Fixes how SQL Server handles DTD attribute lists for the xml data type.15
  • A query with an extremely large USE PLAN XML declaration no longer causes an access violation that can end the SQL Server process.16
  • Processing a specially crafted XML format file no longer causes an integer overflow that can make SQL Server stop responding or end unexpectedly.20
    Applies to files processed through OPENROWSET(BULK ...) or BULK INSERT.

Programmability

2 items
  • The LEFT_SHIFT and RIGHT_SHIFT functions no longer cause arithmetic overflow or out-of-bounds memory access with specially crafted inputs.17
    The issue could cause the SQL Server process to end unexpectedly.
  • Fixes field-offset validation for sql_variant values in the SqlDataRecord.SetBytes API, addressing a possible out-of-bounds heap write when CLR integration is enabled.28

Extended Events

2 items

For: All platforms

  • Addresses a security issue that could cause memory corruption when Extended Events input is not sufficiently validated.18
  • Fixes vulnerabilities that could disclose information or cause a denial of service when the Database Engine reads a specially crafted Extended Events file.19
    The affected files have the *.xel extension.

SQL OS

For: Windows SQL Server instances

  • The Buffer cache hit ratio performance counter no longer always shows zero in Performance Monitor.23

Query Optimizer

3 items

For: All platforms

  • Stronger input validation addresses a way for an authenticated user to disclose a limited amount of memory.24
  • Stronger input validation addresses a way for an authenticated user to disclose in-memory information.25
  • Stronger input validation addresses an issue where an authenticated user could supply a pointer that SQL Server reads, potentially causing a dump file or out-of-memory condition.26
    SQL Server dereferences and reads the pointer but does not execute it.

Storage Management

For: All platforms

  • Reported tempdb space usage is consistent after drop or truncate operations.27
    Fixes the value reported by sys.dm_db_session_space_usage.

Replication

2 items

For: All platforms

  • Change Event Streaming can deserialize events whose payloads contain certain characters.29
  • Serialization of large object data streamed through Change Event Streaming no longer causes SQL Server dump files.30

Improvements 13 changes

Backup Restore

For: Windows SQL Server instances

  • Malformed or undersized backup metadata is rejected more safely.31
    Improves validation of metadata processed by the SQL Server VSS Writer.

SQL Agent

Verified in package

For: Windows SQL Server instances

  • SQL Server Agent checks task-agent components more thoroughly as it loads them.32
    Improves security validation when SQL Server Agent loads task agent components.

Management Services

Verified in package

For: All platforms

  • SQL Server Agent handles certain input more reliably and securely.33
    Improves the reliability and security of SQL Server Agent when it processes certain input.

Security Infrastructure

2 items

For: Windows SQL Server instances

  • Embedded attestation fields receive bounds checks when parsed.34
    Adds bounds validation in sys.sp_describe_parameter_encryption.
  • Buffer lengths in enclave code are validated more thoroughly.37

PolyBase

For: All platforms

  • Responses from S3-compatible external storage endpoints are validated more thoroughly during external data access.35

Programmability

For: All platforms

  • SQL Server better protects information when processing and outputting certain internal event data.36

Query Store

For: Windows SQL Server instances

  • Showplan input is handled more securely and reliably.38

Replication

5 items
  • Internal replication data is better protected during processing.39
  • Merge replication handles text data more securely and reliably.40
  • Replication operations receive improved validation and handling for security and reliability.41
  • Queued updating subscriptions in transactional replication are more secure and reliable.42
  • Queued updating subscriptions in transactional replication are more secure and reliable.43

New features 2 changes

SQL OS

For: Standard and Standard Developer editions on Windows

  • Manual soft-NUMA configuration is available for the Standard and Standard Developer editions.44

High Availability and Disaster Recovery

For: All platforms

  • Managed Instance link supports linking multiple databases so they can be replicated and failed over together.45
    Multiple-database link mode extends an existing SQL Server Always On availability group to Azure SQL Managed Instance.

Known issues

  1. Open Affects: Everyone

    Linked server queries that use MSDASQL fail with error 7416

    Linked-server queries that use MSDASQL and specify a provider string might fail with error 7416, stating that no login mapping exists. Stricter connection validation can reject some configurations that worked in earlier builds.46

    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.

  2. Open Affects: Everyone

    Access violation when you query sys.dm_exec_requests during database recovery

    Queries against sys.dm_exec_requests might cause an access violation and dump file while a database is recovering, including during RESTORE, startup recovery, or before an availability-group replica finishes coming online.47

    How to apply the workaround SQL Trace Flag

    Enable trace flag 4696 to opt out of the code change, avoid querying sys.dm_exec_requests for recovering databases, or uninstall the update. With the trace flag enabled, monitoring queries against sys.dm_exec_requests or sys.sysprocesses on secondary replicas might return error 976 or 978.47

  3. Open Affects: Everyone

    Incorrect behavior of SESSION_CONTEXT in parallel plans

    Queries using SESSION_CONTEXT might return incorrect results or generate access-violation dump files when they run in parallel query plans, particularly if the session is reset for reuse.48

    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-15
Classification
Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5104822, KB5096981, KB5093421, KB5084896
+4 earlier KB5081495, KB5077896, KB5075211, KB5078298
Replaced by
KB5126967
VersionBuildChannel
2025 17.0.5005.3 General availability

Security

No vulnerabilities are listed for this update.

Downloads (Microsoft Update Catalog)

Updated components

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

Top changed componentsFiles
SQL Server Engine71
SQL Server Integration Services24
SQL Server Replication12
SQL Server Agent4
SQL Server Machine Learning Services4
SQL Server PolyBase4
SQL Server Full-Text Search2

Verified in package: changed files confirm SQL Server Engine, Management Services, SQL Agent.

Sources

Updated
Cited passages from Microsoft's official notes (48)
  1. 1. Fixes an issue in which creating a database user fails and returns character mapping or token errors if the display name of the user contains Kanji or other Unicode characters that the system default code page doesn't support. support.microsoft.com
  2. 2. Fixes a buffer overflow that occurs during an authenticated Tabular Data Stream (TDS) remote procedure call (RPC) and causes the SQL Server process to end unexpectedly. support.microsoft.com
  3. 3. Fixes a vulnerability that affects the SQL Server managed backup to Microsoft Azure stored procedures managed_backup.sp_get_encryption_option and managed_backup.sp_do_backup. support.microsoft.com
  4. 4. Fixes an issue in which the SQL Server WMI provider processes malformed input incorrectly, while preserving the existing behavior for valid input. support.microsoft.com
  5. 5. Fixes an assertion failure that occurs under optimized locking if a row is requalified after the row is forwarded. support.microsoft.com
  6. 6. Fixes a security vulnerability in the handling of sign-in requests that use Microsoft Entra authentication. support.microsoft.com
  7. 7. Fixes an issue in which creating a database user from Microsoft Entra ID by using the WITH OBJECT_ID option fails if the display name of the user contains Kanji or other Unicode characters that the system default code page doesn't support. support.microsoft.com
  8. 8. Fixes an issue that affects the security and reliability of SQL Server Agent under certain operating conditions. support.microsoft.com
  9. 9. Fixes an issue in which a secondary replica fails to join an availability group that has a 64-character name and a cluster type of NONE or EXTERNAL. support.microsoft.com
  10. 10. Fixes an issue in which the SUBSTRING function reads beyond the allocated buffer if it processes a malformed DBCS varchar value in a natively compiled stored procedure. support.microsoft.com
  11. 11. Fixes an access violation that causes the SQL Server process to end unexpectedly if an nvarchar value that contains an ideographic variation sequence is converted or truncated under a variation selector sensitive (_VSS) collation in a natively compiled stored procedure. support.microsoft.com
  12. 12. Fixes an issue in which streaming nvarchar(max) data under a variation selector sensitive (_VSS) collation in a natively compiled stored procedure causes a heap buffer overwrite or causes the server to stop responding. support.microsoft.com
  13. 13. Fixes an issue in which a class ID lookup in enclave code reads arbitrary memory. support.microsoft.com
  14. 14. Fixes an issue in which a raw TCP listener is opened for the DW Engine and DMS control and data channels if the PolyBase services are started by using modified command-line parameters. support.microsoft.com
  15. 15. Fixes an issue in the handling of DTD attribute lists for the xml data type. support.microsoft.com
  16. 16. Fixes an access violation that occurs if a query includes an extremely large OPTION (USE PLAN) XML declaration, which can cause the SQL Server process to end unexpectedly. support.microsoft.com
  17. 17. Fixes arithmetic overflow and out-of-bounds memory access in the LEFT_SHIFT and RIGHT_SHIFT functions if they process specially crafted shift values or binary input. support.microsoft.com
  18. 18. Fixes a security issue in SQL Server in which insufficient validation in Extended Events can cause memory corruption. support.microsoft.com
  19. 19. Fixes several security vulnerabilities that allow information disclosure or a denial of service when the Database Engine reads a specially crafted Extended Events (.xel) file. support.microsoft.com
  20. 20. Fixes an integer overflow in the XML reader that occurs if a specially crafted XML format file is processed through OPENROWSET(BULK ...) or BULK INSERT. support.microsoft.com
  21. 21. Fixes an issue in which an error condition in sys.fn_external_policy_actions_assigned_to_principal produces an improperly formatted error message. support.microsoft.com
  22. 22. Fixes an issue in which the data_sensitivity_information field isn't consistently populated in audit records that are generated by the SCHEMA_OBJECT_ACCESS_GROUP audit action group. support.microsoft.com
  23. 23. Fixes an issue in which the Buffer cache hit ratio performance counter always shows zero in Performance Monitor. support.microsoft.com
  24. 24. Fixes an improper input validation issue in SQL Server that allows an authenticated user to disclose a limited amount of memory. support.microsoft.com
  25. 25. Fixes an improper input validation issue in SQL Server that allows an authenticated user to disclose in-memory information. support.microsoft.com
  26. 26. Fixes 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
  27. 27. Fixes an inconsistency in the tempdb space usage that's reported by sys.dm_db_session_space_usage after drop or truncate operations. support.microsoft.com
  28. 28. Fixes improper field offset validation in the SqlDataRecord.SetBytes API for sql_variant values that can cause an out-of-bounds heap write if CLR integration is turned on. support.microsoft.com
  29. 29. Fixes an issue in Change Event Streaming (CES) that prevents event deserialization if event data payloads contain certain characters. support.microsoft.com
  30. 30. Fixes SQL Server dump files that might occur during serialization of large object data that's streamed through Change Event Streaming. support.microsoft.com
  31. 31. Improves the validation of backup metadata that the SQL Server VSS Writer processes so that malformed or undersized metadata is rejected safely. support.microsoft.com
  32. 32. Improves security validation when SQL Server Agent loads task agent components. support.microsoft.com
  33. 33. Improves the reliability and security of SQL Server Agent when it processes certain input. support.microsoft.com
  34. 34. Adds bounds validation for embedded attestation fields that are parsed by sys.sp_describe_parameter_encryption. support.microsoft.com
  35. 35. Improves the validation of responses from S3-compatible external storage endpoints during external data access. support.microsoft.com
  36. 36. Improves the manner in which SQL Server processes and outputs certain internal event data to help better protect information. support.microsoft.com
  37. 37. Improves buffer length validation in enclave code. support.microsoft.com
  38. 38. Improves the handling of Showplan input to enhance security and reliability. support.microsoft.com
  39. 39. Improves the protection of internal replication data during processing operations. support.microsoft.com
  40. 40. Improves the handling of text data in merge replication to enhance security and reliability. support.microsoft.com
  41. 41. Improves the validation and handling of replication operations to enhance security and reliability. support.microsoft.com
  42. 42. Improves the security and reliability of queued updating subscriptions in transactional replication. support.microsoft.com
  43. 43. Improves the security and reliability of queued updating subscriptions in transactional replication. support.microsoft.com
  44. 44. Adds support for configuring manual soft-NUMA on the Standard and Standard Developer editions of SQL Server. support.microsoft.com
  45. 45. Adds multiple-database link mode for the Managed Instance link. support.microsoft.com
  46. 46. 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
  47. 47. Enable trace flag 4696 to opt out of the code change that causes this issue. If you enable this trace flag, monitoring queries that query sys.dm_exec_requests or sys.sysprocesses on secondary replicas might return error 976 or error 978, as they did before you installed this update. support.microsoft.com
  48. 48. Queries that use the built-in SESSION_CONTEXT function might return incorrect results or trigger access violation (AV) dump files when run in parallel query plans. support.microsoft.com
Checked automatically: 8 of 8 checks passed, 48 quoted passages · compared with Microsoft's page on Nov 14, 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 4/5, clarity 3/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