net: hns3: fix kernel crash when devlink reload during 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 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 registering the devlink after hardware initialization.
From the CVE record · Linux
In the Linux kernel's hns3 driver, devlink can be registered before hardware initialization finishes. A devlink reload during initialization can access hardware resources too early and crash the kernel. The input does not specify how reload can be triggered or whether authentication or user interaction is required.
Engineers running Linux kernels with the hns3 driver should check their deployments; affected versions are not specified.