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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-10-21 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-47703, DEBIAN-CVE-2024-47703
- Record: https://cvemate.com/vulnerability/CVE-2024-47703 · JSON: https://cvemate.com/vulnerability/CVE-2024-47703/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.216%, percentile 12.768%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 127)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.11.2-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-54.56
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1023.25
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1023.25~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1025.30
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/1050727d83e70449991c29dd1cf29fe936a63da3>
- <https://git.kernel.org/stable/c/27ca3e20fe80be85a92b10064dfeb56cb2564b1c>
- <https://git.kernel.org/stable/c/5d99e198be279045e6ecefe220f5c52f8ce9bfd5>
- <https://ubuntu.com/security/CVE-2024-47703>
- <https://www.cve.org/CVERecord?id=CVE-2024-47703>
- <https://git.kernel.org/linus/5d99e198be279045e6ecefe220f5c52f8ce9bfd5>
- <https://ubuntu.com/security/notices/USN-7276-1>
- <https://ubuntu.com/security/notices/USN-7277-1>
- <https://ubuntu.com/security/notices/USN-7301-1>
- <https://ubuntu.com/security/notices/USN-7303-1>
- <https://ubuntu.com/security/notices/USN-7304-1>
- <https://ubuntu.com/security/notices/USN-7303-2>
- <https://ubuntu.com/security/notices/USN-7310-1>
- <https://ubuntu.com/security/notices/USN-7311-1>
- <https://ubuntu.com/security/notices/USN-7303-3>
- <https://ubuntu.com/security/notices/USN-7384-1>
- <https://ubuntu.com/security/notices/USN-7385-1>
- <https://ubuntu.com/security/notices/USN-7386-1>
- <https://ubuntu.com/security/notices/USN-7384-2>
- <https://ubuntu.com/security/notices/USN-7403-1>

---

Data as of 2026-12-05T04:25:09.393Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
