{"id":"CVE-2025-21802","aliases":["CVE-2025-21802"],"related":[],"kind":"vulnerability","state":"published","title":"net: hns3: fix oops when unload drivers paralleling","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: fix oops when unload drivers paralleling\n\nWhen unload hclge driver, it tries to disable sriov first for each\nae_dev node from hnae3_ae_dev_list. If user unloads hns3 driver at\nthe time, because it removes all the ae_dev nodes, and it may cause\noops.\n\nBut we can't simply use hnae3_common_lock for this. Because in the\nprocess flow of pci_disable_sriov(), it will trigger the remove flow\nof VF, which will also take hnae3_common_lock.\n\nTo fixes it, introduce a new mutex to protect the unload process.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: fix oops when unload drivers paralleling\n\nWhen unload hclge driver, it tries to disable sriov first for each\nae_dev node from hnae3_ae_dev_list. If user unloads hns3 driver at\nthe time, because it removes all the ae_dev nodes, and it may cause\noops.\n\nBut we can't simply use hnae3_common_lock for this. Because in the\nprocess flow of pci_disable_sriov(), it will trigger the remove flow\nof VF, which will also take hnae3_common_lock.\n\nTo fixes it, introduce a new mutex to protect the unload process.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: hns3: se corrige el error al descargar controladores en paralelo. Al descargar el controlador hclge, primero intenta deshabilitar sriov para cada nodo ae_dev de hnae3_ae_dev_list. Si el usuario descarga el controlador hns3 en ese momento, debido a que elimina todos los nodos ae_dev, y puede causar errores. Pero no podemos simplemente usar hnae3_common_lock para esto. Porque en el flujo de proceso de pci_disable_sriov(), activará el flujo de eliminación de VF, que también tomará hnae3_common_lock. Para solucionarlo, introduzca un nuevo mutex para proteger el proceso de descarga.","source":"nvd"}],"published":"2025-02-27T20:00:56.292Z","modified":"2026-11-10T13:17:36.370Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d36b15e3e7b5937cb1f6ac590a85facc3a320642","fixed":"622d92a67656e5c4d2d6ccac02d688ed995418c6","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"8c640dd3d900cc8988a39c007591f1deee776df4","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"e876522659012ef2e73834a0b9f1cbe3f74d5fad","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"82736bb83fb0221319c85c2e9917d0189cd84e1e","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"cafe9a27e22736d4a01b3933e36225f9857c7988","status":"affected"},{"type":"git","introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5","fixed":"92e5995773774a3e70257e9c95ea03518268bea5","status":"affected"},{"type":"git","version":"b06ad258e01389ca3ff13bc180f3fcd6a608f1cd","status":"affected"},{"type":"git","version":"c4b64011e458aa2b246cd4e42012cfd83d2d9a5c","status":"affected"},{"type":"git","version":"9b5a29f0acefa3eb1dbe2fa302b393eeff64d933","status":"affected"},{"type":"semver","introduced":"5.10.76","fixed":"5.10.235","status":"affected"},{"type":"semver","introduced":"4.19.214","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.156","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.14.15","fixed":"5.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.129","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.76","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.13","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.2","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19.214","fixed":"4.20"},{"status":"affected","introduced":"5.4.156","fixed":"5.5"},{"status":"affected","introduced":"5.10.76","fixed":"5.10.235"},{"status":"affected","introduced":"5.14.15","fixed":"5.15"},{"status":"affected","introduced":"5.15.1","fixed":"5.15.179"},{"status":"affected","introduced":"5.16","fixed":"6.1.129"},{"status":"affected","introduced":"6.2","fixed":"6.6.76"},{"status":"affected","introduced":"6.7","fixed":"6.12.13"},{"status":"affected","introduced":"6.13","fixed":"6.13.2"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/622d92a67656e5c4d2d6ccac02d688ed995418c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c640dd3d900cc8988a39c007591f1deee776df4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e876522659012ef2e73834a0b9f1cbe3f74d5fad","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82736bb83fb0221319c85c2e9917d0189cd84e1e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cafe9a27e22736d4a01b3933e36225f9857c7988","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92e5995773774a3e70257e9c95ea03518268bea5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21802","url":"https://www.cve.org/CVERecord?id=CVE-2025-21802","licence":"CVE Terms of Use","modified":"2026-11-10T12:35:09.730Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21802","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21802","licence":"Public domain","modified":"2026-11-10T13:17:36.370Z"}],"updatedAt":"2026-11-25T22:58:54.605Z","epss":{"score":0.00212,"percentile":0.12195,"date":"2026-12-01T12:00:22.000Z"}}