# CVE-2025-21975: net/mlx5: handle errors in mlx5\_chains\_create\_table()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-01 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2025-21975, DEBIAN-CVE-2025-21975
- Record: https://cvemate.com/vulnerability/CVE-2025-21975 · JSON: https://cvemate.com/vulnerability/CVE-2025-21975/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.212%, percentile 12.178%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 129)

- debian linux (Debian): \< 6.1.133-1 \| \< 6.12.20-1
- ubuntu linux (Ubuntu): \< 5.15.0-142.152 \| \< 6.8.0-84.84
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1086.93 \| \< 6.8.0-1039.41
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1039.41~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1039.41+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1091.100 \| \< 6.8.0-1038.44
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1091.100~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 44)

- <https://git.kernel.org/stable/c/15bdd93728369b2c8942a8e5d549d4b5dc04a2d9>
- <https://git.kernel.org/stable/c/29c419c64e9b396baeda1d8713d2aa3ba7c0acf6>
- <https://git.kernel.org/stable/c/1598307c914ba3d2642a2b03d1ff11efbdb7c6c2>
- <https://git.kernel.org/stable/c/637105ef0d46fe5beac15aceb431da3ec832bb00>
- <https://git.kernel.org/stable/c/1d34296409a519b4027750e3e82d9e19553a7398>
- <https://git.kernel.org/stable/c/093b4aaec97ec048623e3fe1e516fc45a954d412>
- <https://git.kernel.org/stable/c/eab0396353be1c778eba1c0b5180176f04dd21ce>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-21975>
- <https://www.cve.org/CVERecord?id=CVE-2025-21975>
- <https://git.kernel.org/linus/eab0396353be1c778eba1c0b5180176f04dd21ce>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>
- <https://ubuntu.com/security/notices/USN-7593-1>
- <https://ubuntu.com/security/notices/USN-7591-4>
- <https://ubuntu.com/security/notices/USN-7597-1>
- <https://ubuntu.com/security/notices/USN-7597-2>

---

Data as of 2026-12-05T04:45:15.526Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
