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 python-perfUpgrade perfUpgrade kernel-toolsUpgrade bpftoolUpgrade kernel-develUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade python-perf-debuginfoUpgrade kernel-debuginfoUpgrade kernel-tools-develUpgrade perf-debuginfoUpgrade kernel-livepatch-5.15.168-114.166Upgrade kernel-debuginfo-common-x86_64Upgrade kernelUpgrade kernel-tools-debuginfoUpgrade kernel-headers | Mar 14, 2025 | Oct 21, 2024 |
| Amazon_linux_2023 | — | Upgrade kernel-debuginfo-common-aarch64Upgrade bpftool-debuginfoUpgrade kernel-toolsUpgrade kernel-libbpfUpgrade kernel-headersUpgrade kernel-modules-extraUpgrade kernel-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernel-livepatch-6.1.115-126.197Upgrade perf-debuginfoUpgrade kernel-develUpgrade perfUpgrade kernel-libbpf-develUpgrade kernel-tools-develUpgrade kernel-modules-extra-commonUpgrade kernelUpgrade python3-perf-debuginfoUpgrade python3-perfUpgrade kernel-libbpf-staticUpgrade kernel-debuginfo-common-x86_64Upgrade bpftool | 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 kernelUpgrade bpftoolUpgrade kernel-tools-libs | Feb 11, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade kernel-tools-libsUpgrade bpftoolUpgrade python3-perfUpgrade kernel-toolsUpgrade kernelUpgrade 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-6.8.0-1025-azureUpgrade linux-image-5.15.0-127-generic-64kUpgrade linux-image-kvmUpgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-5.15.0-127-genericUpgrade linux-image-gcpUpgrade linux-image-6.8.0-1024-oemUpgrade linux-image-xilinx-zynqmpUpgrade linux-image-5.15.0-127-lowlatencyUpgrade linux-image-gkeop-5.15Upgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-realtimeUpgrade linux-image-6.8.0-1019-gkeUpgrade linux-image-6.8.0-54-lowlatencyUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-oem-24.04bUpgrade linux-image-6.8.0-1022-ibmUpgrade linux-image-6.8.0-57-genericUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-generic-hwe-20.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-5.15.0-1070-kvmUpgrade linux-image-oem-24.04Upgrade linux-image-5.15.0-1056-gkeopUpgrade linux-image-6.11.0-1010-lowlatency-64kUpgrade linux-image-aws-lts-24.04Upgrade linux-image-6.11.0-1009-gcpUpgrade linux-image-6.8.0-57-generic-64kUpgrade linux-image-oem-20.04Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-5.15.0-1066-ibmUpgrade linux-image-raspi-nolpaeUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-azure-cvmUpgrade linux-image-intel-iotgUpgrade linux-image-6.8.0-1020-oracle-64kUpgrade linux-image-awsUpgrade linux-image-5.15.0-1072-gcpUpgrade linux-image-6.8.0-1020-oracleUpgrade linux-image-oracle-lts-22.04Upgrade linux-image-nvidia-6.8Upgrade linux-image-6.11.0-18-generic-64kUpgrade linux-image-oem-22.04dUpgrade linux-image-6.8.0-1022-nvidia-lowlatencyUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-oem-24.04aUpgrade linux-image-6.8.0-1022-nvidia-64kUpgrade linux-image-virtualUpgrade linux-image-oracleUpgrade linux-image-gkeUpgrade linux-image-6.8.0-54-genericUpgrade linux-image-gcp-lts-22.04Upgrade linux-image-lowlatency-64k-hwe-20.04Upgrade linux-image-gkeop-6.8Upgrade linux-image-virtual-hwe-20.04Upgrade linux-image-6.11.0-1011-oracleUpgrade linux-image-5.15.0-127-lowlatency-64kUpgrade linux-image-6.8.0-1006-gkeopUpgrade linux-image-5.15.0-1068-nvidia-lowlatencyUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-generic-lpaeUpgrade linux-image-6.11.0-1009-awsUpgrade linux-image-6.8.0-1014-azure-nvidiaUpgrade linux-image-5.15.0-1071-intel-iotgUpgrade linux-image-5.15.0-1078-azureUpgrade linux-image-6.11.0-1015-oemUpgrade linux-image-5.15.0-1071-oracleUpgrade linux-image-5.15.0-127-generic-lpaeUpgrade linux-image-5.15.0-1039-xilinx-zynqmpUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-oracle-lts-24.04Upgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-genericUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-azure-lts-24.04Upgrade linux-image-5.15.0-1066-raspiUpgrade linux-image-gkeopUpgrade linux-image-gke-5.15Upgrade linux-image-generic-64kUpgrade linux-image-nvidiaUpgrade linux-image-oem-22.04Upgrade linux-image-6.8.0-54-generic-64kUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-5.15.0-1073-awsUpgrade linux-image-6.11.0-1010-lowlatencyUpgrade linux-image-lowlatencyUpgrade linux-image-intelUpgrade linux-image-ibmUpgrade linux-image-nvidia-64kUpgrade linux-image-6.8.0-1024-gcp-64kUpgrade linux-image-6.11.0-1005-realtimeUpgrade linux-image-ibm-classicUpgrade linux-image-azure-fdeUpgrade linux-image-oracle-64kUpgrade linux-image-6.8.0-1022-nvidiaUpgrade linux-image-oem-20.04cUpgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-gcp-64kUpgrade linux-image-oem-20.04bUpgrade linux-image-lowlatency-64kUpgrade linux-image-azureUpgrade linux-image-6.11.0-1009-azureUpgrade linux-image-oem-22.04cUpgrade linux-image-azure-nvidiaUpgrade linux-image-6.8.0-1024-gcpUpgrade linux-image-5.15.0-1070-gkeUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-6.8.0-1022-nvidia-lowlatency-64kUpgrade linux-image-raspiUpgrade linux-image-aws-lts-22.04Upgrade linux-image-6.11.0-18-genericUpgrade linux-image-5.15.0-1068-nvidiaUpgrade linux-image-oem-20.04dUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-oem-22.04aUpgrade linux-image-6.8.0-1019-raspiUpgrade linux-image-6.11.0-1011-oracle-64kUpgrade linux-image-azure-lts-22.04Upgrade linux-image-6.11.0-1008-raspiUpgrade linux-image-oem-22.04bUpgrade linux-image-6.8.0-1023-awsUpgrade linux-image-generic-64k-hwe-20.04Upgrade linux-image-6.8.0-54-lowlatency-64kUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-realtime-hwe-24.04Upgrade linux-image-6.8.0-1025-azure-fdeUpgrade linux-image-6.11.0-1009-azure-fde | 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