---
id: CVE-2025-21882
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net/mlx5: Fix vport QoS cleanup on error

  When enabling vport QoS fails, the scheduling node was never freed,
  causing a leak.

  Add the missing free and reset the vport …
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net/mlx5: Fix vport QoS cleanup on error

  When enabling vport QoS fails, the scheduling node was never freed,
  causing a leak.

  Add the missing free and reset the vport …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-401
  - CWE-772
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 6.13, < 6.13.6'
  - linux_kernel = 6.14
patched:
  - linux_kernel 6.13.6
published: '2025-03-27'
updated: '2026-07-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21882'
references:
  - url: 'https://git.kernel.org/stable/c/7f3528f7d2f98b70e19a6bb7b130fc82c079ac54'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fead368502bce0e10bea7c0d2895b2fa0c6c10aa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21882.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-21882'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2355413'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-21882'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21882'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2025032712-CVE-2025-21882-cc4d@gregkh/T
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00185
epssPercentile: 0.07998
ingestedAt: '2026-07-30T06:53:10.675Z'
scores:
  nvd: 7.8
  vendor: 3.3
---

## Overview

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

net/mlx5: Fix vport QoS cleanup on error

When enabling vport QoS fails, the scheduling node was never freed,
causing a leak.

Add the missing free and reset the vport scheduling node pointer to
NULL.

## Affected

- `linux_kernel >= 6.13, < 6.13.6`
- `linux_kernel = 6.14`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.13.6`

## Vendor advisories

- **Red Hat VEX** · Low · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21882.json)
