smb: client: stop processing a read response after a receive error (Linux Linux)

CVE-2026-99295
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.47 % · percentile 42 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ d08089f649a0cfb2099c8551ac47eef0cc23fdf2 < d3d007b7f63310fb6f9bb4ed24d74c14ee34b0b6
affected : ≥ d08089f649a0cfb2099c8551ac47eef0cc23fdf2 < af78baeacd731a98531eaa3103bfe03f147cffb7
affected : ≥ d08089f649a0cfb2099c8551ac47eef0cc23fdf2 < ecc327edd96a65ac177379664cc0972d8a23dfa4
affected : ≥ d08089f649a0cfb2099c8551ac47eef0cc23fdf2 < 558cb79cb242ce7ca8b32c4b39412d125879e8f2
affected : ≥ d08089f649a0cfb2099c8551ac47eef0cc23fdf2 < 51efca72345acdbedc4af76782d464bd15ba50ff
Other versions : unaffected
Linux · Linux
affected : 6.3
unaffected : ≥ 0 < 6.3
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.117 ≤ 6.12.*
unaffected : ≥ 6.18.61 ≤ 6.18.*
unaffected : ≥ 7.3.2 ≤ 7.3.*
unaffected : ≥ 7.4-rc1 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD