CVE-2025-37750

Source
https://cve.org/CVERecord?id=CVE-2025-37750
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37750.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37750
Downstream
Related
Published
2025-05-01T12:55:55.988Z
Modified
2026-03-11T07:54:12.455881014Z
Summary
smb: client: fix UAF in decryption with multichannel
Details

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix UAF in decryption with multichannel

After commit f7025d861694 ("smb: client: allocate crypto only for primary server") and commit b0abcd65ec54 ("smb: client: fix UAF in async decryption"), the channels started reusing AEAD TFM from primary channel to perform synchronous decryption, but that can't done as there could be multiple cifsd threads (one per channel) simultaneously accessing it to perform decryption.

This fixes the following KASAN splat when running fstest generic/249 with 'vers=3.1.1,multichannel,max_channels=4,seal' against Windows Server 2022:

BUG: KASAN: slab-use-after-free in gf128mul4klle+0xba/0x110 Read of size 8 at addr ffff8881046c18a0 by task cifsd/986 CPU: 3 UID: 0 PID: 986 Comm: cifsd Not tainted 6.15.0-rc1 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-3.fc41 04/01/2014 Call Trace: <TASK> dumpstacklvl+0x5d/0x80 printreport+0x156/0x528 ? gf128mul4k_lle+0xba/0x110 ? __virtaddrvalid+0x145/0x300 ? __physaddr+0x46/0x90 ? gf128mul4klle+0xba/0x110 kasanreport+0xdf/0x1a0 ? gf128mul_4klle+0xba/0x110 gf128mul4klle+0xba/0x110 ghashupdate+0x189/0x210 shashahashupdate+0x295/0x370 ? __pfxshashahash_update+0x10/0x10 ? __pfxshashahash_update+0x10/0x10 ? __pfxextractitertosg+0x10/0x10 ? ___kmalloclargenode+0x10e/0x180 ? __asanmemset+0x23/0x50 cryptoahashupdate+0x3c/0xc0 gcmhashassocremaincontinue+0x93/0xc0 cryptmessage+0xe09/0xec0 [cifs] ? __pfxcryptmessage+0x10/0x10 [cifs] ? rawspin_unlock+0x23/0x40 ? __pfxcifsreadvfromsocket+0x10/0x10 [cifs] decryptrawdata+0x229/0x380 [cifs] ? __pfxdecryptraw_data+0x10/0x10 [cifs] ? __pfxcifsread_iterfromsocket+0x10/0x10 [cifs] smb3receivetransform+0x837/0xc80 [cifs] ? __pfxsmb3receive_transform+0x10/0x10 [cifs] ? pfxmightresched+0x10/0x10 ? __pfxsmb3istransformhdr+0x10/0x10 [cifs] cifsdemultiplexthread+0x692/0x1570 [cifs] ? __pfxcifsdemultiplexthread+0x10/0x10 [cifs] ? rcuiswatching+0x20/0x50 ? rculockdepcurrentcpuonline+0x62/0xb0 ? findheldlock+0x32/0x90 ? kvmschedclockread+0x11/0x20 ? localclocknoinstr+0xd/0xd0 ? traceirqenable.constprop.0+0xa8/0xe0 ? __pfxcifsdemultiplex_thread+0x10/0x10 [cifs] kthread+0x1fe/0x380 ? kthread+0x10f/0x380 ? __pfxkthread+0x10/0x10 ? localclock_noinstr+0xd/0xd0 ? retfromfork+0x1b/0x60 ? localclock+0x15/0x30 ? lockrelease+0x29b/0x390 ? rcuiswatching+0x20/0x50 ? __pfxkthread+0x10/0x10 retfrom_fork+0x31/0x60 ? __pfxkthread+0x10/0x10 retfromforkasm+0x1a/0x30 </TASK>

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37750.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b0abcd65ec545701b8793e12bc27dc98042b151a
Fixed
aa5a1e4b882964eb79d5b5d1d1e8a1a5efbb1d15
Fixed
e859b216d94668bc66330e61be201234f4413d1a
Fixed
950557922c1298464749c216d8763e97faf5d0a6
Fixed
9502dd5c7029902f4a425bf959917a5a9e7c0e50
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
8f14a476abba13144df5434871a7225fd29af633
Last affected
ef51c0d544b1518b35364480317ab6d3468f205d
Last affected
bce966530fd5542bbb422cb45ecb775f7a1a6bc3
Last affected
0809fb86ad13b29e1d6d491364fc7ea4fb545995
Last affected
538c26d9bf70c90edc460d18c81008a4e555925a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37750.json"