net: hns3: fix kernel crash when devlink reload during pf initialization
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel’s hns3 driver, devlink reload can access hardware resources before initialization is complete. If a reload occurs during PF initialization, it may crash the kernel; the input does not specify access or authentication requirements.
Teams running Linux kernels with the hns3 driver should check their kernel versions; affected versions are not specified.