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

Published

2024-05-30

·

Updated

2025-03-28

·

CVE-2024-36894

CVSS v3.1

5.6

Medium

VectorAV:P/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel (affected versions not specified)
Description: The issue is related to a race condition between the AIO completion handler and AIO cancel in the Linux kernel's usb: gadget: f fs component. This occurs when the FFS application issues an AIO cancel call while the UDC is handling a soft disconnect, leading to accessing a stale/hanging pointer. The problem arises due to the lack of locking between the AIO completion handler and AIO cancel. To fix this, the usb ep free request() function is moved back to ffs user copy worker(), ensuring that it explicitly sets io data->req to NULL after freeing it within the ffs->eps lock.
Recommendations: At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

Race Condition

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

Weakness Enumeration

Related Identifiers

BDU:2024-10704
CVE-2024-36894
DLA-4008-1
DSA-5730-1
DSA-5731-1
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1767
OESA-2024-2216
OESA-2024-2218
OESA-2024-2292
OESA-2024-2296
OPENSUSE-SU-2024_2362-1
OPENSUSE-SU-2024_2372-1
OPENSUSE-SU-2024_2394-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2360-1
SUSE-SU-2024:2362-1
SUSE-SU-2024:2365-1
SUSE-SU-2024:2372-1
SUSE-SU-2024:2381-1
SUSE-SU-2024:2384-1
SUSE-SU-2024:2385-1
SUSE-SU-2024:2394-1
SUSE-SU-2024:2495-1
SUSE-SU-2024:2561-1
SUSE-SU-2024:2939-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
USN-7003-1
USN-7003-2
USN-7003-3
USN-7003-4
USN-7003-5
USN-7006-1
USN-7007-1
USN-7007-2
USN-7007-3
USN-7009-1
USN-7009-2
USN-7019-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu