Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-47703

bpf, lsm: Add check for BPF LSM return value

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 to < 1050727d83e70449991c29dd1cf29fe936a63da3affected
  • 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 to < 27ca3e20fe80be85a92b10064dfeb56cb2564b1caffected
  • 520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 to < 5d99e198be279045e6ecefe220f5c52f8ce9bfd5affected

Linux Linux

Default version status: affected

  • 5.7affected
  • 0 to < 5.7unaffected
  • 6.10.13 to ≤ 6.10.*unaffected
  • 6.11.2 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References