Skip to the content
The Update Bureau
SQL Server 2022 CU20 SQL Server 2022 CU20 Cumulative update

KB5059390

KB5059390: Cumulative update for SQL Server 2022, CU branch, July 2025. Analysis Services startup hangs and query errors fixed

In short

Includes 11 fixes for SQL Server 2022, including an Analysis Services startup hang and several query errors. A known issue with SESSION_CONTEXT in parallel query plans remains open.

Does it affect you? Applies to: Instances running SQL Server 2022. The package updates only the SQL Server components that are installed on the instance.

Build
16.0.4205.1
Servicing branch
CU
Restart
Required
Review notes Additional details from the official release notes (1) Read note
  • What changes A previous Windows update introduced an issue that could cause restarts or prevent setup from continuing. This fix deletes the PendingFileRenameOperations registry value when applying SQL Server updates.

The official sources are linked at the end of the page.

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 9 changes

Analysis Services

For: Windows devices running Analysis Services in multidimensional mode

  • Analysis Services is less likely to stop responding during startup in a rare case involving proactive caching notifications in multidimensional mode.1
    Fixes an infrequent race condition in proactive caching register notification in multidimensional mode.

Backup Restore

For: SQL Server instances backing up to S3-compatible object storage

  • A failed backup to S3-compatible object storage no longer triggers an assertion failure after 20 retries.2
    Fixes the assertion failure at blobaccess.cpp:9441 when a backup to S3-compatible object storage fails and is retried 20 times.

Linux

For: SQL Server on Linux

  • Under low vCPU conditions, SQL Server no longer stops responding because of a deadlock when control.alternatewritethrough is set to 1.3
    Fixes a deadlock that results in a non-yielding scheduler under low vCPU conditions.

High Availability and Disaster Recovery

For: SQL Server instances with a large Query Store background-task list

  • Fixes a non-yielding scheduler dump issue that may occur when Query Store has many background tasks and is disabled or SQL Server shuts down.4
    Also addresses errors 1222 and 12412, including an internal table access error with HRESULT 0x80004005.

Programmability

2 items
  • In rare cases, REPLACE no longer returns uninitialized memory when used with limited-length parameters.5
  • PARSE and TRY_PARSE return the correct error message instead of causing an access violation dump for special floating-point inputs such as NaN or Infinity.6

Query Execution

For: SQL Server users of variable-length parameters

  • In rare cases, SQL Server no longer reads uninitialized memory when using variable-length parameters.7

Query Optimizer

For: SQL Server users of multi-statement table-valued functions with CLR expressions

  • Queries that call a multi-statement table-valued function with a CLR expression in its parameter no longer trigger an access violation when interleaved execution occurs.8
    Fixes an access violation involving an MSTVF with a common language runtime (CLR) expression in its parameter.

Patching

For: Windows devices updating SQL Server

  • SQL Server updates no longer retain the PendingFileRenameOperations registry value, which a previous Windows update could leave behind and cause restarts or prevent setup from continuing.9
    Deletes the PendingFileRenameOperations registry value when applying SQL Server updates.

Improvements 2 changes

Linux

  • SQL Server on Linux can now use memory limits set through Control Groups (cgroups) version 2.10
    Adds cgroups v2 memory limit support in the Platform Abstraction Layer (SQLPAL).

SQL Server Engine

For: SQL Server 2022 users who enable trace flag 11953

  • SQL Server 2022 adds support for a CREATE USER syntax option that uses a SID and type, enabled by trace flag 11953.11
    Adds support for WITH SID=sid, TYPE=[E|X] in CREATE USER syntax by using trace flag 11953.

Known issues

  1. Open Affects: Everyone

    Incorrect behavior of SESSION_CONTEXT in parallel plans

    Queries that use SESSION_CONTEXT might return incorrect results or trigger access violation dump files when run in parallel query plans. This can happen particularly when a session is reset for reuse.12

    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
2025-07-10
Classification
Updates
Type
Cumulative update
Servicing branch
CU
Restart
Required
Replaces
KB5054531, KB5050771, KB5048038, KB5048033
+5 earlier KB5041321, KB5038325, KB5036432, KB5033663, KB5032679
Replaced by
KB5063814
VersionBuildChannel
2022 16.0.4205.1 General availability

Security

No vulnerabilities are listed for this update.

Downloads (Microsoft Update Catalog)

Sources

Updated
Cited passages from Microsoft's official notes (12)
  1. 1. Fixes an infrequent race condition in which proactive caching register notification in multidimensional mode might cause a SQL Server Analysis Services (SSAS) server to stop responding during startup. support.microsoft.com
  2. 2. Fixes an assertion failure (Location:"sql\ntdbms\storeng\dfs\manager\blobaccess.cpp":9441; Expression:filepos > protocolHandler->m_maxFilePosSoFar) that you encounter when backing up to S3-compatible object storage fails and then having 20 retries. support.microsoft.com
  3. 3. Fixes a deadlock issue that results in a non-yielding scheduler and causes the SQL Server instance to stop responding when control.alternatewritethrough is set to 1 under low vCPU conditions. support.microsoft.com
  4. 4. Fixes a non-yielding scheduler dump issue with qds!CDBQDS::AbortQdsBackgroundTask that may occur when the list of Query Store (QDS) background tasks is large and either QDS is disabled or SQL Server shuts down. support.microsoft.com
  5. 5. Fixes an issue in which uninitialized memory is returned in some rare cases when using limited length parameters with REPLACE function. support.microsoft.com
  6. 6. Fixes an issue in which an access violation dump occurs instead of returning the correct error message when using PARSE or TRY_PARSE with special floating-point values such as NaN (Not-a-Number) or Infinity as input. support.microsoft.com
  7. 7. Fixes an issue in which uninitialized memory can be read in some rare cases when using variable length parameters. support.microsoft.com
  8. 8. Fixes an access violation that you encounter when a query calls a multi-statement table-valued function (MSTVF) that has a common language runtime (CLR) expression in its parameter and triggers interleaved execution. support.microsoft.com
  9. 9. After applying this fix, the value of the PendingFileRenameOperations registry key is deleted when applying updates to SQL Server. support.microsoft.com
  10. 10. Adds memory limit support for Control Groups (cgroups) v2 in Platform Abstraction Layer (SQLPAL). support.microsoft.com
  11. 11. Adds support for "WITH SID=sid, TYPE=[E|X]" in the CREATE USER syntax in SQL Server 2022 by using trace flag 11953. support.microsoft.com
  12. 12. 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, 12 quoted passages · compared with Microsoft's page on Oct 20, 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 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