CVE-2025-21802

net: hns3: fix oops when unload drivers paralleling

MEDIUM
5.5
CVSS Score
Published: February 27, 2025 at 08:00 PM UTC
Updated: October 15, 2026 at 02:17 AM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19.214 ≤ v < 4.205.10.76 ≤ v < 5.10.2355.14.15 ≤ v < 5.155.15.1 ≤ v < 5.15.1795.16 ≤ v < 6.1.1295.4.156 ≤ v < 5.56.13 ≤ v < 6.13.26.2 ≤ v < 6.6.766.7 ≤ v < 6.12.130dd8a25f355b4df2d41c08df1716340854c7d4c54.19.2145.10.765.14.155.155.15 rc75.4.1569b5a29f0acefa3eb1dbe2fa302b393eeff64d933b06ad258e01389ca3ff13bc180f3fcd6a608f1cdc4b64011e458aa2b246cd4e42012cfd83d2d9a5cd36b15e3e7b5937cb1f6ac590a85facc3a320642
Vendor states this is fixed in 622d92a67656e5c4d2d6ccac02d688ed995418c6 (fixed)
Vendor states this is fixed in 82736bb83fb0221319c85c2e9917d0189cd84e1e (fixed)
Vendor states this is fixed in 8c640dd3d900cc8988a39c007591f1deee776df4 (fixed)
Vendor states this is fixed in 92e5995773774a3e70257e9c95ea03518268bea5 (fixed)
Vendor states this is fixed in b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c (fixed)
Vendor states this is fixed in cafe9a27e22736d4a01b3933e36225f9857c7988 (fixed)
Vendor states this is fixed in e876522659012ef2e73834a0b9f1cbe3f74d5fad (fixed)
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.10.235 (unaffected)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Affected range stops below 5.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.12.13 (unaffected)
Vendor states this is fixed in 6.13.2 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.76 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/622d92a67656e5c4d2d6ccac02d688ed995418c6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/82736bb83fb0221319c85c2e9917d0189cd84e1e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8c640dd3d900cc8988a39c007591f1deee776df4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92e5995773774a3e70257e9c95ea03518268bea5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b5a8bc47aa0a4aa8bca5466dfa2d12dbb5b3cd0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cafe9a27e22736d4a01b3933e36225f9857c7988
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e876522659012ef2e73834a0b9f1cbe3f74d5fad
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card