PT-2021-7998 · Linux+3 · Linux Kernel+3

Published

2021-04-07

·

Updated

2024-08-21

·

CVE-2021-46904

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 is related to a null pointer dereference during tty device unregistration in the Linux kernel. Multiple ttys try to claim the same minor number, causing a double unregistration of the same device. The first unregistration succeeds, but the next one results in a null-ptr-deref. The get free serial index() function returns an available minor number but doesn't assign it immediately. To fix this, get free serial index() was modified to assign the minor number immediately after one is found and renamed to obtain minor() to better reflect its function. Similarly, set serial by index() was renamed to release minor() and modified to free up the minor number of the given hso serial. Every obtain minor() call should have a corresponding release minor() call.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

NULL Pointer Dereference

Use After Free

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

Weakness Enumeration

Related Identifiers

BDU:2024-01700
CVE-2021-46904
OESA-2024-1392
OESA-2024-1393
OPENSUSE-SU-2024_0857-1
SUSE-SU-2024:0856-1
SUSE-SU-2024:0857-1
SUSE-SU-2024:0926-1
SUSE-SU-2024:1643-1
SUSE-SU-2024:1646-1
SUSE-SU-2024:1669-1
SUSE-SU-2024:1870-1
SUSE-SU-2024_1669-1
USN-6971-1
USN-6976-1

Affected Products

Astra Linux
Linux Kernel
Suse
Ubuntu