CVE-2021-46904

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedFeb 26, 2024
First seenFeb 26, 2024

How to fix

Update
  • linux linux_kernel4.4.268, 4.9.268, 4.14.232, 4.19.187, 5.4.112, 5.10.30, 5.11.14 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel2.6.27 ≤ v < 4.4.268, 4.5.0 ≤ v < 4.9.268, 4.10.0 ≤ v < 4.14.232, 4.15.0 ≤ v < 4.19.187, 4.20.0 ≤ v < 5.4.112, 5.5.0 ≤ v < 5.10.30, 5.11.0 ≤ v < 5.11.144.4.268, 4.9.268, 4.14.232, 4.19.187, 5.4.112, 5.10.30, 5.11.14

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.