CVE-2025-21802
net: hns3: fix oops when unload drivers paralleling
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= d36b15e3e7b5937cb1f6ac590a85facc3a320642, < 622d92a67656e5c4d2d6ccac02d688ed995418c6; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 8c640dd3d900cc8988a39c007591f1deee776df4; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < e876522659012ef2e73834a0b9f1cbe3f74d5fad; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 82736bb83fb0221319c85c2e9917d0189cd84e1e; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < cafe9a27e22736d4a01b3933e36225f9857c7988; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 92e5995773774a3e70257e9c95ea03518268bea5; b06ad258e01389ca3ff13bc180f3fcd6a608f1cd; c4b64011e458aa2b246cd4e42012cfd83d2d9a5c; 9b5a29f0acefa3eb1dbe2fa302b393eeff64d933; …
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= d36b15e3e7b5937cb1f6ac590a85facc3a320642, < 622d92a67656e5c4d2d6ccac02d688ed995418c6; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 8c640dd3d900cc8988a39c007591f1deee776df4; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < e876522659012ef2e73834a0b9f1cbe3f74d5fad; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 82736bb83fb0221319c85c2e9917d0189cd84e1e; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < cafe9a27e22736d4a01b3933e36225f9857c7988; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 92e5995773774a3e70257e9c95ea03518268bea5; b06ad258e01389ca3ff13bc180f3fcd6a608f1cd; c4b64011e458aa2b246cd4e42012cfd83d2d9a5c; 9b5a29f0acefa3eb1dbe2fa302b393eeff64d933; …; Linux 5.15
- Fixed in
- Linux 622d92a67656e5c4d2d6ccac02d688ed995418c6, Linux 8c640dd3d900cc8988a39c007591f1deee776df4, Linux 82736bb83fb0221319c85c2e9917d0189cd84e1e, Linux 92e5995773774a3e70257e9c95ea03518268bea5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d36b15e3e7b5937cb1f6ac590a85facc3a320642, < 622d92a67656e5c4d2d6ccac02d688ed995418c6; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 8c640dd3d900cc8988a39c007591f1deee776df4; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < e876522659012ef2e73834a0b9f1cbe3f74d5fad; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 82736bb83fb0221319c85c2e9917d0189cd84e1e; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < cafe9a27e22736d4a01b3933e36225f9857c7988; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 92e5995773774a3e70257e9c95ea03518268bea5; b06ad258e01389ca3ff13bc180f3fcd6a608f1cd; c4b64011e458aa2b246cd4e42012cfd83d2d9a5c; 9b5a29f0acefa3eb1dbe2fa302b393eeff64d933; … | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21802. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21802.md Affected: Linux >= d36b15e3e7b5937cb1f6ac590a85facc3a320642, < 622d92a67656e5c4d2d6ccac02d688ed995418c6; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 8c640dd3d900cc8988a39c007591f1deee776df4; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < e876522659012ef2e73834a0b9f1cbe3f74d5fad; >= 0dd8a25f355b4df2d41c08d… Fixed in: Linux 622d92a67656e5c4d2d6ccac02d688ed995418c6, Linux 8c640dd3d900cc8988a39c007591f1deee776df4, Linux 82736bb83fb0221319c85c2e9917d0189cd84e1e, Linux 92e5995773774a3e70257e9c95ea03518268bea5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2025-21802 being exploited?
There is no confirmed exploitation: CVE-2025-21802 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21802?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21802?
Linux >= d36b15e3e7b5937cb1f6ac590a85facc3a320642, < 622d92a67656e5c4d2d6ccac02d688ed995418c6; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 8c640dd3d900cc8988a39c007591f1deee776df4; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < e876522659012ef2e73834a0b9f1cbe3f74d5fad; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 82736bb83fb0221319c85c2e9917d0189cd84e1e; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < cafe9a27e22736d4a01b3933e36225f9857c7988; >= 0dd8a25f355b4df2d41c08df1716340854c7d4c5, < 92e5995773774a3e70257e9c95ea03518268bea5; b06ad258e01389ca3ff13bc180f3fcd6a608f1cd; c4b64011e458aa2b246cd4e42012cfd83d2d9a5c; 9b5a29f0acefa3eb1dbe2fa302b393eeff64d933; …; Linux 5.15.
Is there a fix for CVE-2025-21802?
Yes. Fixed in Linux 622d92a67656e5c4d2d6ccac02d688ed995418c6, Linux 8c640dd3d900cc8988a39c007591f1deee776df4, Linux 82736bb83fb0221319c85c2e9917d0189cd84e1e, Linux 92e5995773774a3e70257e9c95ea03518268bea5. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-21802?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.