CVE-2021-46905
net: hso: fix NULL-deref on disconnect regression
Check your servers for CVE-2021-46905
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-46905 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
net: hso: fix NULL-deref on disconnect regression
Commit 8a12f8836145 ("net: hso: fix null-ptr-deref during tty device unregistration") fixed the racy minor allocation reported by syzbot, but introduced an unconditional NULL-pointer dereference on every disconnect instead.
Specifically, the serial device table must no longer be accessed after the minor has been released by hso_serial_tty_unregister().
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 4 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a462067d7c8e6953a733bf5ade8db947b1bb5449, before 5871761c5f0f20d6e98bf3b6bd7486d857589554 affected from 145c89c441d27696961752bf51b323f347601bee, before 0c71d4c89559f72cec2592d078681a843bce570e affected from caf5ac93b3b5d5fac032fc11fbea680e115421b4, before 24b699bea7553fc0b98dad9d864befb6005ac7f1 affected from 92028d7a31e55d53e41cff679156b9432cffcb36, before 5c17cfe155d21954b4c7e2a78fa771cebcd86725 affected from 4a2933c88399c0ebc738db39bbce3ae89786d723, before d7fad2ce15bdbbd0fec3ebe999fd7cab2267f53e affected from dc195928d7e4ec7b5cfc6cd10dc4c8d87a7c72ac, before 90642ee9eb581a13569b1c0bd57e85d962215273 affected from 388d05f70f1ee0cac4a2068fd295072f1a44152a, before 0f000005da31f6947f843ce6b3e3a960540c6e00 affected from 8a12f8836145ffe37e9c8733dce18c22fb668b66, before 41c44e1f3112d7265dae522c026399b2a42d19ef affected from 8a12f8836145ffe37e9c8733dce18c22fb668b66, before 2ad5692db72874f02b9ad551d26345437ea4f7f3 affected from 4.19.187, before 4.19.189 affected from 5.4.112, before 5.4.115 affected from 5.10.30, before 5.10.33 affected from 5.11.14, before 5.11.17
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 4.19.189 up to and including 4.19.* unaffected from 5.4.115 up to and including 5.4.* unaffected from 5.10.33 up to and including 5.10.* unaffected from 5.11.17 up to and including 5.11.* unaffected from 5.12.1 up to and including 5.12.* unaffected 5.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-46905 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46905
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-46905
trivy image --scanners vuln IMAGE | grep CVE-2021-46905
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5871761c5f0f20d6e98bf3b6bd7486d857589554 git.kernel.org
- https://git.kernel.org/stable/c/0c71d4c89559f72cec2592d078681a843bce570e git.kernel.org
- https://git.kernel.org/stable/c/24b699bea7553fc0b98dad9d864befb6005ac7f1 git.kernel.org
- https://git.kernel.org/stable/c/5c17cfe155d21954b4c7e2a78fa771cebcd86725 git.kernel.org
- https://git.kernel.org/stable/c/d7fad2ce15bdbbd0fec3ebe999fd7cab2267f53e git.kernel.org
- https://git.kernel.org/stable/c/90642ee9eb581a13569b1c0bd57e85d962215273 git.kernel.org
- https://git.kernel.org/stable/c/0f000005da31f6947f843ce6b3e3a960540c6e00 git.kernel.org
- https://git.kernel.org/stable/c/41c44e1f3112d7265dae522c026399b2a42d19ef git.kernel.org
- https://git.kernel.org/stable/c/2ad5692db72874f02b9ad551d26345437ea4f7f3 git.kernel.org
Source: the record CVE-2021-46905 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse