{"id":"CVE-2026-31535","state":"PUBLISHED","title":"smb: client: make use of smbdirect_socket.recv_io.credits.available","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: make use of smbdirect_socket.recv_io.credits.available\n\nThe logic off managing recv credits by counting posted recv_io and\ngranted credits is racy.\n\nThat's because the peer might already consumed a credit,\nbut between receiving the incoming recv at the hardware\nand processing the completion in the 'recv_done' functions\nwe likely have a window where we grant credits, which\ndon't really exist.\n\nSo we better have a decicated counter for the\navailable credits, which will be incremented\nwhen we posted new recv buffers and drained when\nwe grant the credits to the peer.","publishedAt":"2026-04-24T14:30:23.540Z","updatedAt":"2026-05-11T22:10:39.307Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"f664e6e8a81103cb45c8802a9bc7499e0902c458","versionType":"git"},{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"be8845ad5d6558703d20567d8702155598325db8","versionType":"git"},{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"9911b1ed187a770a43950bf51f340ad4b7beecba","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smbdirect.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.11","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.1","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smbdirect.c"]}],"references":["https://git.kernel.org/stable/c/f664e6e8a81103cb45c8802a9bc7499e0902c458","https://git.kernel.org/stable/c/be8845ad5d6558703d20567d8702155598325db8","https://git.kernel.org/stable/c/9911b1ed187a770a43950bf51f340ad4b7beecba"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31535.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31535","state":"PUBLISHED","datePublished":"2026-04-24T14:30:23.540Z","dateUpdated":"2026-05-11T22:10:39.307Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.113Z"},"containers":{"cna":{"title":"smb: client: make use of smbdirect_socket.recv_io.credits.available","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: make use of smbdirect_socket.recv_io.credits.available\n\nThe logic off managing recv credits by counting posted recv_io and\ngranted credits is racy.\n\nThat's because the peer might already consumed a credit,\nbut between receiving the incoming recv at the hardware\nand processing the completion in the 'recv_done' functions\nwe likely have a window where we grant credits, which\ndon't really exist.\n\nSo we better have a decicated counter for the\navailable credits, which will be incremented\nwhen we posted new recv buffers and drained when\nwe grant the credits to the peer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"f664e6e8a81103cb45c8802a9bc7499e0902c458","versionType":"git"},{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"be8845ad5d6558703d20567d8702155598325db8","versionType":"git"},{"version":"5fb9b459b3686e366640edd4e62805ef7b4de927","status":"affected","lessThan":"9911b1ed187a770a43950bf51f340ad4b7beecba","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smbdirect.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.11","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.1","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smbdirect.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f664e6e8a81103cb45c8802a9bc7499e0902c458"},{"url":"https://git.kernel.org/stable/c/be8845ad5d6558703d20567d8702155598325db8"},{"url":"https://git.kernel.org/stable/c/9911b1ed187a770a43950bf51f340ad4b7beecba"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:10:39.307Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.19.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}