In the Linux kernel, the following vulnerability has been resolved:
static_call: Handle module init failure correctly in static_call_del_module()
Module insertion invokes static_call_add_module() to initialize the static calls in a module. static_call_add_module() invokes __static_call_init(), which allocates a struct static_call_mod to either encapsulate the built-in static call sites of the associated key into it so further modules can be added or to append the module to the module chain.
If that allocation fails the function returns with an error code and the module core invokes static_call_del_module() to clean up eventually added static_call_mod entries.
This works correctly, when all keys used by the module were converted over to a module chain before the failure. If not then static_call_del_module() causes a #GP as it blindly assumes that key::mods points to a valid struct static_call_mod.
The problem is that key::mods is not a individual struct member of struct static_call_key, it's part of a union to save space:
union { /* bit 0: 0 = mods, 1 = sites */ unsigned long type; struct static_call_mod *mods; struct static_call_site *sites; };
key::sites is a pointer to the list of built-in usage sites of the static call. The type of the pointer is differentiated by bit 0. A mods pointer has the bit clear, the sites pointer has the bit set.
As static_call_del_module() blidly assumes that the pointer is a valid static_call_mod type, it fails to check for this failure case and dereferences the pointer to the list of built-in call sites, which is obviously bogus.
Cure it by checking whether the key has a sites or a mods pointer.
If it's a sites pointer then the key is not to be touched. As the sites are walked in the same order as in __static_call_init() the site walk can be terminated because all subsequent sites have not been touched by the init code due to the error exit.
If it was converted before the allocation fail, then the inner loop which searches for a module match will find nothing.
A fail in the second allocation in __static_call_init() is harmless and does not require special treatment. The first allocation succeeded and converted the key to a module chain. That first entry has mod::mod == NULL and mod::next == NULL, so the inner loop of static_call_del_module() will neither find a module match nor a module chain. The next site in the walk was either already converted, but can't match the module, or it will exit the outer loop because it has a static_call_site pointer and not a static_call_mod pointer.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-tools-develUpgrade kernel-livepatch-5.15.168-114.166Upgrade kernelUpgrade kernel-tools-debuginfoUpgrade kernel-debuginfoUpgrade kernel-headersUpgrade perf-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade bpftool-debuginfoUpgrade python-perfUpgrade bpftoolUpgrade perfUpgrade kernel-toolsUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-devel | Mar 14, 2025 | Oct 21, 2024 |
| Amazon_linux_2023 | — | Upgrade kernel-livepatch-6.1.115-126.197Upgrade perf-debuginfoUpgrade kernel-modules-extraUpgrade kernel-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-headersUpgrade perfUpgrade kernel-develUpgrade kernel-toolsUpgrade kernel-tools-debuginfoUpgrade kernel-libbpfUpgrade kernel-libbpf-staticUpgrade kernelUpgrade python3-perfUpgrade kernel-debuginfo-common-x86_64Upgrade bpftoolUpgrade python3-perf-debuginfoUpgrade kernel-libbpf-develUpgrade kernel-modules-extra-commonUpgrade kernel-tools-devel | Mar 27, 2025 | Oct 21, 2024 |
| Debian | — | Upgrade linux-6.1Upgrade linux | Nov 11, 2024 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp11 | — | Upgrade python3-perfUpgrade kernel-abi-stablelistsUpgrade kernel-toolsUpgrade bpftoolUpgrade kernelUpgrade kernel-tools-libs | Feb 11, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade kernel-tools-libsUpgrade bpftoolUpgrade kernelUpgrade kernel-toolsUpgrade python3-perfUpgrade kernel-abi-stablelists | Feb 11, 2025 | Oct 21, 2024 |
| Redhat_linux | — | Upgrade kernel-rtNo solution existsUpgrade kernel | May 15, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-image-oem-20.04Upgrade linux-image-6.8.0-1022-nvidia-64kUpgrade linux-image-6.8.0-1025-azureUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-gkeUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-oem-24.04aUpgrade linux-image-oracleUpgrade linux-image-oem-24.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-5.15.0-127-lowlatencyUpgrade linux-image-5.15.0-1056-gkeopUpgrade linux-image-6.8.0-1022-ibmUpgrade linux-image-5.15.0-127-genericUpgrade linux-image-6.8.0-57-generic-64kUpgrade linux-image-generic-hwe-20.04Upgrade linux-image-oracle-lts-22.04Upgrade linux-image-oem-24.04bUpgrade linux-image-6.11.0-1010-lowlatency-64kUpgrade linux-image-aws-lts-24.04Upgrade linux-image-6.11.0-18-generic-64kUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-virtualUpgrade linux-image-6.8.0-1024-oemUpgrade linux-image-gcpUpgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-6.8.0-1020-oracleUpgrade linux-image-kvmUpgrade linux-image-6.8.0-1020-oracle-64kUpgrade linux-image-xilinx-zynqmpUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-intel-iotgUpgrade linux-image-5.15.0-1066-ibmUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-oem-22.04dUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-5.15.0-127-generic-64kUpgrade linux-image-awsUpgrade linux-image-nvidia-6.8Upgrade linux-image-raspi-nolpaeUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-6.8.0-1022-nvidia-lowlatencyUpgrade linux-image-azure-cvmUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-6.8.0-57-genericUpgrade linux-image-5.15.0-1072-gcpUpgrade linux-image-6.11.0-1009-gcpUpgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-realtimeUpgrade linux-image-6.8.0-54-lowlatencyUpgrade linux-image-gkeop-5.15Upgrade linux-image-5.15.0-1070-kvmUpgrade linux-image-6.8.0-1019-gkeUpgrade linux-image-ibm-classicUpgrade linux-image-oem-22.04aUpgrade linux-image-lowlatency-64k-hwe-20.04Upgrade linux-image-azure-lts-24.04Upgrade linux-image-raspiUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-6.8.0-1025-azure-fdeUpgrade linux-image-5.15.0-1073-awsUpgrade linux-image-6.8.0-1023-awsUpgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-6.8.0-54-genericUpgrade linux-image-oracle-64kUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-6.11.0-1010-lowlatencyUpgrade linux-image-aws-lts-22.04Upgrade linux-image-6.8.0-1022-nvidia-lowlatency-64kUpgrade linux-image-azureUpgrade linux-image-oem-20.04bUpgrade linux-image-6.8.0-1006-gkeopUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-6.8.0-1024-gcpUpgrade linux-image-lowlatency-64kUpgrade linux-image-6.11.0-1005-realtimeUpgrade linux-image-5.15.0-1070-gkeUpgrade linux-image-5.15.0-1078-azureUpgrade linux-image-gcp-64kUpgrade linux-image-5.15.0-1068-nvidiaUpgrade linux-image-6.8.0-1022-nvidiaUpgrade linux-image-5.15.0-127-lowlatency-64kUpgrade linux-image-6.11.0-1011-oracleUpgrade linux-image-6.11.0-1009-awsUpgrade linux-image-oem-20.04cUpgrade linux-image-oem-22.04cUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-azure-nvidiaUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-5.15.0-1071-intel-iotgUpgrade linux-image-genericUpgrade linux-image-5.15.0-1039-xilinx-zynqmpUpgrade linux-image-6.11.0-18-genericUpgrade linux-image-6.11.0-1009-azureUpgrade linux-image-5.15.0-1071-oracleUpgrade linux-image-5.15.0-127-generic-lpaeUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-6.11.0-1015-oemUpgrade linux-image-6.8.0-54-lowlatency-64kUpgrade linux-image-generic-lpaeUpgrade linux-image-nvidiaUpgrade linux-image-generic-64kUpgrade linux-image-oem-22.04Upgrade linux-image-5.15.0-1066-raspiUpgrade linux-image-6.8.0-1014-azure-nvidiaUpgrade linux-image-gkeopUpgrade linux-image-gke-5.15Upgrade linux-image-gkeop-6.8Upgrade linux-image-5.15.0-1068-nvidia-lowlatencyUpgrade linux-image-oem-20.04dUpgrade linux-image-intelUpgrade linux-image-6.8.0-1024-gcp-64kUpgrade linux-image-gcp-lts-22.04Upgrade linux-image-ibmUpgrade linux-image-nvidia-64kUpgrade linux-image-azure-lts-22.04Upgrade linux-image-6.8.0-1019-raspiUpgrade linux-image-generic-64k-hwe-20.04Upgrade linux-image-6.11.0-1008-raspiUpgrade linux-image-6.11.0-1011-oracle-64kUpgrade linux-image-oem-22.04bUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-6.8.0-54-generic-64kUpgrade linux-image-lowlatencyUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-6.11.0-1009-azure-fdeUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-azure-fdeUpgrade linux-image-virtual-hwe-20.04 | Dec 18, 2024 | Oct 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Oct 21, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub