CVE-2024-50002
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-50002 is a vulnerability in the Linux kernel's static call mechanism discovered in 2024. The issue affects the staticcalldel_module() function when handling module initialization failures. The vulnerability impacts Linux kernel versions from 5.10 up to (excluding) 6.11.3 (NVD).

Technical details

The vulnerability occurs in the static call mechanism when a module initialization fails. The staticcalldelmodule() function incorrectly assumes that key::mods points to a valid struct staticcallmod without proper validation. The issue stems from key::mods being part of a union structure where bit 0 differentiates between mods (bit clear) and sites (bit set) pointers. When memory allocation fails during _staticcallinit(), the function may attempt to dereference an invalid pointer, leading to a General Protection (#GP) fault (Kernel Patch). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 MEDIUM (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

The vulnerability can lead to a system crash (denial of service) when a module initialization fails and the staticcalldel_module() function is invoked to clean up. This occurs due to improper handling of memory allocation failures, resulting in a General Protection fault (Kernel Patch).

Mitigation and workarounds

The issue has been fixed in the Linux kernel through a patch that adds proper validation of the pointer type before dereferencing. The fix checks whether the key has a sites or mods pointer using staticcallkeyhasmods() before proceeding with the operation (Kernel Patch). Users should update their Linux kernel to versions that include this fix.

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-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoYesDec 09, 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