CVE-2025-21725 Information
Description
In the Linux kernel the following vulnerability has been resolved:
smb: client: fix oops due to unset link speed
It isn’t guaranteed that NETWORK_INTERFACE_INFO::LinkSpeed will always be set by the server so the client must handle any values and then prevent oopses like below from happening:
Oops: divide error: 0000 [1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 1323 Comm: cat Not tainted 6.13.0-rc7 2
Hardware name: QEMU Standard PC (Q35 + ICH9 2009) BIOS 1.16.3-3.fc41
04/01/2014
RIP: 0010:cifs_debug_data_proc_show+0xa45/0x1460 [cifs] Code: 00 00 48
89 df e8 3b cd 1b c1 41 f6 44 24 2c 04 0f 84 50 01 00 00 48 89 ef e8
e7 d0 1b c1 49 8b 44 24 18 31 d2 49 8d 7c 24 28 <48> f7 74 24 18 48 89
c3 e8 6e cf 1b c1 41 8b 6c 24 28 49 8d 7c 24
RSP: 0018:ffffc90001817be0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88811230022c RCX: ffffffffc041bd99
RDX: 0000000000000000 RSI: 0000000000000567 RDI: ffff888112300228
RBP: ffff888112300218 R08: fffff52000302f5f R09: ffffed1022fa58ac
R10: ffff888117d2c566 R11: 00000000fffffffe R12: ffff888112300200
R13: 000000012a15343f R14: 0000000000000001 R15: ffff888113f2db58
FS: 00007fe27119e740(0000) GS:ffff888148600000(0000)
knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2633c5000 CR3: 0000000124da0000 CR4: 0000000000750ef0
PKRU: 55555554
Call Trace:
Fix this by setting cifs_server_iface::speed to a sane value (1Gbps) by default when link speed is unset.
Reference
https://git.kernel.org/stable/c/208e102a2fca44e40a6c3f7b9e2609cfd17a15aa https://git.kernel.org/stable/c/3f901c35e1a1b3ed1b528a17ffdb941aa0294458 https://git.kernel.org/stable/c/699179dfc8d7da457b152ca5d18ae45f9ed9beaa https://git.kernel.org/stable/c/ad3b49fbdb156aa8ee2026ba590642c9b5a410f2 https://git.kernel.org/stable/c/be7a6a77669588bfa5022a470989702bbbb11e7f
Share on: