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

VectorAV: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

BDU:2025-15095
CVE-2024-50254
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
USN-7276-1
USN-7277-1
USN-7310-1

Affected Products

Linuxmint
Linux Kernel
Ubuntu