Use-after-free in .NET and Visual Studio - CVE-2024-35264

 

Use-after-free in .NET and Visual Studio - CVE-2024-35264

Published: July 10, 2024


Vulnerability identifier: #VU94041
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-35264
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in .NET and Visual Studio. A remote attacker can win a race condition and execute arbitrary code on the target system.


Affected software

.NET
Visual Studio
Oracle Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
Red Hat OpenShift Dev Spaces
dotnet-runtime-6.0 (Ubuntu package)
aspnetcore-runtime-6.0 (Ubuntu package)
dotnet-host (Ubuntu package)
dotnet-hostfxr-6.0 (Ubuntu package)
dotnet-sdk-6.0 (Ubuntu package)
dotnet6 (Ubuntu package)
dotnet-host-8.0 (Ubuntu package)
dotnet-hostfxr-8.0 (Ubuntu package)
dotnet-runtime-8.0 (Ubuntu package)
aspnetcore-runtime-8.0 (Ubuntu package)
dotnet-sdk-8.0 (Ubuntu package)
dotnet8.0 (Red Hat package)
dotnet8 (Ubuntu package)

How to mitigate CVE-2024-35264

Install updates from vendor's website.

Red Hat OpenShift Dev Spaces - update to 3.15.0
dotnet-runtime-6.0 (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
aspnetcore-runtime-6.0 (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
dotnet-host (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
dotnet-hostfxr-6.0 (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
dotnet-sdk-6.0 (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
dotnet6 (Ubuntu package) - addressed in versions 6.0.132-0ubuntu1~22.04.1, 6.0.132-0ubuntu1~23.10.1
dotnet-host-8.0 (Ubuntu package) - addressed in versions 8.0.7-0ubuntu1~22.04.1, 8.0.7-0ubuntu1~23.10.1, 8.0.7-0ubuntu1~24.04.1
dotnet-hostfxr-8.0 (Ubuntu package) - addressed in versions 8.0.7-0ubuntu1~22.04.1, 8.0.7-0ubuntu1~23.10.1, 8.0.7-0ubuntu1~24.04.1
dotnet-runtime-8.0 (Ubuntu package) - addressed in versions 8.0.7-0ubuntu1~22.04.1, 8.0.7-0ubuntu1~23.10.1, 8.0.7-0ubuntu1~24.04.1
aspnetcore-runtime-8.0 (Ubuntu package) - addressed in versions 8.0.7-0ubuntu1~22.04.1, 8.0.7-0ubuntu1~23.10.1, 8.0.7-0ubuntu1~24.04.1
dotnet-sdk-8.0 (Ubuntu package) - addressed in versions 8.0.107-0ubuntu1~22.04.1, 8.0.107-0ubuntu1~23.10.1, 8.0.107-0ubuntu1~24.04.1
dotnet8.0 (Red Hat package) - addressed in versions 8.0.107-1.el8_10, 8.0.107-1.el9_4
dotnet8 (Ubuntu package) - addressed in versions 8.0.107-8.0.7-0ubuntu1~22.04.1, 8.0.107-8.0.7-0ubuntu1~23.10.1, 8.0.107-8.0.7-0ubuntu1~24.04.1

External References

Related Security Bulletins