data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2025-39933 in the interactive tracker

CVE-2025-39933

smb: client: let recv_done verify data_offset, data_length and remaining_data_length

9.4 EPSS 0.2% AV:N

Published 2025-10-04 (12 months ago) by the Linux kernel CNA. Subsystem fs/smb. Debian urgency: not yet assigned.

Debian does not build this code. The per-release build detail is under "Where it lives" below.

What to do, per Debian release

Debian's own status for CVE-2025-39933 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixievulnerable6.12.113-1No fix published anywhere yet, neither in Debian nor upstream for the series trixie tracks. Watch the Debian tracker page for this CVE. Advisories for trixie have historically landed a median of 11 days after publication.
Debian 14forkyfixed6.16.9-1Update the kernel and reboot. Fixed in 6.16.9-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.16.9-1Update the kernel and reboot. Fixed in 6.16.9-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

This is inspired by the related server fixes.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

fs/smb/client/smbdirect.c

What this is
SMBDIRECT (RDMA Stream Transport with Read/Write-Offload, MS-SMBD)MAINTAINERS section matched on fs/smb/client/smbdirect.* · linux-cifs@vger.kernel.org · Maintained
Kernel module
none to look for. The file would have gone into cifs, and Debian does not compile it into that module, so finding cifs in lsmod would say nothing about this CVE.

Check it on the machine

grep -wE 'CONFIG_CIFS|CONFIG_CIFS_SMB_DIRECT|CONFIG_SMBFS' /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

Show whether Debian builds this, per release

Debian does not build this code. In 4 releases below, every kernel flavour Debian publishes has the switch off, so the vulnerable file is compiled into no kernel binary Debian ships.

  • bookworm, trixie, forky, sidn
n
not enabled on any flavour - this release does not build the code
Build switches
CONFIG_CIFS, CONFIG_CIFS_SMB_DIRECT, CONFIG_SMBFS
Reads as
all on means the file is compiled; any one off means it is not.

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2025-10-04 (12 months ago)source
CVSS
9.4 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:Hsource recompute it
Attack vector
network (AV:N)source
EPSS
0.21%, higher than 10.6% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
fs/smb

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
4.166.16.9581fb78e0388
4.166.17f57e53ea2523

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:NAttack vector, network
The vulnerable code parses `smbdirect_data_transfer` headers received directly from a remote SMB server over RDMA, and iWARP/RoCEv2 are routable over ordinary IP networks (soft-iWARP/soft-RoCE need no special hardware). A malicious, compromised, or spoofed SMB Direct peer reaches `recv_done()` purely over the network.
AC:LAttack complexity, low
The attacker writes `data_offset`/`data_length` as plain header fields in a single crafted data-transfer message; there is no race, no memory-layout precondition, and the out-of-bounds read is deterministic and repeatable at an offset of the attacker's choosing.
PR:NPrivileges required, none
`recv_done()` switches to `SMBDIRECT_EXPECT_DATA_TRANSFER` as soon as the unauthenticated transport-level SMBD negotiate completes, so the malformed packet is processed before SMB2 NEGOTIATE/SESSION_SETUP and before any signing or encryption is established — the peer needs no credentials on the client.
UI:NUser interaction, none
Once an SMB Direct mount exists (including automounts, fstab, DFS referrals, and automatic reconnects), a hostile or compromised server can send the crafted frame at any time and the client processes it automatically in its receive-completion and demultiplex paths. No administrator or user action is required at the moment of attack.
S:UScope, unchanged
The out-of-bounds access, the disclosed data, and the resulting fault are all confined to the client kernel's own security authority; no hypervisor, IOMMU, or sandbox boundary is crossed.
C:HConfidentiality impact, high
The unvalidated 32-bit `data_offset` makes `copy_to_iter()` read from an attacker-chosen address up to 4 GiB past a ~2 KB receive-buffer slab object, and the inflated `data_length` keeps that buffer at the queue head so `offset` advances on each call — allowing a remote peer to stream out large amounts of kernel memory, which is then delivered to userspace as SMB response/file content.
I:LIntegrity impact, low
There is no out-of-bounds write, but the client assembles and parses SMB2 responses built from out-of-bounds kernel memory, so connection state, file metadata, and page-cache contents returned to applications are driven by data the attacker caused the kernel to read from outside the intended buffer.
A:HAvailability impact, high
A large `data_offset` faults on unmapped memory or a vmalloc guard page in the demultiplex/softirq path, and an inflated `data_length` desynchronizes `reassembly.data_length` so `_get_first_reassembly()` returns NULL and is immediately dereferenced — either way an oops (full panic with `panic_on_oops`) that tears down the mount.