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

State
Published
Severity
7.5 High
Published
Nov 16, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxd08089f649a0cfb2099c8551ac47eef0cc23fdf2 to before d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6 Affectedd08089f649a0cfb2099c8551ac47eef0cc23fdf2 to before af78baeacd731a98531eaa3103bfe03f147cffb7 Affectedd08089f649a0cfb2099c8551ac47eef0cc23fdf2 to before ecc327edd96a65ac177379664cc0972d8a23dfa4 Affectedd08089f649a0cfb2099c8551ac47eef0cc23fdf2 to before 558cb79cb242ce7ca8b32c4b39412d125879e8f2 Affectedd08089f649a0cfb2099c8551ac47eef0cc23fdf2 to before 51efca72345acdbedc4af76782d464bd15ba50ff Affected
Linux Linux6.3 Affectedbefore 6.3 Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.