{"id":"CVE-2026-99388","aliases":["CVE-2026-99388"],"related":[],"kind":"vulnerability","state":"published","title":"smb: smbdirect: fix buffer length underflow in RDMA transfers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: fix buffer length underflow in RDMA transfers\n\nWhen a remote buffer descriptor is larger than the remaining local\nbuffer, smbdirect_connection_rdma_xmit() clamps its length and sets\nbuf_len to zero. The common accounting code then subtracts the clamped\nlength from buf_len, causing it to underflow. If another descriptor\nfollows, the loop processes it with a wrapped remaining length and\nincludes memory beyond the local buffer in the RDMA transfer.\n\nA client can trigger an out-of-bounds kernel write with an SMB WRITE\nrequest, or an out-of-bounds kernel read with an SMB READ request, by\nsupplying multiple RDMA buffer descriptors with an oversized descriptor\nbefore the last one.\n\nRemove the premature assignment to buf_len. Subtracting the clamped length\nalready consumes the remaining buffer, so the next iteration stops and\nonly descriptors within the local buffer are used to build work requests.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: fix buffer length underflow in RDMA transfers\n\nWhen a remote buffer descriptor is larger than the remaining local\nbuffer, smbdirect_connection_rdma_xmit() clamps its length and sets\nbuf_len to zero. The common accounting code then subtracts the clamped\nlength from buf_len, causing it to underflow. If another descriptor\nfollows, the loop processes it with a wrapped remaining length and\nincludes memory beyond the local buffer in the RDMA transfer.\n\nA client can trigger an out-of-bounds kernel write with an SMB WRITE\nrequest, or an out-of-bounds kernel read with an SMB READ request, by\nsupplying multiple RDMA buffer descriptors with an oversized descriptor\nbefore the last one.\n\nRemove the premature assignment to buf_len. Subtracting the clamped length\nalready consumes the remaining buffer, so the next iteration stops and\nonly descriptors within the local buffer are used to build work requests.","source":"cvelist"}],"published":"2026-11-19T14:23:27.698Z","modified":"2026-11-23T08:17:43.523Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c5aa74449a41d9c10900d82d2c2e62d5462ef932","fixed":"94b94000981c56aa01e9ca2b411dff15600c079c","status":"affected"},{"type":"git","introduced":"cf859267e639cff1f525bd050f370ea752cc25f7","fixed":"2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76","status":"affected"},{"type":"git","introduced":"e628bf939aafb61fbc56e9bdac8795cea5127e25","fixed":"a1a44af9fd0555755a81ca0c201f681572471d05","status":"affected"},{"type":"git","introduced":"e628bf939aafb61fbc56e9bdac8795cea5127e25","fixed":"5072f32330c71de91c1a844e7becaee48d743561","status":"affected"},{"type":"git","introduced":"e628bf939aafb61fbc56e9bdac8795cea5127e25","fixed":"1f5c774488fa2dabe6667cb26888aaea39c4ead6","status":"affected"},{"type":"git","introduced":"e628bf939aafb61fbc56e9bdac8795cea5127e25","fixed":"956968544ae647aa9a9534b58735f47922c85d44","status":"affected"},{"type":"git","introduced":"e628bf939aafb61fbc56e9bdac8795cea5127e25","fixed":"7193241a49c958782ba4b8df06da3734d1e317d2","status":"affected"},{"type":"git","version":"1c660940f525279bb23b5d99a591535e7c359efe","status":"affected"},{"type":"git","version":"ebdb872897dbb2425b6c9f7b7e2f5d9a8042a76a","status":"affected"},{"type":"semver","introduced":"5.15.145","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.52","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"6.4.15","fixed":"6.5","status":"affected"},{"type":"semver","introduced":"6.5.2","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/94b94000981c56aa01e9ca2b411dff15600c079c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1a44af9fd0555755a81ca0c201f681572471d05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99388","url":"https://www.cve.org/CVERecord?id=CVE-2026-99388","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:16.232Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99388","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99388","licence":"Public domain","modified":"2026-11-23T08:17:43.523Z"}],"updatedAt":"2026-11-25T22:59:52.053Z","epss":{"score":0.00711,"percentile":0.54765,"date":"2026-12-01T12:00:22.000Z"}}