CVE-2026-31539

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

Published Apr 24, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw is a race condition in the Linux kernel’s SMB Direct implementation, where the module mishandles the tracking of receive credits. It may grant credits that have already been consumed by a peer, potentially leading to resource exhaustion or incorrect data handling. The weakness is classified as a race condition (CWE‑362) that affects SMB Direct credit management, and also intersects with kernel‑specific race conditions (CWE‑821).

Affected Systems

All Linux kernels that ship SMB Direct support, across all distributions, are potentially affected. No specific version range is listed, so any kernel lacking the fix commits remains vulnerable.

Risk and Exploitability

With a CVSS score of 7.5 the vulnerability is considered high severity, however the EPSS score of less than 1 % indicates a low probability of exploitation. It is not currently listed in the CISA KEV catalog. An attacker would need to interact with the SMB Direct protocol on a target system, likely from the network, to exploit the race window and stress the connection or cause a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Linux kernel release that includes the SMB Direct receive‑credit fix (e.g., apply the patch containing the commit that introduces smbdirect_socket.recv_io.credits.available counter).
  • If an immediate kernel upgrade is not possible, recompile the kernel with SMB Direct support disabled (CONFIG_SMB_DIRECT=y disabled) or set any available kernel boot parameters that limit SMB Direct operation until the patch is applied.
  • Monitor SMB traffic for abnormal credit or error patterns, and apply network segmentation or firewall rules to restrict SMB Direct traffic to trusted hosts as an interim protective measure.

Generated by OpenCVE AI on October 23, 2026 at 08:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
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.
Title smb: smbdirect: introduce smbdirect_socket.recv_io.credits.available
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-821

    Incorrect Synchronization

  • NVD-CWE-noinfo

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 6:55 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Modified
Published
Apr 24, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 24, 2026, 12:00 AM