{"id":"CVE-2026-31535","summary":"smb: client: make use of smbdirect_socket.recv_io.credits.available","details":"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.","modified":"2026-07-15T01:49:09.346182723Z","published":"2026-04-24T14:30:23.540Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31535.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9911b1ed187a770a43950bf51f340ad4b7beecba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be8845ad5d6558703d20567d8702155598325db8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f664e6e8a81103cb45c8802a9bc7499e0902c458"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31535.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31535"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5fb9b459b3686e366640edd4e62805ef7b4de927"},{"fixed":"f664e6e8a81103cb45c8802a9bc7499e0902c458"},{"fixed":"be8845ad5d6558703d20567d8702155598325db8"},{"fixed":"9911b1ed187a770a43950bf51f340ad4b7beecba"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31535.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31535.json"}}],"schema_version":"1.7.5"}