Bug 2320249 (CVE-2024-47703) - CVE-2024-47703 kernel: bpf, lsm: Add check for BPF LSM return value
Summary: CVE-2024-47703 kernel: bpf, lsm: Add check for BPF LSM return value
Keywords:
Status: NEW
Alias: CVE-2024-47703
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320371
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 13:05 UTC by OSIDB Bzimport
Modified: 2025-05-13 08:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:6966 0 None None None 2025-05-13 08:29:26 UTC

Description OSIDB Bzimport 2024-10-21 13:05:27 UTC
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.

Comment 2 errata-xmlrpc 2025-05-13 08:29:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:6966 https://access.redhat.com/errata/RHSA-2025:6966


Note You need to log in before you can comment on or make changes to this bug.