CVE-2024-47703

published 21 Oct 2024 · updated 10 Aug 2026

bpf, lsm: Add check for BPF LSM return value

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1050727d83e70449991c29dd1cf29fe936a63da3, Kernel 27ca3e20fe80be85a92b10064dfeb56cb2564b1c and Kernel 5d99e198be279045e6ecefe220f5c52f8ce9bfd5.

In the Linux kernel, the following vulnerability has been resolved: bpf, lsm: Add check for BPF LSM return value A bpf prog returning a positive number attached to file_alloc_security hook makes kernel panic. This happens because file system can not filter out the positive number returned by the LSM prog using IS_ERR, and misinterprets this positive number as a file pointer. Given that hook file_alloc_security never returned positive number before the introduction of BPF LSM, and other BPF LSM hooks may encounter similar issues, this patch adds LSM return value check in verifier, to ensure no unexpected value is returned.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.7, >=520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 <1050727d83e70449991c29dd1cf29fe936a63da3, >=520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 <27ca3e20fe80be85a92b10064dfeb56cb2564b1c, >=520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 <5d99e198be279045e6ecefe220f5c52f8ce9bfd51050727d83e70449991c29dd1cf29fe936a63da3, 27ca3e20fe80be85a92b10064dfeb56cb2564b1c, 5d99e198be279045e6ecefe220f5c52f8ce9bfd5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-47703 severity on Zeptric[![CVE-2024-47703](https://zeptric.io/badge/cve/CVE-2024-47703.svg)](https://zeptric.io/cve/CVE-2024-47703)