KB5059390: Fixed Adds memory limit support for Control Groups
SQL Server 2022 Cumulative Update (CU) builds
KB5059390 - Cumulative Update 20 for SQL Server 2022
Release Date: July 10, 2025
Version: 16.0.4205.1
Summary
This article describes Cumulative Update package 20 (CU20) for Microsoft SQL Server 2022. This update contains 10 fixes that were issued after the release of SQL Server 2022 Cumulative Update 19 and it updates components in the following builds:
- SQL Server - Product version: 16.0.4205.1, file version: 2022.160.4205.1
- Analysis Services - Product version: 16.0.43.247, file version: 2022.160.43.247
Known issues in this update
Incorrect behavior of SESSION_CONTEXT in parallel plans
Queries that use the built-in SESSION_CONTEXT function might return incorrect results or trigger access violation (AV) dumps when executed in parallel query plans. This issue stems from the way SESSION_CONTEXT interacts with parallel execution threads, particularly when the session is reset for reuse.
Improvements and fixes included in this update
A downloadable Excel workbook that contains a summary list of builds, together with their current support lifecycle, is available. The Excel file also contains detailed fix lists for SQL Server 2022, SQL Server 2019, and SQL Server 2017
Bug Fixes:
Bug reference: 4295018
Description: 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.
Fix area: Analysis Services
Component: Analysis Services
Platform: Windows
Bug reference: 4100859
Description: 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.
Fix area: SQL Server Engine
Component: Backup Restore
Platform: All
Bug reference: 4123934
Description: 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.
Fix area: SQL Server Engine
Component: Linux
Platform: Linux
Bug reference: 4297001
Description: Adds memory limit support for Control Groups (cgroups) v2 in Platform Abstraction Layer (SQLPAL).
Fix area: SQL Server Engine
Component: Linux
Platform: Linux
Bug reference: 4257781
Description: Fixes an issue in which uninitialized memory is returned in some rare cases when using limited length parameters with REPLACE function.
Fix area: SQL Server Engine
Component: Programmability
Platform: All
Bug reference: 4277598
Description: 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.
Fix area: SQL Server Engine
Component: Programmability
Platform: All
Bug reference: 4053244
Description: Fixes an issue in which uninitialized memory can be read in some rare cases when using variable length parameters.
Fix area: SQL Server Engine
Component: Query Execution
Platform: All
Bug reference: 4104525
Description: 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.
Fix area: SQL Server Engine
Component: Query Optimizer
Platform: All
Bug reference: 4317961
Description: Adds support for "WITH SID=sid, TYPE=[E|X]" in the CREATE USER syntax in SQL Server 2022 by using trace flag 11953. For more information, see CREATE USER (Transact-SQL).
Fix area: SQL Server Engine
Component: SQL Server Engine
Platform: All
Bug reference: 4044263
Description: Fixes an issue introduced by a previous Windows update that causes restarts and even prevents setup from continuing. After applying this fix, the value of the PendingFileRenameOperations registry key is deleted when applying updates to SQL Server.
Fix area: SQL Setup
Component: Patching
Platform: Windo