net: hns3: fix kernel crash when devlink reload during pf initialization (Linux Linux)

CVE-2024-36021
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-908 — Use of Uninitialized Resource

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected b741269b275953786832805df329851299ab4de7 < 50b69054f455dcdb34bd6b22764c7579b270eef3 ; affected b741269b275953786832805df329851299ab4de7 < 1b550dae55901c2cc9075d6a7155a71b4f516e86 ; affected b741269b275953786832805df329851299ab4de7 < 7ca0f73e5e2da3c129935b97f3a0877cce8ebdf5 ; affected b741269b275953786832805df329851299ab4de7 < 93305b77ffcb042f1538ecc383505e87d95aa05a
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 6.1.85 ≤ 6.1.* ; unaffected 6.6.26 ≤ 6.6.* ; unaffected 6.8.5 ≤ 6.8.* ; unaffected 6.9 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD