CVE-2024-50081 blk-mq: setup queue ->tag_set before initializing hctx
A null pointer dereference in the Linux kernel block layer can cause a kernel oops and system crash during CPU hotplug operations.
- 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-2024-50081?
CVE-2024-50081 is a medium-severity vulnerability in Linux kernel, published on 29 Oct 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:
blk-mq: setup queue ->tag_set before initializing hctx
Commit 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx") needs to check queue mapping via tag set in hctx's cpuhp handler.
However, q->tag_set may not be setup yet when the cpuhp handler is enabled, then kernel oops is triggered.
Fix the issue by setup queue tag_set before initializing hctx.
Which versions are affected by CVE-2024-50081?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50081?
Apply the vendor's patch.
Is CVE-2024-50081 being exploited?
There is no known exploitation of CVE-2024-50081 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50081, DEBIAN-CVE-2024-50081, GHSA-7x3v-348q-cc5h, UBUNTU-CVE-2024-50081.