Skip to contentSkip to conversation

CVE-2026-90416: RDMA/mlx5: Fix stack out-of-bounds read in cc_params debugfs

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

RDMA/mlx5: Fix stack out-of-bounds read in cc_params debugfs

get_param() reads a congestion parameter as a u32 but formats it with the signed "%d" into an 11-byte stack buffer. A value with bit 31 set, such as 0x80000000, renders as "-2147483648\n" whose full length is 12. snprintf() stores only 11 bytes yet returns 12, so simple_read_from_buffer() treats 12 bytes as valid and reads one byte past lbuf[].

Size the buffer for the widest unsigned decimal, format with "%u" to match the u32, and use scnprintf() so the length passed to simple_read_from_buffer() reflects the bytes actually stored.

The Linux kernel CVE team has assigned CVE-2026-90416 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 5.10.270 with commit 1c5b4f76cd73372c5a8a4c91c95d5a31f141e091
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 5.15.221 with commit 06b62758f81e27ca4c81201c22e3436c6d9ac894
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 6.1.188 with commit d809cf3f0ed9255abfc73c4730bcf187151422af
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 6.6.157 with commit 0b0122fcc923a0271130f5fb71af2cd7e20434d9
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 6.12.110 with commit ce8dfd32a33b578c3abf178f67b4c8d36854f041
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 6.18.52 with commit 4599311e78e88c893ad551aca622de2bfdf1c31f
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 7.2.6 with commit c75ee076fa09778a2f9602a972dade4a0b0785f7
	Issue introduced in 4.14 with commit 4a2da0b8c0782816f3ae6846ae7942fcbb0f8172 and fixed in 7.3-rc1 with commit 03826bc1fa6c90405bf05831f2b501a8368dcd27

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90416

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/infiniband/hw/mlx5/cong.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/1c5b4f76cd73372c5a8a4c91c95d5a31f141e091
	https://git.kernel.org/stable/c/06b62758f81e27ca4c81201c22e3436c6d9ac894
	https://git.kernel.org/stable/c/d809cf3f0ed9255abfc73c4730bcf187151422af
	https://git.kernel.org/stable/c/0b0122fcc923a0271130f5fb71af2cd7e20434d9
	https://git.kernel.org/stable/c/ce8dfd32a33b578c3abf178f67b4c8d36854f041
	https://git.kernel.org/stable/c/4599311e78e88c893ad551aca622de2bfdf1c31f
	https://git.kernel.org/stable/c/c75ee076fa09778a2f9602a972dade4a0b0785f7
	https://git.kernel.org/stable/c/03826bc1fa6c90405bf05831f2b501a8368dcd27