{"id":"CVE-2025-21802","summary":"net: hns3: fix oops when unload drivers paralleling","details":"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.","modified":"2026-03-20T12:41:11.443020Z","published":"2025-02-27T20:00:56.292Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:0847-1","SUSE-SU-2025:0856-1","SUSE-SU-2025:0955-1","SUSE-SU-2025:1293-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21802.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/622d92a67656e5c4d2d6ccac02d688ed995418c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/82736bb83fb0221319c85c2e9917d0189cd84e1e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c640dd3d900cc8988a39c007591f1deee776df4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92e5995773774a3e70257e9c95ea03518268bea5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cafe9a27e22736d4a01b3933e36225f9857c7988"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e876522659012ef2e73834a0b9f1cbe3f74d5fad"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21802.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21802"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d36b15e3e7b5937cb1f6ac590a85facc3a320642"},{"fixed":"622d92a67656e5c4d2d6ccac02d688ed995418c6"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0dd8a25f355b4df2d41c08df1716340854c7d4c5"},{"fixed":"8c640dd3d900cc8988a39c007591f1deee776df4"},{"fixed":"e876522659012ef2e73834a0b9f1cbe3f74d5fad"},{"fixed":"b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c"},{"fixed":"82736bb83fb0221319c85c2e9917d0189cd84e1e"},{"fixed":"cafe9a27e22736d4a01b3933e36225f9857c7988"},{"fixed":"92e5995773774a3e70257e9c95ea03518268bea5"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"b06ad258e01389ca3ff13bc180f3fcd6a608f1cd"},{"last_affected":"c4b64011e458aa2b246cd4e42012cfd83d2d9a5c"},{"last_affected":"9b5a29f0acefa3eb1dbe2fa302b393eeff64d933"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21802.json"}}],"schema_version":"1.7.5"}