{"id":"CVE-2026-99388","aliases":[],"title":"smb: smbdirect: fix buffer length underflow in RDMA transfers","originalDescription":"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.","severity":{"cvss":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00711,"percentile":0.54903},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=5.15.145, <5.15.226","fixed":"5.15.226"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.145, <5.16","fixed":"5.16"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.52, <6.1.193","fixed":"6.1.193"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.52, <6.2","fixed":"6.2"},{"ecosystem":"vendor","name":"Linux","range":">=6.4.15, <6.5","fixed":"6.5"},{"ecosystem":"vendor","name":"Linux","range":">=6.5.2, <6.6","fixed":"6.6"},{"ecosystem":"vendor","name":"Linux","range":">=c5aa74449a41d9c10900d82d2c2e62d5462ef932, <94b94000981c56aa01e9ca2b411dff15600c079c","fixed":"94b94000981c56aa01e9ca2b411dff15600c079c"},{"ecosystem":"vendor","name":"Linux","range":">=cf859267e639cff1f525bd050f370ea752cc25f7, <2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76","fixed":"2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76"},{"ecosystem":"vendor","name":"Linux","range":">=e628bf939aafb61fbc56e9bdac8795cea5127e25, <1f5c774488fa2dabe6667cb26888aaea39c4ead6","fixed":"1f5c774488fa2dabe6667cb26888aaea39c4ead6"},{"ecosystem":"vendor","name":"Linux","range":">=e628bf939aafb61fbc56e9bdac8795cea5127e25, <5072f32330c71de91c1a844e7becaee48d743561","fixed":"5072f32330c71de91c1a844e7becaee48d743561"},{"ecosystem":"vendor","name":"Linux","range":">=e628bf939aafb61fbc56e9bdac8795cea5127e25, <7193241a49c958782ba4b8df06da3734d1e317d2","fixed":"7193241a49c958782ba4b8df06da3734d1e317d2"},{"ecosystem":"vendor","name":"Linux","range":">=e628bf939aafb61fbc56e9bdac8795cea5127e25, <956968544ae647aa9a9534b58735f47922c85d44","fixed":"956968544ae647aa9a9534b58735f47922c85d44"},{"ecosystem":"vendor","name":"Linux","range":">=e628bf939aafb61fbc56e9bdac8795cea5127e25, <a1a44af9fd0555755a81ca0c201f681572471d05","fixed":"a1a44af9fd0555755a81ca0c201f681572471d05"}],"references":[{"url":"https://git.kernel.org/stable/c/5072f32330c71de91c1a844e7becaee48d743561","type":"other"},{"url":"https://git.kernel.org/stable/c/1f5c774488fa2dabe6667cb26888aaea39c4ead6","type":"other"},{"url":"https://git.kernel.org/stable/c/956968544ae647aa9a9534b58735f47922c85d44","type":"other"},{"url":"https://git.kernel.org/stable/c/7193241a49c958782ba4b8df06da3734d1e317d2","type":"other"},{"url":"https://git.kernel.org/stable/c/94b94000981c56aa01e9ca2b411dff15600c079c","type":"other"},{"url":"https://git.kernel.org/stable/c/2e4a60ba7adc1e7529f8923a8b1e452c6ba53c76","type":"other"},{"url":"https://git.kernel.org/stable/c/a1a44af9fd0555755a81ca0c201f681572471d05","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.103Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99388","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:47.933Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:53.004Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99388","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:35.281Z"}],"firstSeenAt":"2026-11-19T15:00:35.281Z","publishedAt":"2026-11-19T14:23:27.698Z","modifiedAt":"2026-11-23T08:17:43.523Z"}