CVE-2024-47703: bpf, lsm: Add check for BPF LSM return value
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 fileallocsecurity hook makes kernel panic.
This happens because file system can not filter out the positive number returned by the LSM prog using ISERR, and misinterprets this positive number as a file pointer.
Given that hook fileallocsecurity 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.25-1Fixed in 6.12.27-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47703?
CVE-2024-47703 is classified as a high severity vulnerability due to the potential for kernel panic.
How do I fix CVE-2024-47703?
To mitigate CVE-2024-47703, upgrade your Linux kernel to version 6.12.12-1 or later.
What systems are affected by CVE-2024-47703?
CVE-2024-47703 affects multiple versions of the Linux kernel ranging from 5.7 to 6.11.2.
What is the impact of CVE-2024-47703?
If exploited, CVE-2024-47703 can lead to a kernel panic, rendering the system unresponsive.
When was CVE-2024-47703 published?
CVE-2024-47703 was published in 2024, addressing an issue in the Linux kernel related to BPF LSM.