# CVE-2026-99295: smb: client: stop processing a read response after a receive error

- 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.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-11-16T09:59:22.911Z
- Modified: 2026-11-23T08:17:34.067Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before af78baeacd731a98531eaa3103bfe03f147cffb7; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before ecc327edd96a65ac177379664cc0972d8a23dfa4; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before 558cb79cb242ce7ca8b32c4b39412d125879e8f2; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before 51efca72345acdbedc4af76782d464bd15ba50ff; 6.3 (not affected: before 6.3; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6>
- <https://git.kernel.org/stable/c/af78baeacd731a98531eaa3103bfe03f147cffb7>
- <https://git.kernel.org/stable/c/ecc327edd96a65ac177379664cc0972d8a23dfa4>
- <https://git.kernel.org/stable/c/558cb79cb242ce7ca8b32c4b39412d125879e8f2>
- <https://git.kernel.org/stable/c/51efca72345acdbedc4af76782d464bd15ba50ff>

## Sources

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

---

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