CVE-2021-46905 net: hso: fix NULL-deref on disconnect regression
A regression in the Linux kernel hso driver causes a NULL pointer dereference during device disconnect, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-46905?
CVE-2021-46905 is a medium-severity vulnerability in Linux kernel, published on 25 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Weakness: CWE-476
Which versions are affected by CVE-2021-46905?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-46905?
Apply the vendor's patch.
Is CVE-2021-46905 being exploited?
There is no known exploitation of CVE-2021-46905 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-q52q-f54c-xmvp, UBUNTU-CVE-2021-46905.