Use-after-free in Linux kernel - CVE-2024-58060
Published: March 6, 2025 / Updated: May 11, 2025
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
Ubuntu
linux (Ubuntu package)
linux-aws (Ubuntu package)
linux-lowlatency (Ubuntu package)
How to mitigate CVE-2024-58060
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