CVE-2026-63860: RDMA/core: Prefer NLA_NUL_STRING
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Prefer NLA_NUL_STRING
These attributes are evaluated as c-string (passed to strcmp), but NLA_STRING doesn't check for the presence of a \0 terminator.
Either this needs to switch to nla_strcmp() and needs to adjust printf fmt specifier to not use plain %s, or this needs to use NLA_NUL_STRING.
As the code has been this way for long time, it seems to me that userspace does include the terminating nul, even tough its not enforced so far, and thus NLA_NUL_STRING use is the simpler solution.
The Linux kernel CVE team has assigned CVE-2026-63860 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 5.10.258 with commit fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 5.15.209 with commit 87111356d58d86edb221ba144d261ed83a5b8bbe Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 6.1.175 with commit abda65bdd13084c771842adaac1f652d0660dd82 Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 6.6.141 with commit 137b5918931d4d05aa8ea8d3adf67f7224eef63c Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 6.12.91 with commit 5877c043398d5fa0e93919a3d837e5cd7a98a961 Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 6.18.33 with commit f2c7b39dde2e61df8157066969cc2a408cd3dcd9 Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 7.0.10 with commit c26a0052cceed4c4d380ee5808b699f937fb58d8 Issue introduced in 3.16 with commit 30dc5e63d6a5ad24894b5512d10b228d73645a44 and fixed in 7.1 with commit 6ed3d14fc45d3da6025e7fe4a6a09066856698e2
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-63860
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/core/iwpm_msg.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/fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf https://git.kernel.org/stable/c/87111356d58d86edb221ba144d261ed83a5b8bbe https://git.kernel.org/stable/c/abda65bdd13084c771842adaac1f652d0660dd82 https://git.kernel.org/stable/c/137b5918931d4d05aa8ea8d3adf67f7224eef63c https://git.kernel.org/stable/c/5877c043398d5fa0e93919a3d837e5cd7a98a961 https://git.kernel.org/stable/c/f2c7b39dde2e61df8157066969cc2a408cd3dcd9 https://git.kernel.org/stable/c/c26a0052cceed4c4d380ee5808b699f937fb58d8 https://git.kernel.org/stable/c/6ed3d14fc45d3da6025e7fe4a6a09066856698e2