{"id":"CVE-2026-31539","summary":"smb: smbdirect: introduce smbdirect_socket.recv_io.credits.available","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: introduce 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:48:50.291989470Z","published":"2026-04-24T14:30:26.326Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31539.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6e3c5052f9686192e178806e017b7377155f4bab"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e811e60e1cc79923c4388146eb1fa26a7482731e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f99996870222b598914a1f49d7375dc23752c237"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31539.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31539"},{"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":"e811e60e1cc79923c4388146eb1fa26a7482731e"},{"fixed":"f99996870222b598914a1f49d7375dc23752c237"},{"fixed":"6e3c5052f9686192e178806e017b7377155f4bab"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31539.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-31539.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}