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