PT-2024-9021 · Linux+5 · Linux Kernel+5

Ivan Avdeev

·

Published

2024-05-30

·

Updated

2025-03-28

·

CVE-2024-36895

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.37
Description: The issue is related to a buffer size problem when parsing configfs lists in the uvc gadget support on 32-bit platforms. A helper function uvcg iter item entries() was introduced to aid with parsing lists of items on configfs attributes stores. However, this function was changed to allocate a variably sized temporary buffer on the heap but wasn't properly updated to check for the maximum buffer size using the computed size instead of the sizeof() operator. As a result, the maximum item size was too small for some UVC configfs attributes, such as dwFrameInteval, which usually has 6-digit item values.
Recommendations: To resolve the issue, update the Linux kernel to version 6.6.37 or later. As a temporary workaround, consider restricting access to the vulnerable uvcg iter item entries() function until a patch is available.

Exploit

Fix

Memory Corruption

Buffer Overflow

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

Weakness Enumeration

Related Identifiers

BDU:2024-10703
CVE-2024-36895
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1794
SUSE-SU-2024:2135-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20249-1
USN-6949-1
USN-6949-2
USN-6952-1
USN-6952-2
USN-6955-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu