CVE-2024-36021 net: hns3: fix kernel crash when devlink reload during pf initialization
A race condition in the hns3 driver causes a kernel crash when devlink reload occurs during PF initialization, leading to 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-2024-36021?
CVE-2024-36021 is a medium-severity vulnerability in Linux kernel, published on 30 May 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: hns3: fix kernel crash when devlink reload during pf initialization
The devlink reload process will access the hardware resources, but the register operation is done before the hardware is initialized. So, processing the devlink reload during initialization may lead to kernel crash. This patch fixes this by taking devl_lock during initialization.
Weakness: CWE-908
Which versions are affected by CVE-2024-36021?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-36021?
Apply the vendor's patch.
Is CVE-2024-36021 being exploited?
There is no known exploitation of CVE-2024-36021 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-36021, DEBIAN-CVE-2024-36021, ROOT-OS-UBUNTU-2204-CVE-2024-36021, UBUNTU-CVE-2024-36021.