Not scored
net/mlx5: fw_tracer, Validate format string parameters
- Severity
- Not scored
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 95624b731c490a4b849844269193a233d6d556a0, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 768d559f466cdd72849110a7ecd76a21d52dcfe3, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 38ac688b52ef26a88f8bc4fe26d24fdd0ff91e5d, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 8ac688c0e430dab19f6a9b70df94b1f635612c1a, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 45bd283b1d69e2c97cddcb9956f0e0261fc4efd7, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before 8c35c2448086870509ede43947845be0833251f0, from 70dd6fdb8987b14f7b6105f6be0617299e459398 before b35966042d20b14e2d83330049f77deec5229749, 4.19 Not affected: before 4.19, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.64 up to 6.12.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/mlx5: fw_tracer, Validar parámetros de cadena de formato Añadir validación para los parámetros de cadena de formato en el trazador de firmware para prevenir posibles vulnerabilidades de seguridad y fallos causados por cadenas de formato malformadas recibidas del firmware. El trazador de firmware recibe cadenas de formato del firmware del dispositivo y las utiliza para formatear mensajes de traza. Sin una validación adecuada, un firmware defectuoso podría proporcionar cadenas de formato con especificadores de formato inválidos (p. ej., %s, %p, %n) que podrían provocar fallos u otro comportamiento indefinido. Añadir mlx5_tracer_validate_params() para validar que todos los especificadores de formato en las cadenas de traza estén limitados a formatos seguros de entero/hexadecimal (p. ej., %x, %d, %i, %u, %llx, %lx, etc.). Rechazar cadenas que contengan otros tipos de formato que podrían utilizarse para acceder a memoria arbitraria o causar fallos. Las cadenas de formato inválidas se añaden a la salida de traza para visibilidad con el prefijo 'BAD_FORMAT: '.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68816 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-68816 changed 2026-11-10 | Public domain |