CVE-2021-46904

Updated: 2024-11-24 05:58:05.446007

Description:

In the Linux kernel, the following vulnerability has been resolved: net: hso: fix null-ptr-deref during tty device unregistration Multiple ttys try to claim the same the 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. The assignment is done by the caller later. But before this assignment, calls to get_free_serial_index() would return the same minor number. Fix this by modifying get_free_serial_index to assign the minor number immediately after one is found to be and rename it to obtain_minor() to better reflect what it does. Similary, rename set_serial_by_index() to release_minor() and modify it to free up the minor number of the given hso_serial. Every obtain_minor() should have corresponding release_minor() call.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x MEDIUM 5.5

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

CentOS 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-04-18 14:10:59
CentOS 7 ELS kernel 3.10.0 5.5 MEDIUM Ignored 2024-06-24 11:25:01
CentOS 8.4 ELS kernel 4.18.0 5.5 MEDIUM Ignored 2024-04-18 14:10:59
CentOS 8.5 ELS kernel 4.18.0 5.5 MEDIUM Ignored 2024-04-18 14:10:59
CloudLinux 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-06-24 10:15:12
Oracle Linux 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-04-18 14:10:59
Ubuntu 16.04 ELS linux-hwe 4.15.0 5.5 MEDIUM Already Fixed 2024-04-18 10:06:39
Ubuntu 16.04 ELS linux 4.4.0 5.5 MEDIUM Released CLSA-2024:1714073393 2024-04-25 21:41:53
Ubuntu 18.04 ELS linux 4.15.0 5.5 MEDIUM Already Fixed 2024-04-18 11:11:10