CVE-2025-40342: nvme-fc: use lock accessing port_state and rport state

Published Dec 9, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

nvme-fc: use lock accessing portstate and rport state

nvmefcunregisterremote removes the remote port on a lport object at any point in time when there is no active association. This races with with the reconnect logic, because nvmefccreateassociation is not taking a lock to check the portstate and atomically increase the active count on the rport.

Affected Software

2 affected componentsFixes available
linux/kernel
Microsoft azl3 kernel 6.6.112.1-2

Event History

Dec 9, 2025
CVE Published
via MITRE·04:09 AM
Data Sourced
via MITRE·04:09 AM
DescriptionSeverity
Data Sourced
via NVD·04:17 PM
DescriptionSeverity
Dec 10, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-40342?

CVE-2025-40342 has been classified as medium severity due to potential race conditions in the NVMe over Fibre Channel driver.

2

How do I fix CVE-2025-40342?

To fix CVE-2025-40342, update the Linux kernel to the latest version that includes the patch addressing this vulnerability.

3

What components are affected by CVE-2025-40342?

CVE-2025-40342 affects the NVMe over Fibre Channel (nvme-fc) component of the Linux kernel.

4

Is CVE-2025-40342 exploitable?

CVE-2025-40342 can be exploited if an attacker can trigger race conditions during remote port management, leading to potential system instability.

5

When was CVE-2025-40342 disclosed?

CVE-2025-40342 was disclosed alongside updates in kernel versions that include fixes for this vulnerability.

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