# CVE-2025-21882: net/mlx5: Fix vport QoS cleanup on error

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-03-27T14:57:10.906Z
- Modified: 2026-08-05T11:55:05.817Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from be034baba83e2a80a0b2c0f24c08547b6eedc79a before fead368502bce0e10bea7c0d2895b2fa0c6c10aa; from be034baba83e2a80a0b2c0f24c08547b6eedc79a before 7f3528f7d2f98b70e19a6bb7b130fc82c079ac54; 6.13 (not affected: before 6.13; from 6.13.6 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.13 before 6.13.6; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/fead368502bce0e10bea7c0d2895b2fa0c6c10aa> (patch)
- <https://git.kernel.org/stable/c/7f3528f7d2f98b70e19a6bb7b130fc82c079ac54> (patch)

## Sources

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

---

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