5.5medium
net: hns3: fix kernel crash when devlink reload during pf initialization
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b741269b275953786832805df329851299ab4de7 before 50b69054f455dcdb34bd6b22764c7579b270eef3, from b741269b275953786832805df329851299ab4de7 before 1b550dae55901c2cc9075d6a7155a71b4f516e86, from b741269b275953786832805df329851299ab4de7 before 7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5, from b741269b275953786832805df329851299ab4de7 before 93305b77ffcb042f1538ecc383505e87d95aa05a, 5.15 Not affected: before 5.15, from 6.1.85 up to 6.1.*, from 6.6.26 up to 6.6.*, from 6.8.5 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 5.15 before 6.1.85, from 6.2 before 6.6.26, from 6.7 before 6.8.5, 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: hns3: soluciona el fallo del kernel cuando devlink se recarga durante la inicialización de pf. El proceso de recarga de devlink accederá a los recursos de hardware, pero la operación de registro se realiza antes de que se inicialice el hardware. Por lo tanto, procesar la recarga de devlink durante la inicialización puede provocar una falla del kernel. Este parche soluciona este problema tomando devl_lock durante la inicialización.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36021 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-36021 changed 2026-06-17 | Public domain |