Skip to main content
← All vulnerabilities
CVE-2025-21802

net: hns3: fix oops when unload drivers paralleling

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.235, 4.20, 5.5, 5.15, 5.15.179, and 4 more
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: net: hns3: fix oops when unload drivers paralleling When unload hclge driver, it tries to disable sriov first for each ae_dev node from hnae3_ae_dev_list. If user unloads hns3 driver at the time, because it removes all the ae_dev nodes, and it may cause oops. But we can't simply use hnae3_common_lock for this. Because in the process flow of pci_disable_sriov(), it will trigger the remove flow of VF, which will also take hnae3_common_lock. To fixes it, introduce a new mutex to protect the unload process.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From d36b15e3e7b5937cb1f6ac590a85facc3a320642 · fixed in 622d92a67656e5c4d2d6ccac02d688ed995418c6; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in 8c640dd3d900cc8988a39c007591f1deee776df4; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in e876522659012ef2e73834a0b9f1cbe3f74d5fad; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in 82736bb83fb0221319c85c2e9917d0189cd84e1e; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in cafe9a27e22736d4a01b3933e36225f9857c7988; From 0dd8a25f355b4df2d41c08df1716340854c7d4c5 · fixed in 92e5995773774a3e70257e9c95ea03518268bea5; From 5.10.76 · fixed in 5.10.235; From 4.19.214 · fixed in 4.20; From 5.4.156 · fixed in 5.5; From 5.14.15 · fixed in 5.15

  • Linux Linux

    5.15

  • KernelLinux

    fixed in 5.10.235; From 5.11.0 · fixed in 5.15.179; From 5.15.0 · fixed in 6.1.129; From 5.16.0 · fixed in 6.6.76; From 6.2.0 · fixed in 6.12.13; From 6.7.0 · fixed in 6.13.2

References 7

git.kernel.org