# CVE-2026-31539: smb: smbdirect: introduce smbdirect_socket.recv_io.credits.available

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-04-24T14:30:26.326Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

smb: smbdirect: introduce smbdirect_socket.recv_io.credits.available

The logic off managing recv credits by counting posted recv_io and
granted credits is racy.

That's because the peer might already consumed a credit,
but between receiving the incoming recv at the hardware
and processing the completion in the 'recv_done' functions
we likely have a window where we grant credits, which
don't really exist.

So we better have a decicated counter for the
available credits, which will be incremented
when we posted new recv buffers and drained when
we grant the credits to the peer.

(As written by CVE List.)

## Affected

- Linux Linux: from 5fb9b459b3686e366640edd4e62805ef7b4de927 before e811e60e1cc79923c4388146eb1fa26a7482731e; from 5fb9b459b3686e366640edd4e62805ef7b4de927 before f99996870222b598914a1f49d7375dc23752c237; from 5fb9b459b3686e366640edd4e62805ef7b4de927 before 6e3c5052f9686192e178806e017b7377155f4bab; 6.18 (not affected: before 6.18; from 6.18.11 up to 6.18.*; from 6.19.1 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.18 before 6.18.11; from 6.19 before 6.19.1

## References

- <https://git.kernel.org/stable/c/e811e60e1cc79923c4388146eb1fa26a7482731e> (patch)
- <https://git.kernel.org/stable/c/f99996870222b598914a1f49d7375dc23752c237> (patch)
- <https://git.kernel.org/stable/c/6e3c5052f9686192e178806e017b7377155f4bab> (patch)

## Sources

- CVE List: [CVE-2026-31539](https://www.cve.org/CVERecord?id=CVE-2026-31539), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-31539](https://nvd.nist.gov/vuln/detail/CVE-2026-31539), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31539 · Whole record: https://cve.day/CVE-2026-31539.json · Rebuilt by cve.day 2026-11-25T22:59:19.473Z
