# CVE-2024-47703: bpf, lsm: Add check for BPF LSM return value

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-10-21T11:53:38.714Z
- Modified: 2026-08-05T11:39:35.083Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 before 1050727d83e70449991c29dd1cf29fe936a63da3; from 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 before 27ca3e20fe80be85a92b10064dfeb56cb2564b1c; from 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 before 5d99e198be279045e6ecefe220f5c52f8ce9bfd5; 5.7 (not affected: before 5.7; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.7 before 6.10.13; from 6.11 before 6.11.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3> (patch)
- <https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c> (patch)
- <https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5> (patch)

## Sources

- CVE List: [CVE-2024-47703](https://www.cve.org/CVERecord?id=CVE-2024-47703), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-47703](https://nvd.nist.gov/vuln/detail/CVE-2024-47703), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-47703 · Whole record: https://cve.day/CVE-2024-47703.json · Rebuilt by cve.day 2026-11-25T22:58:46.974Z
