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

KB5129223

KB5129223: Cumulative update for SQL Server 2025, CU branch, November 2026. Parallel SESSION_CONTEXT queries can return wrong results

In short

Queries using SESSION_CONTEXT might return wrong results or create crash dump files when they run in parallel; this remains a known issue. CU11 includes 70 fixes for SQL Server 2025.

Does it affect you? Applies to: This update applies to SQL Server 2025 installations on Windows and Linux. It updates only the SQL Server components already installed on the instance.

Build
17.0.5065.9
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 26 changes

Query Optimizer

For: SQL Server installations on all platforms

  • Some window queries might return incorrect results when a partition column uses a case-insensitive collation. This is fixed.1
    Fixes string predicates over window aggregates when the partitioning column uses a case-insensitive collation.

High Availability and Disaster Recovery

2 items

For: Windows installations using availability groups

  • Some monitoring queries might fail on a read-intent-only secondary replica in an availability group. This is fixed.2
    Addresses intermittent error 976 or 978 results from queries using sys.dm_exec_requests or sys.sysprocesses.
  • An availability group listener that uses a DHCP address can come online again.5
    Fixes the issue that prevents an availability group listener using a Dynamic Host Configuration Protocol (DHCP) address from coming online.

Security Infrastructure

2 items
  • Decrypting empty or NULL values in certain Always Encrypted columns no longer causes error 33550.3
    Fixes error 33550, state 42, when a secure enclave decrypts empty or NULL values in varchar(max), nvarchar(max), or varbinary(max) columns.
  • An ALTER SYMMETRIC KEY operation can use an asymmetric key from an EKM provider on Linux.13
    Fixes failure when ALTER SYMMETRIC KEY uses ADD ENCRYPTION BY ASYMMETRIC KEY with an Extensible Key Management provider.

Programmability

3 items
  • A query run from a Service Broker stored procedure no longer causes a connection to end unexpectedly.4
    Fixes an access violation when sys.dm_exec_describe_first_result_set runs from a Service Broker-activated stored procedure.
  • JSON functions return an error instead of crashing when they process a path with more than 128 nesting levels.14
    Fixes an access violation when JSON functions process paths with more than 128 nesting levels.
  • ALTER DATABASE CURRENT ADD FILE no longer returns error 42019 on certain Azure SQL Managed Instance service tiers.23
    Applies to General Purpose and Next-gen General Purpose service tiers.

Access Methods

2 items

For: SQL Server installations on all platforms

  • Database performance counters no longer go missing after you run DBCC CHECKDB.6
    Fixes missing database performance counters after DBCC CHECKDB runs.
  • Queries on databases with many tables, indexes, or partitions no longer cause non-yielding scheduler errors or dump files.19
    Fixes issues when querying sys.dm_db_index_operational_stats on databases with a very large number of tables, indexes, or partitions.

SQL OS

For: SQL Server installations on all platforms

  • The hadr_log_block_decompression event reports the compressed and uncompressed log block sizes correctly.7
    Fixes the hadr_log_block_decompression extended event reporting the same value for both sizes.

Integration Services

3 items

For: Windows installations using Integration Services

  • Reading data with the Integration Services Raw File source no longer causes a memory access violation.8
    Fixes a memory access violation that might occur when the Raw File source component reads data.
  • The Integration Services HTTP Connection Manager no longer has an integer overflow that can cause invalid memory access.9
  • Truncated OLE DB output parameters no longer cause invalid memory access in the Execute SQL Task.10
    Fixes the issue when the task handles truncated OLE DB output parameters.

Analysis Services

2 items

For: Windows installations using Analysis Services

  • Some MDX queries now include hidden leaf members in their results instead of missing rows or lower measure totals.11
    Fixes nested subselects over ragged hierarchies configured with HideMemberIf.
  • Some MDX queries no longer cause Analysis Services to stop unexpectedly.12
    Fixes the issue when relational OLAP mode and proactive caching are enabled.

Extensibility

For: SQL Server installations on all platforms

  • Permissions are cleaned up when an EXTERNAL MODEL is dropped.15

Methods to access stored data

For: SQL Server installations on all platforms

  • A query on a corrupted row-compressed record now returns a database corruption error instead of unintended memory content.16
    SQL Server validates compressed-record metadata.

Replication

5 items
  • Online index or constraint changes running alongside data changes no longer cause assertion failures during change capture.17
  • Authorization checks for merge replication row metadata are corrected.18
  • The replication queue command decoder no longer exposes information.24
    Fixes an information disclosure vulnerability in xp_decodequeuecmd.
  • The Log Reader Agent no longer risks a heap buffer overflow when it handles single quotation marks in column values.25
  • Merge replication improves subscriber validation checks to fix an elevation of privilege vulnerability.26

DB Management

For: SQL Server installations on all platforms

  • Online index operations can run alongside data changes when Change Data Capture is enabled.20
    Fixes an error when an online index operation runs concurrently with DML operations in a database with Change Data Capture enabled.

Backup Restore

For: Windows installations

  • An oversized user instance name no longer disrupts SQL Server VSS Writer backups or snapshots or causes an out-of-bounds memory write.21
    Fixes an input validation issue in SQL Server VSS Writer.

Linux

For: Linux installations

  • Extended Events log files can be created on Linux loop devices that use certain sector sizes.22

Improvements 39 changes

Integration Services

For: Windows installations using Integration Services

  • XSLT scripting is off by default in the Integration Services XML Task.27
    To restore the previous behavior, set EnableXsltScript to 1 under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server{version}\SSIS\XMLTask.

Replication

24 items
  • Merge replication checks identifiers more reliably.28
    Improves identifier validation in merge replication.
  • Transactional replication checks identifiers more reliably.30
    Improves identifier validation in transactional replication.
  • Merge replication checks retry information more carefully.39
    Improves bounds validation when merge replication processes retry information.
  • Stored procedures used by merge replication receive stronger security checks.40
  • Replication database upgrades receive stronger security checks.43
  • Transactional replication checks conflict table names more carefully.44
  • The Replication Queue Reader Agent checks parameters more carefully.45
    Improves parameter validation in the Replication Queue Reader Agent.
  • Merge replication handles conflict table names more reliably.46
  • Merge replication checks conflict reports more securely.47
  • Merge replication checks object names more carefully when schemas change.48
  • Generated merge replication procedures handle table names more reliably.49
  • SQL Server checks inputs more carefully when it processes merge replication changes.50
  • SQL Server improves security when it processes schema changes in transactional replication.51
  • Lightweight merge replication operations receive stronger security checks.52
  • SQL Server checks queued replication data more securely.53
  • Replication subscription checks validate roles more carefully.55
  • Replication data and operations receive stronger security checks.56
  • The Replication Queue Reader Agent checks queued update messages more carefully.58
    Improves bounds validation when the agent processes queued update messages.
  • Replication metadata checks improve security and reliability.60
  • Replication linked-server access receives stronger security checks.61
  • Azure Synapse Link for SQL checks its inputs more carefully.62
  • The Replication Queue Reader Agent checks parameters and data conversions more carefully.63
  • Merge replication checks error sources more carefully to address a security vulnerability.64
  • The sp_MStable_validation procedure checks column-list inputs to address a security vulnerability.65

Transaction Services

For: SQL Server installations on all platforms

  • XA stored procedures now catch undersized output buffers and return error 47204.29
    Improves output-buffer validation to prevent buffer overflows.

Storage Management

For: Windows installations

  • SQL Server checks transaction log blocks more carefully during recovery and log scans.31
    Improves validation to prevent out-of-bounds memory reads when scanning malformed records.

Methods to access stored data

6 items

For: Windows installations

  • SQL Server initializes buffers used when it builds index records and splits B-tree pages.32
    Improves security by initializing buffers used during index record construction and B-tree page splits.
  • SQL Server initializes buffers used during storage and record operations.33
    Improves security during insert, update, bulk, compression, and record reconstruction operations.
  • SQL Server checks page-compressed record data more carefully.34
    Improves validation of long-column offsets to reject malformed record metadata.
  • SQL Server checks sparse-column records more carefully when it reads or rebuilds them.35
    Improves validation of sparse-column record headers and column offsets.
  • SQL Server checks variable-length column offsets when it processes database records.37
  • SQL Server checks column metadata to prevent out-of-bounds memory writes when it loads database schemas.38

Column Stores

For: Windows installations

  • SQL Server checks columnstore header sizes when it attaches, restores, or checks a database.36

Management Services

2 items
  • Internal stored procedures check object names while keeping their existing behavior.41
    Improves object name validation in internal stored procedures.
  • SQL Server Agent job steps receive stronger authorization checks.54

SQLDiag

For: Windows installations using SQLDiag

  • SQLDiag handles long and Unicode database names more reliably.42
    Improves diagnostic collection reliability and security.

Linux

  • Native SQL Server installations on Linux handle operating system resource limits more reliably.57
    Improves resource-limit configuration, including mssql-conf startup, without changing container launch behavior.

PolyBase

For: SQL Server installations on all platforms

  • The sys.sp_polybase_show_objects procedure checks its inputs more carefully.59

New features 5 changes

High Availability and Disaster Recovery

3 items
  • Certificate authentication is supported for endpoints on systems that use only TLS 1.3.66
    Startup trace flag 12389 disables this support.
  • Service Broker endpoints can use TLS through Schannel.67
  • Three procedures can reseed, repair, or check databases in multi-database link mode with Azure SQL Managed Instance.70
    sys.sp_milink_reseed restarts seeding without removing and re-adding the database to the availability group; sys.sp_milink_repair repairs a broken link; sys.sp_milink_check checks database health.

Programmability

For: SQL Server installations on all platforms

  • A new Japanese collation is available for databases.68
    Use sys.sp_db_ebcdic930_collation to enable SQL_Japanese_180_EBCDIC930_CS_AS_UTF8 for a database.

Methods to access stored data

For: SQL Server installations on all platforms

  • Trace flag 683 can reduce CPU use in a specific latch condition.69
    The flag reduces CPU overhead when heap or B-tree (HoBt) latches are promoted to superlatches but counter partitioning does not occur.

Known issues

  1. Open Affects: Everyone

    Incorrect behavior of SESSION_CONTEXT in parallel plans

    Queries using SESSION_CONTEXT might return wrong results or create access violation dump files when they run in parallel query plans, especially if a session is reset for reuse.71

    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-11-12
Classification
Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5125471, KB5122048, KB5104822, KB5096981
+6 earlier KB5093421, KB5084896, KB5081495, KB5077896, KB5075211, KB5078298
VersionBuildChannel
2025 17.0.5065.9 General availability

Security

No vulnerabilities are listed for this update.

Downloads (Microsoft Update Catalog)

Updated components

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

Top changed componentsFiles
SQL Server Engine39
SQL Server Analysis Services26
SQL Server Integration Services25
SQL Server Replication12
SQL Server Agent4
SQL Server Machine Learning Services4
SQL Server Full-Text Search2
SQL Server PolyBase2

Page history

  1. Now also covers build 17.0.5065.9 (2025)

Sources

Updated
Cited passages from Microsoft's official notes (71)
  1. 1. Fixes an issue in which a query that applies a string predicate over a window aggregate might return incorrect results if the partitioning column uses a case-insensitive collation. support.microsoft.com
  2. 2. Fixes an issue in which monitoring queries that use sys.dm_exec_requests or sys.sysprocesses intermittently fail and return a "976" or "978" error message when they run on a read-intent-only secondary replica in an availability group. support.microsoft.com
  3. 3. Fixes error "33550", state "42", that occurs when a secure enclave in SQL Server decrypts empty or NULL values in varchar(max), nvarchar(max), or varbinary(max) columns that use Always Encrypted. support.microsoft.com
  4. 4. Fixes an issue in which running sys.dm_exec_describe_first_result_set from a Service Broker-activated stored procedure causes an access violation and unexpectedly ends the connection. support.microsoft.com
  5. 5. Fixes an issue in which an availability group listener that uses a Dynamic Host Configuration Protocol (DHCP) address doesn't come online. support.microsoft.com
  6. 6. Fixes an issue in which database performance counters are missing after you run DBCC CHECKDB. support.microsoft.com
  7. 7. Fixes an issue in which the hadr_log_block_decompression extended event reports the same value for the compressed and uncompressed log block sizes. support.microsoft.com
  8. 8. Fixes a memory access violation that might occur when the Raw File source component in SQL Server Integration Services reads data. support.microsoft.com
  9. 9. Fixes an integer overflow in the Integration Services HTTP Connection Manager that can cause invalid memory access. support.microsoft.com
  10. 10. Fixes an issue in which handling truncated OLE DB output parameters in the Integration Services Execute SQL Task can cause invalid memory access. support.microsoft.com
  11. 11. Fixes an issue in which Multidimensional Expressions (MDX) queries that use nested subselects over ragged hierarchies configured with HideMemberIf omit hidden leaf members, resulting in missing rows or lower measure totals. support.microsoft.com
  12. 12. Fixes an issue in which Multidimensional Expressions (MDX) queries cause SQL Server Analysis Services to end unexpectedly when relational online analytical processing (ROLAP) mode and proactive caching are enabled. support.microsoft.com
  13. 13. Fixes an issue in which ALTER SYMMETRIC KEY that uses ADD ENCRYPTION BY ASYMMETRIC KEY fails when it uses an asymmetric key from an Extensible Key Management (EKM) provider on Linux. support.microsoft.com
  14. 14. Fixes an access violation that can occur if JSON functions process a path that has more than 128 nesting levels. support.microsoft.com
  15. 15. Fixes an issue in which permissions are not cleaned up when an EXTERNAL MODEL is dropped. support.microsoft.com
  16. 16. Fixes an issue in which querying a corrupted row-compressed record can return unintended memory content. support.microsoft.com
  17. 17. Fixes an issue in which online index or constraint changes that run concurrently with data modifications can cause assertion failures during change capture. support.microsoft.com
  18. 18. Fixes a security issue in authorization checks for merge replication row metadata. support.microsoft.com
  19. 19. Fixes non-yielding scheduler errors and dump files that can occur when querying sys.dm_db_index_operational_stats on databases that have a very large number of tables, indexes, or partitions. support.microsoft.com
  20. 20. Fixes an error that occurs when an online index operation runs concurrently with data manipulation language (DML) operations in a database that has Change Data Capture (CDC) enabled. support.microsoft.com
  21. 21. Fixes an input validation issue in SQL Server VSS Writer in which an oversized user instance name can disrupt backup and snapshot operations or cause an out-of-bounds memory write action. support.microsoft.com
  22. 22. Fixes an issue in which creating Extended Events log files fails on Linux loop devices that use certain sector sizes. support.microsoft.com
  23. 23. Fixes an issue in which ALTER DATABASE CURRENT ADD FILE fails and returns a "42019" error message on Azure SQL Managed Instance General Purpose and Next-gen General Purpose service tiers. support.microsoft.com
  24. 24. Fixes an information disclosure vulnerability in the xp_decodequeuecmd replication queue command decoder. support.microsoft.com
  25. 25. Fixes a heap buffer overflow that can occur when the Log Reader Agent escapes single quotation marks in column values. support.microsoft.com
  26. 26. Fixes an elevation of privilege vulnerability in merge replication by improving validation of subscriber validation expressions. support.microsoft.com
  27. 27. Disables Extensible Stylesheet Language Transformations (XSLT) scripting by default in the SQL Server Integration Services XML Task. support.microsoft.com
  28. 28. Improves identifier validation in merge replication. support.microsoft.com
  29. 29. Improves output-buffer validation in XA stored procedures to prevent buffer overflows. support.microsoft.com
  30. 30. Improves identifier validation in transactional replication. support.microsoft.com
  31. 31. Improves validation of transaction log blocks during recovery and log scanning to prevent out-of-bounds memory read actions when scanning malformed records. support.microsoft.com
  32. 32. Improves security by initializing buffers that are used during index record construction and B-tree page splits. support.microsoft.com
  33. 33. Improves security by initializing buffers that are used during storage engine insert, update, bulk, compression, and record reconstruction operations. support.microsoft.com
  34. 34. Improves validation of long-column offsets in page-compressed records to reject malformed record metadata. support.microsoft.com
  35. 35. Improves validation of sparse-column record headers and column offsets when SQL Server reads or rebuilds records. support.microsoft.com
  36. 36. Improves validation of columnstore header sizes when SQL Server attaches, restores, or checks a database. support.microsoft.com
  37. 37. Improves validation of variable-length column offsets when SQL Server processes database records. support.microsoft.com
  38. 38. Improves validation of column metadata to prevent out-of-bounds memory write actions when SQL Server loads database schemas. support.microsoft.com
  39. 39. Improves bounds validation when merge replication processes retry information. support.microsoft.com
  40. 40. Strengthens security validation for stored procedures that are used by merge replication. support.microsoft.com
  41. 41. Improves object name validation in internal stored procedures while preserving existing behavior. support.microsoft.com
  42. 42. Improves SQLDiag handling of database names, including long names and Unicode characters, to enhance diagnostic collection reliability and security. support.microsoft.com
  43. 43. Improves security validation during replication database upgrades. support.microsoft.com
  44. 44. Improves conflict table name validation in transactional replication. support.microsoft.com
  45. 45. Improves parameter validation in the Replication Queue Reader Agent. support.microsoft.com
  46. 46. Improves conflict table name handling in merge replication. support.microsoft.com
  47. 47. Improves security validation for merge replication conflict reporting. support.microsoft.com
  48. 48. Improves object name validation for merge replication schema changes. support.microsoft.com
  49. 49. Improves table name handling in generated merge replication procedures. support.microsoft.com
  50. 50. Improves input validation when SQL Server processes merge replication changes. support.microsoft.com
  51. 51. Improves security when SQL Server processes schema changes in transactional replication. support.microsoft.com
  52. 52. Improves security checks for lightweight merge replication operations. support.microsoft.com
  53. 53. Improves security validation when SQL Server processes queued replication data. support.microsoft.com
  54. 54. Improves authorization validation for SQL Server Agent job steps. support.microsoft.com
  55. 55. Improves role validation during replication subscription checks. support.microsoft.com
  56. 56. Improves security for replication data and operations. support.microsoft.com
  57. 57. Improves configuration of operating system resource limits for native SQL Server installations on Linux, including mssql-conf startup, without changing container launch behavior. support.microsoft.com
  58. 58. Improves bounds validation when the Replication Queue Reader Agent processes queued update messages. support.microsoft.com
  59. 59. Improves input validation in the sys.sp_polybase_show_objects stored procedure. support.microsoft.com
  60. 60. Improves replication metadata validation to enhance security and reliability. support.microsoft.com
  61. 61. Improves security checks for replication linked-server access. support.microsoft.com
  62. 62. Improves input validation in Azure Synapse Link for SQL. support.microsoft.com
  63. 63. Improves parameter validation and data conversion handling in the Replication Queue Reader Agent. support.microsoft.com
  64. 64. Improves error-source validation in merge replication to address a security vulnerability. support.microsoft.com
  65. 65. Improves column-list input validation in sp_MStable_validation to handle a security vulnerability. support.microsoft.com
  66. 66. Adds support for certificate authentication of endpoints on systems where only Transport Layer Security (TLS) 1.3 is enabled. support.microsoft.com
  67. 67. Adds Transport Layer Security (TLS) support through Schannel for Service Broker endpoints. support.microsoft.com
  68. 68. Adds support for the SQL_Japanese_180_EBCDIC930_CS_AS_UTF8 collation. support.microsoft.com
  69. 69. Adds trace flag 683 to reduce CPU overhead when heap or B-tree (HoBt) latches are promoted to superlatches but counter partitioning does not occur. support.microsoft.com
  70. 70. Adds three stored procedures for databases in multi-database link mode with Azure SQL Managed Instance support.microsoft.com
  71. 71. 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, 71 quoted passages · compared with Microsoft's page on Nov 15, 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 5/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