PT-2024-34086 · Linux+2 · Linux Kernel+2

Hou Tao

·

Published

2024-10-30

·

Updated

2025-02-28

·

CVE-2024-50253

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: The issue concerns a vulnerability in the Linux kernel where the function bpf iter bits new() does not properly check the validity of nr words. This can lead to stack corruption due to bpf probe read kernel common() when nr words causes a multiplication overflow, resulting in an incorrect nr bits value. For example, when nr words equals 0x0400-0001, nr bits becomes 64, potentially causing issues. The estimated number of potentially affected devices worldwide is not provided. There is no information about real-world incidents where this issue was exploited.
Recommendations: To resolve the issue, limit the maximum value of nr words to 511, as derived from the current BPF memory allocator implementation. Use the helper function bpf mem alloc check size() to check if nr bytes is too large and return -E2BIG instead of -ENOMEM for oversized nr bytes. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Integer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-14142
CVE-2024-50253
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