CVE-2026-99295

smb: client: stop processing a read response after a receive error

Published Nov 16, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: client: stop processing a read response after a receive error

cifs_read_iter_from_socket() may call cifs_reconnect() before returning an
error. The reconnect path aborts pending mids and invokes their callbacks.
The callback can then release the cifs_io_subrequest containing rdata.

cifs_readv_receive() nevertheless continues after a negative return and may
dereference rdata in cifs_readv_discard(). KASAN reports the resulting
UAF:

BUG: KASAN: slab-use-after-free in cifs_readv_receive
Read of size 4 by task cifsd
cifs_readv_receive (fs/smb/client/transport.c:1284)
cifs_demultiplex_thread (fs/smb/client/connect.c:1355)
kthread (kernel/kthread.c:436)
ret_from_fork (arch/x86/kernel/process.c:158)

Freed by task 148:
netfs_put_subrequest (fs/netfs/objects.c:267)
netfs_read_collection (fs/netfs/read_collect.c:460)
netfs_wait_for_in_progress (fs/netfs/misc.c:462)

Return the socket error immediately, as this path did before the iterator
conversion. This also avoids adding a negative length to total_read.

Analysis

AI-generated

Technical impact

The vulnerability introduces a use‑after‑free condition in the Linux kernel’s SMB client when a read response is processed after a socket receive error. The client may trigger a reconnect, free pending requests, and still dereference the returned data, leading to kernel memory corruption that KASAN reports as a use‑after‑free. An attacker who can trigger this path could execute arbitrary code at kernel level, resulting in privilege escalation.

Affected Systems

The affected system is any machine running the Linux kernel’s SMB client implementation. All kernel releases prior to the patch are potentially vulnerable; users should verify whether their kernel contains the cifs_read_iter_from_socket fix or consult kernel release notes.

Risk and Exploitability

The EPSS score is not available and the flaw is not listed in the CISA KEV catalog, so its current exploitation likelihood is unclear. However, a use‑after‑free in kernel space carries a high severity. The attack vector is inferred to be local or network via SMB traffic; therefore, defenders should treat this with caution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that incorporates the cifs_read_iter_from_socket patch fixing the use‑after‑free.
  • If a patch is unavailable, disable or restrict SMB client services to trusted users until a patch is applied to reduce the attack surface.
  • Monitor kernel logs for KASAN reports indicating the use‑after‑free; this can help detect exploitation attempts.

Generated by OpenCVE AI on November 16, 2026 at 13:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: stop processing a read response after a receive error cifs_read_iter_from_socket() may call cifs_reconnect() before returning an error. The reconnect path aborts pending mids and invokes their callbacks. The callback can then release the cifs_io_subrequest containing rdata. cifs_readv_receive() nevertheless continues after a negative return and may dereference rdata in cifs_readv_discard(). KASAN reports the resulting UAF: BUG: KASAN: slab-use-after-free in cifs_readv_receive Read of size 4 by task cifsd cifs_readv_receive (fs/smb/client/transport.c:1284) cifs_demultiplex_thread (fs/smb/client/connect.c:1355) kthread (kernel/kthread.c:436) ret_from_fork (arch/x86/kernel/process.c:158) Freed by task 148: netfs_put_subrequest (fs/netfs/objects.c:267) netfs_read_collection (fs/netfs/read_collect.c:460) netfs_wait_for_in_progress (fs/netfs/misc.c:462) Return the socket error immediately, as this path did before the iterator conversion. This also avoids adding a negative length to total_read.
Title smb: client: stop processing a read response after a receive error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 16, 2026, 9:59 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 16, 2026, 10:17 AM
Modified
Nov 16, 2026, 10:17 AM