CVE-2024-47703 Details
Description
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.
A vulnerability in the Linux kernel's handling of BPF (Berkeley Packet Filter) LSM (Linux Security Module) return values has been identified. When a BPF program returns a positive number to the file_alloc_security hook, it can trigger a kernel panic. This issue arises because the file system cannot properly interpret the positive return value using the IS_ERR function, mistakenly treating it as a file pointer. The problem emerged after the introduction of BPF LSM, as the file_alloc_security hook had never returned a positive value before. Other BPF LSM hooks could potentially face similar issues. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed in the Linux kernel stable tree. Users can upgrade to the latest version of the kernel to apply the fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 21, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c | kernel.org | Patch |
| https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.7, < 6.10.13 >= 6.11, < 6.11.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 24, 2024 | Initial Analysis | [email protected] |
| Oct 21, 2024 | New CVE Received | kernel.org |