In the Linux kernel, the following vulnerability has been resolved:
bpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized
When CONFIG_BPF_LSM=y is set, BPF inode storage maps (BPF_MAP_TYPE_INODE_STORAGE) are compiled into the kernel. However, if the BPF LSM is not explicitly enabled at boot time (e.g. omitted from the "lsm=" boot parameter), lsm_prepare() is never executed for the BPF LSM.
Consequently, the BPF inode security blob offset (bpf_lsm_blob_sizes.lbs_inode) is never initialized and remains at its default compiled size of 8 bytes instead of being updated to a valid offset past the reserved struct rcu_head (typically 16 bytes or more).
When a privileged user creates and updates a BPF_MAP_TYPE_INODE_STORAGE map, bpf_inode() evaluates inode->i_security + 8. This erroneously aliases the struct rcu_head.func callback pointer at the beginning of the inode->i_security blob. During subsequent map element cleanup or inode destruction, writing NULL to owner_storage clears the queued RCU callback pointer. When rcu_do_batch() later executes the queued callback, it attempts an instruction fetch at address 0x0, triggering an immediate kernel panic.
Fix this by introducing a global bpf_lsm_initialized boolean flag marked with __ro_after_init. Set this flag to true inside bpf_lsm_init() when the LSM framework successfully registers the BPF LSM. Gate map allocation in inode_storage_map_alloc() on this flag, returning -EOPNOTSUPP if the BPF LSM is in turn uninitialized.
This fail-fast approach prevents userspace from allocating inode storage maps when the supporting BPF LSM infrastructure is absent, avoiding zombie map states.
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_2023 | — | Upgrade kernel6.12-develUpgrade python3-perf6.12Upgrade perf6.12-debuginfoUpgrade python3-perf6.12-debuginfoUpgrade kernel6.12-toolsUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel6.12Upgrade kernel6.12-tools-develUpgrade kernel6.12-debuginfo-common-aarch64Upgrade kernel-livepatch-6.12.100-125.179Upgrade perf6.12Upgrade bpftool6.12Upgrade kernel6.12-tools-debuginfoUpgrade kernel6.12-modules-extraUpgrade kernel6.12-debuginfoUpgrade bpftool6.12-debuginfoUpgrade kernel6.12-modules-extra-commonUpgrade kernel6.12-headers | Aug 18, 2026 | Jul 20, 2026 |
| Debian | — | Upgrade linux-6.12Upgrade linux | Aug 2, 2026 | Aug 2, 2026 |
| Redhat_linux | — | No solution exists | Jul 22, 2026 | Jul 20, 2026 |
| Ubuntu | — | Upgrade linux-image-7.0.0-1018-nvidia-64kUpgrade linux-image-generic-64k-7.0Upgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-1006-gke-64kUpgrade linux-image-virtualUpgrade linux-image-oracle-64kUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-raspi-realtimeUpgrade linux-image-oracleUpgrade linux-image-aws-64kUpgrade linux-image-raspi-7.0Upgrade linux-image-oem-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-generic-64kUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-7.0.0-1014-azureUpgrade linux-image-nvidia-64kUpgrade linux-image-realtime-7.0Upgrade linux-image-gkeUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-virtual-7.0Upgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-7.0.0-1019-raspiUpgrade linux-image-gcp-7.0Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gcpUpgrade linux-image-7.0.0-2018-nvidia-bosUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-1013-oemUpgrade linux-image-7.0.0-31-generic-64kUpgrade linux-image-genericUpgrade linux-image-aws-64k-7.0Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-ibmUpgrade linux-image-7.0.0-1018-nvidiaUpgrade linux-image-nvidia-bosUpgrade linux-image-azure-7.0Upgrade linux-image-azure-lts-26.04Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-7.0.0-31-realtime-64kUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-awsUpgrade linux-image-nvidiaUpgrade linux-image-7.0.0-1006-gkeUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-7.0Upgrade linux-image-gke-64kUpgrade linux-image-gcp-64kUpgrade linux-image-raspiUpgrade linux-image-oem-26.04bUpgrade linux-image-7.0.0-1012-awsUpgrade linux-image-azureUpgrade linux-image-7.0.0-2018-nvidia-bos-64kUpgrade linux-image-7.0.0-31-genericUpgrade linux-image-7.0.0-1012-aws-64kUpgrade linux-image-oem-26.04Upgrade linux-image-ibm-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-nvidia-bos-64kUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-gke-64k-7.0Upgrade linux-image-7.0.0-1013-ibmUpgrade linux-image-oem-26.04aUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-7.0.0-31-realtimeUpgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1019-raspi-realtimeUpgrade linux-image-gke-hwe-26.04Upgrade linux-image-realtime-64k-7.0Upgrade linux-image-realtime-64kUpgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-gke-7.0Upgrade linux-image-realtimeUpgrade linux-image-generic-7.0 | Sep 14, 2026 | Sep 7, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 13, 2026 | Jul 20, 2026 |
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