CVE & CISA-KEV Catalog

CVE-2021-46904

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.38-1CVE-2021-46904
Fixed in:5.10.38-1CVE-2021-46904
Fixed in:5.10.38-1CVE-2021-46904
Fixed in:5.10.38-1CVE-2021-46904
linuxUbuntu
Fixed in:3.13.0-199.250USN-6971-1
linux-image-3.13.0-199-genericUbuntu
Fixed in:3.13.0-199.250USN-6971-1
linux-image-3.13.0-199-lowlatencyUbuntu
Fixed in:3.13.0-199.250USN-6971-1
linux-image-genericUbuntu
Fixed in:3.13.0.199.209USN-6971-1
linux-image-generic-lts-trustyUbuntu
Fixed in:3.13.0.199.209USN-6971-1
linux-image-lowlatencyUbuntu
Fixed in:3.13.0.199.209USN-6971-1
linux-image-serverUbuntu
Fixed in:3.13.0.199.209USN-6971-1
linux-image-virtualUbuntu
Fixed in:3.13.0.199.209USN-6971-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.26%probability of exploitation in 30 days
17thpercentile

Low risk: more likely to be exploited than 17% of all known CVEs.

References

Related Vulnerabilities

Other CWE-476 (NULL Pointer Dereference) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-21758High7.592%-Fix
CVE-2023-21547High7.588%-Fix
CVE-2014-3470Medium4.386%-Fix
CVE-2021-44224High8.282%-Fix
CVE-2016-0742High7.582%-Fix
CVE-2009-1386Medium5.080%-Fix
Embed a live status badge for CVE-2021-46904
CVE-2021-46904 severity badge

Markdown

[![CVE-2021-46904](https://tridentstack.com/cve/badge/CVE-2021-46904.svg)](https://tridentstack.com/cve/CVE-2021-46904)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-46904"><img src="https://tridentstack.com/cve/badge/CVE-2021-46904.svg" alt="CVE-2021-46904"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.