Linux
RDMA/core: Prefer NLA_NUL_STRING
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 87111356d58d86edb221ba144d261ed83a5b8bbe
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < abda65bdd13084c771842adaac1f652d0660dd82
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 137b5918931d4d05aa8ea8d3adf67f7224eef63c
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 5877c043398d5fa0e93919a3d837e5cd7a98a961
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < f2c7b39dde2e61df8157066969cc2a408cd3dcd9
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < c26a0052cceed4c4d380ee5808b699f937fb58d8
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 6ed3d14fc45d3da6025e7fe4a6a09066856698e2
Fixed in fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf, 87111356d58d86edb221ba144d261ed83a5b8bbe, abda65bdd13084c771842adaac1f652d0660dd82, 137b5918931d4d05aa8ea8d3adf67f7224eef63c, 5877c043398d5fa0e93919a3d837e5cd7a98a961, f2c7b39dde2e61df8157066969cc2a408cd3dcd9, c26a0052cceed4c4d380ee5808b699f937fb58d8, 6ed3d14fc45d3da6025e7fe4a6a09066856698e2
- 3.16
Fixed in 0, 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1
Mitigation
Upgrade Linux to fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf or 87111356d58d86edb221ba144d261ed83a5b8bbe or abda65bdd13084c771842adaac1f652d0660dd82 or 137b5918931d4d05aa8ea8d3adf67f7224eef63c or 5877c043398d5fa0e93919a3d837e5cd7a98a961 or f2c7b39dde2e61df8157066969cc2a408cd3dcd9 or c26a0052cceed4c4d380ee5808b699f937fb58d8 or 6ed3d14fc45d3da6025e7fe4a6a09066856698e2 or later.
Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.