PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-58060: 
Linux Kernel vulnerability analysis and mitigation

Overview

A Use-After-Free (UAF) vulnerability has been identified in the Linux kernel's bpf_struct_ops functionality when CONFIG_MODULES=n. The vulnerability, tracked as CVE-2024-58060, specifically affects the tcp_congestion_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 bpf_struct_ops attempts to handle struct_ops that contain a 'struct module *owner' member. The issue manifests when CONFIG_MODULES=n, causing the btf_id of the 'struct module' to be missing, resulting in the warning 'WARN: resolve_btfids: unresolved symbol module'. This prevents bpf_try_module_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 bpf_struct_ops 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).

Exploitability

The vulnerability requires local access and low privileges to exploit. It specifically affects systems where CONFIG_MODULES=n is set, which is noted as not being a common configuration. The vulnerability has been present since the beginning of bpf_struct_ops implementation (Kernel Git).

Mitigation and workarounds

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

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.12.13-1

Fixed

trixie

linux: 6.12.13-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • python3-perf
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-partner
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules-core
NoYesOct 18, 2026
CVE-2023-7356NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesOct 21, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-devel
NoYesOct 18, 2026

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