---
id: CVE-2025-21975
title: 'net/mlx5: handle errors in mlx5_chains_create_table()'
summary: "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: handle errors in mlx5_chains_create_table()\n\nIn mlx5_chains_create_table(), the return value of\_mlx5_get_fdb_sub_ns()\nand mlx5_get_flow_namespace() must be ch…"
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    15bdd93728369b2c8942a8e5d549d4b5dc04a2d9
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    29c419c64e9b396baeda1d8713d2aa3ba7c0acf6
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    1598307c914ba3d2642a2b03d1ff11efbdb7c6c2
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    637105ef0d46fe5beac15aceb431da3ec832bb00
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    1d34296409a519b4027750e3e82d9e19553a7398
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    093b4aaec97ec048623e3fe1e516fc45a954d412
  - >-
    Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 <
    eab0396353be1c778eba1c0b5180176f04dd21ce
  - Linux 5.6
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:37:19.893866Z'
published: '2025-04-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:41:48.550Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-21975'
references:
  - url: 'https://git.kernel.org/stable/c/15bdd93728369b2c8942a8e5d549d4b5dc04a2d9'
  - url: 'https://git.kernel.org/stable/c/29c419c64e9b396baeda1d8713d2aa3ba7c0acf6'
  - url: 'https://git.kernel.org/stable/c/1598307c914ba3d2642a2b03d1ff11efbdb7c6c2'
  - url: 'https://git.kernel.org/stable/c/637105ef0d46fe5beac15aceb431da3ec832bb00'
  - url: 'https://git.kernel.org/stable/c/1d34296409a519b4027750e3e82d9e19553a7398'
  - url: 'https://git.kernel.org/stable/c/093b4aaec97ec048623e3fe1e516fc45a954d412'
  - url: 'https://git.kernel.org/stable/c/eab0396353be1c778eba1c0b5180176f04dd21ce'
tags:
  - cve.org
epss: 0.00211
epssPercentile: 0.11445
ingestedAt: '2026-11-05T22:38:31.857Z'
---

## Overview

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.

## Affected

- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 15bdd93728369b2c8942a8e5d549d4b5dc04a2d9`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 29c419c64e9b396baeda1d8713d2aa3ba7c0acf6`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 1598307c914ba3d2642a2b03d1ff11efbdb7c6c2`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 637105ef0d46fe5beac15aceb431da3ec832bb00`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 1d34296409a519b4027750e3e82d9e19553a7398`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < 093b4aaec97ec048623e3fe1e516fc45a954d412`
- `Linux >= 39ac237ce00968545e7298faa9e07ecb7e440fb5 < eab0396353be1c778eba1c0b5180176f04dd21ce`
- `Linux 5.6`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
