KB5122048: Cumulative update for SQL Server 2025, CU branch, September 2026. Parallel session results can be wrong; recovery queries can crash
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.
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
-
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_IDwhen 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_informationfor theSCHEMA_OBJECT_ACCESS_GROUPaudit action group.
SQL Server Engine
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
For: All platforms
-
Addresses a vulnerability in the SQL Server managed-backup stored procedures for Microsoft Azure.3
Affects
managed_backup.sp_get_encryption_optionandmanaged_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
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 whenTEXTSIZEtruncates 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
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 ...)orBULK INSERT.
Programmability
-
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
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
*.xelextension.
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
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
For: All platforms
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
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
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
For: Windows SQL Server instances
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
- 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
-
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 yetMicrosoft has not published a manual workaround for this issue yet. Monitor release health until a resolving update is available.
-
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 FlagEnable 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
-
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 yetMicrosoft 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
- Replaced by
- KB5126967
| Version | Build | Channel |
|---|---|---|
| 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 components | Files |
|---|---|
| SQL Server Engine | 71 |
| SQL Server Integration Services | 24 |
| SQL Server Replication | 12 |
| SQL Server Agent | 4 |
| SQL Server Machine Learning Services | 4 |
| SQL Server PolyBase | 4 |
| SQL Server Full-Text Search | 2 |
Verified in package: changed files confirm SQL Server Engine, Management Services, SQL Agent.
Sources
Cited passages from Microsoft's official notes (48)
-
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.
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.
Fixes a vulnerability that affects the SQL Server managed backup to Microsoft Azure stored procedures
support.microsoft.commanaged_backup.sp_get_encryption_optionandmanaged_backup.sp_do_backup. -
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.
Fixes an assertion failure that occurs under optimized locking if a row is requalified after the row is forwarded.
support.microsoft.com -
6.
Fixes a security vulnerability in the handling of sign-in requests that use Microsoft Entra authentication.
support.microsoft.com -
7.
Fixes an issue in which creating a database user from Microsoft Entra ID by using the
support.microsoft.comWITH OBJECT_IDoption fails if the display name of the user contains Kanji or other Unicode characters that the system default code page doesn't support. -
8.
Fixes an issue that affects the security and reliability of SQL Server Agent under certain operating conditions.
support.microsoft.com -
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
support.microsoft.comNONEorEXTERNAL. -
10.
Fixes an issue in which the
support.microsoft.comSUBSTRINGfunction reads beyond the allocated buffer if it processes a malformed DBCSvarcharvalue in a natively compiled stored procedure. -
11.
Fixes an access violation that causes the SQL Server process to end unexpectedly if an
support.microsoft.comnvarcharvalue that contains an ideographic variation sequence is converted or truncated under a variation selector sensitive (_VSS) collation in a natively compiled stored procedure. -
12.
Fixes an issue in which streaming
support.microsoft.comnvarchar(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. -
13.
Fixes an issue in which a class ID lookup in enclave code reads arbitrary memory.
support.microsoft.com -
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.
Fixes an issue in the handling of DTD attribute lists for the
support.microsoft.comxmldata type. -
16.
Fixes an access violation that occurs if a query includes an extremely large
support.microsoft.comOPTION (USE PLAN)XML declaration, which can cause the SQL Server process to end unexpectedly. -
17.
Fixes arithmetic overflow and out-of-bounds memory access in the
support.microsoft.comLEFT_SHIFTandRIGHT_SHIFTfunctions if they process specially crafted shift values or binary input. -
18.
Fixes a security issue in SQL Server in which insufficient validation in Extended Events can cause memory corruption.
support.microsoft.com -
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.
Fixes an integer overflow in the XML reader that occurs if a specially crafted XML format file is processed through
support.microsoft.comOPENROWSET(BULK ...)orBULK INSERT. -
21.
Fixes an issue in which an error condition in
support.microsoft.comsys.fn_external_policy_actions_assigned_to_principalproduces an improperly formatted error message. -
22.
Fixes an issue in which the
support.microsoft.comdata_sensitivity_informationfield isn't consistently populated in audit records that are generated by theSCHEMA_OBJECT_ACCESS_GROUPaudit action group. -
23.
Fixes an issue in which the
support.microsoft.comBuffer cache hit ratioperformance counter always shows zero in Performance Monitor. -
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.
Fixes an improper input validation issue in SQL Server that allows an authenticated user to disclose in-memory information.
support.microsoft.com -
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.
Fixes an inconsistency in the
support.microsoft.comtempdbspace usage that's reported bysys.dm_db_session_space_usageafter drop or truncate operations. -
28.
Fixes improper field offset validation in the
support.microsoft.comSqlDataRecord.SetBytesAPI forsql_variantvalues that can cause an out-of-bounds heap write if CLR integration is turned on. -
29.
Fixes an issue in Change Event Streaming (CES) that prevents event deserialization if event data payloads contain certain characters.
support.microsoft.com -
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.
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.
Improves security validation when SQL Server Agent loads task agent components.
support.microsoft.com -
33.
Improves the reliability and security of SQL Server Agent when it processes certain input.
support.microsoft.com -
34.
Adds bounds validation for embedded attestation fields that are parsed by
support.microsoft.comsys.sp_describe_parameter_encryption. -
35.
Improves the validation of responses from S3-compatible external storage endpoints during external data access.
support.microsoft.com -
36.
Improves the manner in which SQL Server processes and outputs certain internal event data to help better protect information.
support.microsoft.com -
37.
Improves buffer length validation in enclave code.
support.microsoft.com -
38.
Improves the handling of Showplan input to enhance security and reliability.
support.microsoft.com -
39.
Improves the protection of internal replication data during processing operations.
support.microsoft.com -
40.
Improves the handling of text data in merge replication to enhance security and reliability.
support.microsoft.com -
41.
Improves the validation and handling of replication operations to enhance security and reliability.
support.microsoft.com -
42.
Improves the security and reliability of queued updating subscriptions in transactional replication.
support.microsoft.com -
43.
Improves the security and reliability of queued updating subscriptions in transactional replication.
support.microsoft.com -
44.
Adds support for configuring manual soft-NUMA on the Standard and Standard Developer editions of SQL Server.
support.microsoft.com -
45.
Adds multiple-database link mode for the Managed Instance link.
support.microsoft.com -
46.
Linked server queries that use the
support.microsoft.comMSDASQL(OLE DB Provider for ODBC Drivers) provider and specify a provider string (@provstr) fail and return the following error message: -
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
support.microsoft.comsys.dm_exec_requestsorsys.sysprocesseson secondary replicas might return error 976 or error 978, as they did before you installed this update. -
48.
Queries that use the built-in
support.microsoft.comSESSION_CONTEXTfunction might return incorrect results or trigger access violation (AV) dump files when run in parallel query plans.
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