CVE-2025-68816

Source
https://cve.org/CVERecord?id=CVE-2025-68816
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68816.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68816
Downstream
Related
Published
2026-01-13T15:29:20.464Z
Modified
2026-03-20T12:46:29.998152Z
Summary
net/mlx5: fw_tracer, Validate format string parameters
Details

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 mlx5tracervalidateparams() 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 "BADFORMAT: " prefix.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68816.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
70dd6fdb8987b14f7b6105f6be0617299e459398
Fixed
95624b731c490a4b849844269193a233d6d556a0
Fixed
768d559f466cdd72849110a7ecd76a21d52dcfe3
Fixed
38ac688b52ef26a88f8bc4fe26d24fdd0ff91e5d
Fixed
8ac688c0e430dab19f6a9b70df94b1f635612c1a
Fixed
45bd283b1d69e2c97cddcb9956f0e0261fc4efd7
Fixed
8c35c2448086870509ede43947845be0833251f0
Fixed
b35966042d20b14e2d83330049f77deec5229749

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68816.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.10.248
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.198
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.160
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.120
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.64
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68816.json"