RDMA/core: Prefer NLA_NUL_STRING
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in 87111356d58d86edb221ba144d261ed83a5b8bbe; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in abda65bdd13084c771842adaac1f652d0660dd82; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in 137b5918931d4d05aa8ea8d3adf67f7224eef63c; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in 5877c043398d5fa0e93919a3d837e5cd7a98a961; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in f2c7b39dde2e61df8157066969cc2a408cd3dcd9; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in c26a0052cceed4c4d380ee5808b699f937fb58d8; From 30dc5e63d6a5ad24894b5512d10b228d73645a44 · fixed in 6ed3d14fc45d3da6025e7fe4a6a09066856698e2
- Linux Linux
3.16
- KernelLinux
From 3.16.0 · fixed in 5.10.258; From 5.11.0 · fixed in 5.15.209; From 5.16.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.141; From 6.7.0 · fixed in 6.12.91; From 6.13.0 · fixed in 6.18.33; From 6.19.0 · fixed in 7.0.10
References 8
git.kernel.org
- stable/c/fcd07d3b8ee7a39b344d73aed69c1a68cd9eacdf
- stable/c/87111356d58d86edb221ba144d261ed83a5b8bbe
- stable/c/abda65bdd13084c771842adaac1f652d0660dd82
- stable/c/137b5918931d4d05aa8ea8d3adf67f7224eef63c
- stable/c/5877c043398d5fa0e93919a3d837e5cd7a98a961
- stable/c/f2c7b39dde2e61df8157066969cc2a408cd3dcd9
- stable/c/c26a0052cceed4c4d380ee5808b699f937fb58d8
- stable/c/6ed3d14fc45d3da6025e7fe4a6a09066856698e2