net: hns3: fix oops when unload drivers paralleling
Summary
| CVE | CVE-2025-21802 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-02-27 20:16:02 UTC |
| Updated | 2026-07-14 13:17:24 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: NVD-CWE-noinfo
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected d36b15e3e7b5937cb1f6ac590a85facc3a320642 622d92a67656e5c4d2d6ccac02d688ed995418c6 git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 8c640dd3d900cc8988a39c007591f1deee776df4 git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 e876522659012ef2e73834a0b9f1cbe3f74d5fad git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 82736bb83fb0221319c85c2e9917d0189cd84e1e git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 cafe9a27e22736d4a01b3933e36225f9857c7988 git | Not specified |
| CNA | Linux | Linux | affected 0dd8a25f355b4df2d41c08df1716340854c7d4c5 92e5995773774a3e70257e9c95ea03518268bea5 git | Not specified |
| CNA | Linux | Linux | affected b06ad258e01389ca3ff13bc180f3fcd6a608f1cd git | Not specified |
| CNA | Linux | Linux | affected c4b64011e458aa2b246cd4e42012cfd83d2d9a5c git | Not specified |
| CNA | Linux | Linux | affected 9b5a29f0acefa3eb1dbe2fa302b393eeff64d933 git | Not specified |
| CNA | Linux | Linux | affected 5.10.76 5.10.235 semver | Not specified |
| CNA | Linux | Linux | affected 4.19.214 4.20 semver | Not specified |
| CNA | Linux | Linux | affected 5.4.156 5.5 semver | Not specified |
| CNA | Linux | Linux | affected 5.14.15 5.15 semver | Not specified |
| CNA | Linux | Linux | affected 5.15 | Not specified |
| CNA | Linux | Linux | unaffected 5.15 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.235 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.179 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.129 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.76 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.13 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.13.2 6.13.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.14 * original_commit_for_fix | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/82736bb83fb0221319c85c2e9917d0189cd84e1e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/05/msg00030.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/e876522659012ef2e73834a0b9f1cbe3f74d5fad | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/622d92a67656e5c4d2d6ccac02d688ed995418c6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/92e5995773774a3e70257e9c95ea03518268bea5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/cafe9a27e22736d4a01b3933e36225f9857c7988 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| cert-portal.siemens.com/productcert/html/ssa-019113.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/8c640dd3d900cc8988a39c007591f1deee776df4 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| lists.debian.org/debian-lts-announce/2025/03/msg00028.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| git.kernel.org/stable/c/b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.