CVE-2025-21975: net/mlx5: handle errors in mlx5_chains_create_table()

Published Apr 1, 2025
·
Updated

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

net/mlx5: handle errors in mlx5chainscreatetable()

In mlx5chainscreatetable(), the return value of mlx5getfdbsubns() and mlx5getflownamespace() must be checked to prevent NULL pointer dereferences. If either function fails, the function should log error message with mlx5corewarn() and return error pointer.

Affected Software

14 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.6<5.10.236
Linux Linux kernel>=5.11<5.15.180
Linux Linux kernel>=5.16<6.1.132
Linux Linux kernel>=6.2<6.6.84
Linux Linux kernel>=6.7<6.12.20
Linux Linux kernel>=6.13<6.13.8
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5
Linux Linux kernel=6.14-rc6
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In mlx5_chains_create_table(), check the return values of mlx5_get_fdb_sub_ns() and mlx5_get_flow_namespace(); if either fails, log an error with mlx5_core_warn() and return an error pointer to prevent NULL pointer dereferences.

Event History

Apr 1, 2025
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-21975?

CVE-2025-21975 is classified as a medium severity vulnerability due to the potential for NULL pointer dereferences in the Linux kernel.

2

How do I fix CVE-2025-21975?

To fix CVE-2025-21975, update your Linux kernel to a version where this vulnerability has been resolved.

3

What are the potential impacts of CVE-2025-21975?

The potential impact of CVE-2025-21975 includes system instability or crashes due to NULL pointer dereferences.

4

Which versions of the Linux Kernel are affected by CVE-2025-21975?

CVE-2025-21975 affects multiple versions of the Linux kernel that include the flawed mlx5_chains_create_table() function.

5

Is CVE-2025-21975 related to network security?

Yes, CVE-2025-21975 is related to network security as it involves flow management functions within the Linux kernel.

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