CVE-2024-58060
Linux Kernel vulnerability analysis and mitigation

Overview

A Use-After-Free (UAF) vulnerability has been identified in the Linux kernel's bpfstructops functionality when CONFIGMODULES=n. The vulnerability, tracked as CVE-2024-58060, specifically affects the tcpcongestion_ops component that contains a 'struct module *owner' member. The issue was discovered and reported by Robert Morris, with the fix being implemented in early 2025 (Kernel Git).

Technical details

The vulnerability occurs when bpfstructops attempts to handle structops that contain a 'struct module *owner' member. The issue manifests when CONFIGMODULES=n, causing the btfid of the 'struct module' to be missing, resulting in the warning 'WARN: resolvebtfids: unresolved symbol module'. This prevents bpftrymodule_get() from performing correct refcounting, potentially leading to a Use-After-Free condition. The CVSS v3.1 score for this vulnerability is 7.8 HIGH (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

The vulnerability could potentially lead to a Use-After-Free condition in the Linux kernel when using bpfstructops with CONFIG_MODULES disabled. This could result in system instability, potential privilege escalation, or system crashes. The high CVSS score indicates significant potential impact on system confidentiality, integrity, and availability (CISA-ADP).

Mitigation and workarounds

A fix has been implemented that rejects structops registration if the structops has the 'struct module *' member and the 'struct module' btfid is missing. The patch includes moving the btftypeisfwd() helper to the btf.h header file for testing. The fix has been merged into the kernel codebase (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-gcp-5.4
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-6.8
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-extra
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management