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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-04-01T15:47:06.590Z
- Modified: 2026-11-05T21:17:46.967Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net/mlx5: handle errors in mlx5_chains_create_table()

In mlx5_chains_create_table(), the return value of mlx5_get_fdb_sub_ns()
and mlx5_get_flow_namespace() must be checked to prevent NULL pointer
dereferences. If either function fails, the function should log error
message with mlx5_core_warn() and return error pointer.

(As written by CVE List.)

## Affected

- Linux Linux: from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 15bdd93728369b2c8942a8e5d549d4b5dc04a2d9; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 29c419c64e9b396baeda1d8713d2aa3ba7c0acf6; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 1598307c914ba3d2642a2b03d1ff11efbdb7c6c2; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 637105ef0d46fe5beac15aceb431da3ec832bb00; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 1d34296409a519b4027750e3e82d9e19553a7398; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before 093b4aaec97ec048623e3fe1e516fc45a954d412; from 39ac237ce00968545e7298faa9e07ecb7e440fb5 before eab0396353be1c778eba1c0b5180176f04dd21ce; 5.6 (not affected: before 5.6; from 5.10.236 up to 5.10.*; from 5.15.180 up to 5.15.*; from 6.1.132 up to 6.1.*; from 6.6.84 up to 6.6.*; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.6 before 5.10.236; from 5.11 before 5.15.180; from 5.16 before 6.1.132; from 6.2 before 6.6.84; from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14

## References

- <https://git.kernel.org/stable/c/15bdd93728369b2c8942a8e5d549d4b5dc04a2d9> (patch)
- <https://git.kernel.org/stable/c/29c419c64e9b396baeda1d8713d2aa3ba7c0acf6> (patch)
- <https://git.kernel.org/stable/c/1598307c914ba3d2642a2b03d1ff11efbdb7c6c2> (patch)
- <https://git.kernel.org/stable/c/637105ef0d46fe5beac15aceb431da3ec832bb00> (patch)
- <https://git.kernel.org/stable/c/1d34296409a519b4027750e3e82d9e19553a7398> (patch)
- <https://git.kernel.org/stable/c/093b4aaec97ec048623e3fe1e516fc45a954d412> (patch)
- <https://git.kernel.org/stable/c/eab0396353be1c778eba1c0b5180176f04dd21ce> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-21975](https://www.cve.org/CVERecord?id=CVE-2025-21975), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-21975](https://nvd.nist.gov/vuln/detail/CVE-2025-21975), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-21975 · Whole record: https://cve.day/CVE-2025-21975.json · Rebuilt by cve.day 2026-11-25T22:58:55.918Z
