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

Published Feb 27, 2025
·
Updated

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 aedev node from hnae3aedevlist. If user unloads hns3 driver at the time, because it removes all the aedev nodes, and it may cause oops.

But we can't simply use hnae3commonlock for this. Because in the process flow of pcidisablesriov(), it will trigger the remove flow of VF, which will also take hnae3commonlock.

To fixes it, introduce a new mutex to protect the unload process.

Affected Software

12 affected components
Linux Kernel
Linux Linux kernel>=4.19.214<4.20
Linux Linux kernel>=5.4.156<5.5
Linux Linux kernel>=5.10.76<5.10.235
Linux Linux kernel>=5.14.15<5.15
Linux Linux kernel>=5.15.1<5.15.179
Linux Linux kernel>=5.16<6.1.129
Linux Linux kernel>=6.2<6.6.76
Linux Linux kernel>=6.7<6.12.13
Linux Linux kernel>=6.13<6.13.2
Linux Linux kernel=5.15
Linux Linux kernel=5.15-rc7

Event History

Feb 27, 2025
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21802?

CVE-2025-21802 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-21802?

To fix CVE-2025-21802, update your Linux kernel to the latest version that addresses this vulnerability.

3

What causes CVE-2025-21802?

CVE-2025-21802 is caused by a race condition when unloading the hclge driver while the hns3 driver is active.

4

Which versions of the Linux kernel are affected by CVE-2025-21802?

CVE-2025-21802 affects specific versions of the Linux kernel that include the vulnerable hns3 and hclge drivers.

5

Is CVE-2025-21802 exploitable in production environments?

CVE-2025-21802 can potentially be exploited in production environments, particularly during driver unloading procedures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203