PT-2024-34087 · Linux+2 · Linux Kernel+2
Published
2024-10-30
·
Updated
2025-02-28
·
CVE-2024-50254
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions:
Linux kernel (affected versions not specified)
Description:
A vulnerability in the Linux kernel has been resolved, related to the bpf iter bits destroy() function. The issue arises from an incorrect check for dynamically allocated bits, potentially causing a kmemleak. The problem occurs because nr bits is set to zero in bpf iter bits next() after all bits have been iterated. To fix the issue, the code should set kit->bit to kit->nr bits instead of setting kit->nr bits to zero when the iteration completes. Additionally, the check for iteration completion should use "!nr bits || bits >= nr bits" and still use "nr bits > 64" to indicate whether bits are dynamically allocated.
Recommendations:
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Linux Kernel
Ubuntu