# CVE-2024-36021: net: hns3: fix kernel crash when devlink reload during pf initialization

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-30T14:59:45.757Z
- Modified: 2026-06-17T07:35:58.420Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## References

- <https://git.kernel.org/stable/c/50b69054f455dcdb34bd6b22764c7579b270eef3> (patch)
- <https://git.kernel.org/stable/c/1b550dae55901c2cc9075d6a7155a71b4f516e86> (patch)
- <https://git.kernel.org/stable/c/7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5> (patch)
- <https://git.kernel.org/stable/c/93305b77ffcb042f1538ecc383505e87d95aa05a> (patch)

## Sources

- CVE List: [CVE-2024-36021](https://www.cve.org/CVERecord?id=CVE-2024-36021), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-36021](https://nvd.nist.gov/vuln/detail/CVE-2024-36021), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36021 · Whole record: https://cve.day/CVE-2024-36021.json · Rebuilt by cve.day 2026-11-25T22:58:41.110Z
