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

Duoming Zhou

·

Published

2024-04-02

·

Updated

2026-03-14

·

CVE-2024-35887

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 (affected versions not specified)
Description The issue is related to a use-after-free bug in the ax25 dev device down() function, which is caused by concurrent access to a resource, leading to a race condition. When the ax25 device is detaching, the ax25 dev device down() function calls ax25 ds del timer() to clean up the slave timer. However, if the timer handler is running, ax25 ds del timer() will return directly, resulting in use-after-free bugs. One scenario is shown below: (Thread 1) | (Thread 2) | ax25 ds timeout() ax25 dev device down() | ax25 ds del timer() | del timer() | ax25 dev put() //FREE | | ax25 dev-> //USE To mitigate the bug, when the device is detaching, use timer shutdown sync() to stop the timer.
Recommendations To resolve the issue, use timer shutdown sync() to stop the timer when the device is detaching. As a temporary workaround, consider disabling the ax25 dev device down() function until a patch is available. Restrict access to the vulnerable module to minimize the risk of exploitation. Avoid using the ax25 ds del timer() function in the affected API endpoint until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

Race Condition

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

Weakness Enumeration

Related Identifiers

AZL-54730
BDU:2024-04217
CVE-2024-35887
ECHO-A0BF-81E8-756E
OESA-2024-1737
OESA-2024-1738
SUSE-SU-2024:1979-1
SUSE-SU-2024:1983-1
SUSE-SU-2024:2008-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2184-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2901-1
SUSE-SU-2024:2940-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-6893-1
USN-6893-2
USN-6893-3
USN-6918-1
USN-7288-1
USN-7288-2
USN-7289-1
USN-7289-2
USN-7289-3
USN-7289-4
USN-7291-1
USN-7293-1
USN-7294-1
USN-7294-2
USN-7294-3
USN-7294-4
USN-7295-1
USN-7305-1
USN-7308-1
USN-7331-1
USN-7388-1
USN-7389-1
USN-7390-1
USN-7393-1
USN-7401-1
USN-7413-1
USN-7458-1
USN-7539-1
USN-7540-1

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Suse
Ubuntu