Use-after-free in Linux kernel - CVE-2024-58060

 

Use-after-free in Linux kernel - CVE-2024-58060

Published: March 6, 2025 / Updated: May 11, 2025


Vulnerability identifier: #VU105393
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-58060
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a use-after-free error within the btf_type_is_void() function in kernel/bpf/btf.c, within the bpf_struct_ops_desc_release() and bpf_struct_ops_desc_init() functions in kernel/bpf/bpf_struct_ops.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
Ubuntu
linux (Ubuntu package)
linux-aws (Ubuntu package)
linux-lowlatency (Ubuntu package)

How to mitigate CVE-2024-58060

Install update from vendor's website.

Linux kernel - update to 6.12.13
linux (Ubuntu package) - addressed in versions 6.11.0-26.26, 6.11.0-26.26~24.04.1, 6.11.0-1010.10, 6.11.0-1013.13, 6.11.0-1015.15, 6.11.0-1015.15~24.04.1, 6.11.0-1022.22
linux-aws (Ubuntu package) - update to 6.11.0-1014.15
linux-lowlatency (Ubuntu package) - addressed in versions 6.11.0-1014.15, 6.11.0-1014.15~24.04.1, 6.11.0-1016.17

External References

Related Security Bulletins