---
id: CVE-2025-68816
title: 'net/mlx5: fw_tracer, Validate format string parameters'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  net/mlx5: fw_tracer, Validate format string parameters

  Add validation for format string parameters in the firmware tracer to
  prevent potential security vulnerabilities…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    95624b731c490a4b849844269193a233d6d556a0
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    768d559f466cdd72849110a7ecd76a21d52dcfe3
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    38ac688b52ef26a88f8bc4fe26d24fdd0ff91e5d
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    8ac688c0e430dab19f6a9b70df94b1f635612c1a
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    45bd283b1d69e2c97cddcb9956f0e0261fc4efd7
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    8c35c2448086870509ede43947845be0833251f0
  - >-
    Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 <
    b35966042d20b14e2d83330049f77deec5229749
  - Linux 4.19
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-16T19:11:19.183424Z'
published: '2026-01-13'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:43:36.141Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-68816'
references:
  - url: 'https://git.kernel.org/stable/c/95624b731c490a4b849844269193a233d6d556a0'
  - url: 'https://git.kernel.org/stable/c/768d559f466cdd72849110a7ecd76a21d52dcfe3'
  - url: 'https://git.kernel.org/stable/c/38ac688b52ef26a88f8bc4fe26d24fdd0ff91e5d'
  - url: 'https://git.kernel.org/stable/c/8ac688c0e430dab19f6a9b70df94b1f635612c1a'
  - url: 'https://git.kernel.org/stable/c/45bd283b1d69e2c97cddcb9956f0e0261fc4efd7'
  - url: 'https://git.kernel.org/stable/c/8c35c2448086870509ede43947845be0833251f0'
  - url: 'https://git.kernel.org/stable/c/b35966042d20b14e2d83330049f77deec5229749'
tags:
  - cve.org
epss: 0.00207
epssPercentile: 0.09591
ingestedAt: '2026-09-08T15:33:26.995Z'
---

## Overview

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

net/mlx5: fw_tracer, Validate format string parameters

Add validation for format string parameters in the firmware tracer to
prevent potential security vulnerabilities and crashes from malformed
format strings received from firmware.

The firmware tracer receives format strings from the device firmware and
uses them to format trace messages. Without proper validation, bad
firmware could provide format strings with invalid format specifiers
(e.g., %s, %p, %n) that could lead to crashes, or other undefined
behavior.

Add mlx5_tracer_validate_params() to validate that all format specifiers
in trace strings are limited to safe integer/hex formats (%x, %d, %i,
%u, %llx, %lx, etc.). Reject strings containing other format types that
could be used to access arbitrary memory or cause crashes.
Invalid format strings are added to the trace output for visibility with
"BAD_FORMAT: " prefix.

## Affected

- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 95624b731c490a4b849844269193a233d6d556a0`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 768d559f466cdd72849110a7ecd76a21d52dcfe3`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 38ac688b52ef26a88f8bc4fe26d24fdd0ff91e5d`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 8ac688c0e430dab19f6a9b70df94b1f635612c1a`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 45bd283b1d69e2c97cddcb9956f0e0261fc4efd7`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < 8c35c2448086870509ede43947845be0833251f0`
- `Linux >= 70dd6fdb8987b14f7b6105f6be0617299e459398 < b35966042d20b14e2d83330049f77deec5229749`
- `Linux 4.19`

## Remediation

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