Integer overflow in Microsoft products - CVE-2025-21172
Published: January 15, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to integer overflow in .NET and Visual Studio. A remote attacker can trick a victim to open a specially crafted file, trigger integer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
.NET for Linux
.NET for macOS
Visual Studio
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
Fedora
aspnetcore-runtime-8.0 (Ubuntu package)
dotnet-runtime-8.0 (Ubuntu package)
dotnet-host-8.0 (Ubuntu package)
dotnet-hostfxr-8.0 (Ubuntu package)
dotnet-sdk-8.0 (Ubuntu package)
dotnet8.0 (Red Hat package)
dotnet8.0
dotnet8 (Ubuntu package)
dotnet-runtime-9.0 (Ubuntu package)
dotnet-hostfxr-9.0 (Ubuntu package)
dotnet-host-9.0 (Ubuntu package)
aspnetcore-runtime-9.0 (Ubuntu package)
dotnet-sdk-9.0 (Ubuntu package)
dotnet9.0 (Red Hat package)
dotnet9.0
dotnet9 (Ubuntu package)
How to mitigate CVE-2025-21172
.NET for Linux - addressed in versions 8.0.12 8.0.12, 9.0.1 9.0.1
.NET for macOS - addressed in versions 8.0.12 8.0.12, 9.0.1 9.0.1
Visual Studio - addressed in versions 14.0.24252.2 14.0.24252.2, 15.9.69 15.9.69, 16.11.43 16.11.35706.149, 17.6.22 17.6.35707.66, 17.8.17 17.8.35707.121, 17.10.10 17.10.35707.196, 17.12.4 17.12.35707.178
aspnetcore-runtime-8.0 (Ubuntu package) - addressed in versions 8.0.12-0ubuntu1~22.04.1, 8.0.12-0ubuntu1~24.04.1, 8.0.12-0ubuntu1~24.10.1
dotnet-runtime-8.0 (Ubuntu package) - addressed in versions 8.0.12-0ubuntu1~22.04.1, 8.0.12-0ubuntu1~24.04.1, 8.0.12-0ubuntu1~24.10.1
dotnet-host-8.0 (Ubuntu package) - addressed in versions 8.0.12-0ubuntu1~22.04.1, 8.0.12-0ubuntu1~24.04.1, 8.0.12-0ubuntu1~24.10.1
dotnet-hostfxr-8.0 (Ubuntu package) - addressed in versions 8.0.12-0ubuntu1~22.04.1, 8.0.12-0ubuntu1~24.04.1, 8.0.12-0ubuntu1~24.10.1
dotnet-sdk-8.0 (Ubuntu package) - addressed in versions 8.0.112-0ubuntu1~22.04.1, 8.0.112-0ubuntu1~24.04.1, 8.0.112-0ubuntu1~24.10.1
dotnet8.0 (Red Hat package) - addressed in versions 8.0.112-1.el8_10, 8.0.112-1.el9_4
dotnet8.0 - addressed in versions 8.0.112-1.fc40, 8.0.112-1.fc41
dotnet8 (Ubuntu package) - addressed in versions 8.0.112-8.0.12-0ubuntu1~22.04.1, 8.0.112-8.0.12-0ubuntu1~24.04.1, 8.0.112-8.0.12-0ubuntu1~24.10.1
dotnet-runtime-9.0 (Ubuntu package) - update to 9.0.1-0ubuntu1~24.10.1
dotnet-hostfxr-9.0 (Ubuntu package) - update to 9.0.1-0ubuntu1~24.10.1
dotnet-host-9.0 (Ubuntu package) - update to 9.0.1-0ubuntu1~24.10.1
aspnetcore-runtime-9.0 (Ubuntu package) - update to 9.0.1-0ubuntu1~24.10.1
dotnet-sdk-9.0 (Ubuntu package) - update to 9.0.102-0ubuntu1~24.10.1
dotnet9.0 (Red Hat package) - update to 9.0.102-1.el8_10
dotnet9.0 - addressed in versions 9.0.102-1.fc40, 9.0.102-1.fc41
dotnet9 (Ubuntu package) - update to 9.0.102-9.0.1-0ubuntu1~24.10.1
External References
Related Security Bulletins
- Integer overflow in Microsoft .NET and Visual Studio
- Ubuntu update for dotnet8
- Red Hat Enterprise Linux 8 update for .NET 8.0
- Red Hat Enterprise Linux 8 update for .NET 9.0
- Fedora 41 update for dotnet8.0
- Fedora 40 update for dotnet8.0
- Fedora 41 update for dotnet9.0
- Fedora 40 update for dotnet9.0
- Red Hat Enterprise Linux 9 update for .NET 8.0