In the Linux kernel, the following vulnerability has been resolved:
bpf: Prevent tail call between progs attached to different hooks
bpf progs can be attached to kernel functions, and the attached functions can take different parameters or return different return values. If prog attached to one kernel function tail calls prog attached to another kernel function, the ctx access or return value verification could be bypassed.
For example, if prog1 is attached to func1 which takes only 1 parameter and prog2 is attached to func2 which takes two parameters. Since verifier assumes the bpf ctx passed to prog2 is constructed based on func2's prototype, verifier allows prog2 to access the second parameter from the bpf ctx passed to it. The problem is that verifier does not prevent prog1 from passing its bpf ctx to prog2 via tail call. In this case, the bpf ctx passed to prog2 is constructed from func1 instead of func2, that is, the assumption for ctx access verification is bypassed.
Another example, if BPF LSM prog1 is attached to hook file_alloc_security, and BPF LSM prog2 is attached to hook bpf_lsm_audit_rule_known. Verifier knows the return value rules for these two hooks, e.g. it is legal for bpf_lsm_audit_rule_known to return positive number 1, and it is illegal for file_alloc_security to return positive number. So verifier allows prog2 to return positive number 1, but does not allow prog1 to return positive number. The problem is that verifier does not prevent prog1 from calling prog2 via tail call. In this case, prog2's return value 1 will be used as the return value for prog1's hook file_alloc_security. That is, the return value rule is bypassed.
This patch adds restriction for tail call to prevent such bypasses.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel-debuginfoUpgrade kernel-libbpfUpgrade kernel-modules-extraUpgrade bpftool-debuginfoUpgrade perfUpgrade kernel-tools-debuginfoUpgrade kernel-libbpf-debuginfoUpgrade perf-debuginfoUpgrade kernel-headersUpgrade kernel-toolsUpgrade python3-perfUpgrade kernel-tools-develUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-modules-extra-commonUpgrade kernel-livepatch-6.1.140-154.222Upgrade kernelUpgrade bpftoolUpgrade kernel-libbpf-develUpgrade python3-perf-debuginfoUpgrade kernel-libbpf-staticUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-devel | Aug 5, 2025 | Oct 21, 2024 |
| Debian | — | Upgrade linux-6.1Upgrade linux | Apr 29, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp11 | — | Upgrade python3-perfUpgrade bpftoolUpgrade kernelUpgrade kernel-abi-stablelistsUpgrade kernel-tools-libsUpgrade kernel-tools | Feb 11, 2025 | Oct 21, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade python3-perfUpgrade bpftoolUpgrade kernelUpgrade kernel-abi-stablelistsUpgrade kernel-toolsUpgrade kernel-tools-libs | Feb 11, 2025 | Oct 21, 2024 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-image-azure-fdeUpgrade linux-image-6.8.0-1014-azure-nvidiaUpgrade linux-image-6.8.0-1027-awsUpgrade linux-image-lowlatencyUpgrade linux-image-6.8.0-1025-azureUpgrade linux-image-oem-22.04Upgrade linux-image-6.11.0-1010-lowlatencyUpgrade linux-image-genericUpgrade linux-image-6.11.0-1009-awsUpgrade linux-image-6.8.0-1008-gkeopUpgrade linux-image-6.8.0-1024-oemUpgrade linux-image-6.8.0-56-lowlatencyUpgrade linux-image-gkeopUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-oem-22.04bUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-6.8.0-1022-oracleUpgrade linux-image-azure-nvidiaUpgrade linux-image-raspiUpgrade linux-image-6.8.0-1024-nvidia-64kUpgrade linux-image-6.8.0-1025-awsUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-6.11.0-1011-oracle-64kUpgrade linux-image-6.11.0-18-generic-64kUpgrade linux-image-kvmUpgrade linux-image-oem-24.04aUpgrade linux-image-oem-22.04dUpgrade linux-image-oem-22.04aUpgrade linux-image-nvidia-64kUpgrade linux-image-gkeUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-6.8.0-57-genericUpgrade linux-image-6.8.0-1024-nvidiaUpgrade linux-image-6.11.0-1009-azure-fdeUpgrade linux-image-raspi-realtimeUpgrade linux-image-gcpUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-oracle-64kUpgrade linux-image-azure-lts-24.04Upgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-azureUpgrade linux-image-6.11.0-1009-azureUpgrade linux-image-6.8.0-56-generic-64kUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-6.8.0-56-lowlatency-64kUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-oem-24.04Upgrade linux-image-oem-22.04cUpgrade linux-image-ibmUpgrade linux-image-aws-lts-24.04Upgrade linux-image-nvidiaUpgrade linux-image-6.11.0-1011-oracleUpgrade linux-image-generic-64kUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-6.11.0-1015-oemUpgrade linux-image-gcp-64kUpgrade linux-image-6.11.0-18-genericUpgrade linux-image-6.8.0-1025-azure-fdeUpgrade linux-image-6.8.0-1022-oracle-64kUpgrade linux-image-6.8.0-1021-gkeUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-oem-24.04bUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-6.8.0-57-generic-64kUpgrade linux-image-6.8.0-56-genericUpgrade linux-image-oracleUpgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-virtual | Feb 20, 2025 | Oct 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 2, 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