cbcvebase.
CVE-2025-37947
published 2025-05-20

CVE-2025-37947: In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did…

high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did not validate whether the write offset (*pos) was within the bounds of the existing stream data length (v_len). If *pos was greater than or equal to v_len, this could lead to an out-of-bounds memory write. This patch adds a check to ensure *pos is less than v_len before proceeding. If the condition fails, -EINVAL is returned.

Affected

29 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.140-1 (bookworm)linux 6.1.140-1 (bookworm)
debianlinux-6.1< linux 6.1.140-1 (bookworm)linux 6.1.140-1 (bookworm)
linuxlinux
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 7f61da79df86fd140c7768e668ad846bfa7ec8e17f61da79df86fd140c7768e668ad846bfa7ec8e1
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 04c8a38c60346bb5a7c49b276de7233f703ce9cb04c8a38c60346bb5a7c49b276de7233f703ce9cb
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < d62ba16563a86aae052f96d270b3b6f78fca154cd62ba16563a86aae052f96d270b3b6f78fca154c
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < e6356499fd216ed6343ae0363f4c9303f02c5034e6356499fd216ed6343ae0363f4c9303f02c5034
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 0ca6df4f40cf4c32487944aaf48319cb6c25accc0ca6df4f40cf4c32487944aaf48319cb6c25accc
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.1.140-16.1.140-1
linuxlinux_kernel>= 0 < 6.12.29-16.12.29-1
linuxlinux_kernel>= 0 < 6.12.29-16.12.29-1
linuxlinux_kernel>= 0 < 6.8.0-100.1006.8.0-100.100
linuxlinux_kernel>= 5.15 < 6.1.1396.1.139
linuxlinux_kernel>= 6.13 < 6.14.76.14.7
linuxlinux_kernel>= 6.2 < 6.6.916.6.91
linuxlinux_kernel>= 6.7 < 6.12.296.12.29
msrcazl3_kernel_6.6.85.1-4_on_azure_linux_3.0
msrcazl3_kernel_6.6.92.2-1_on_azure_linux_3.0
ubuntulinux-aws
ubuntulinux-aws-6.8
ubuntulinux-gkeop
ubuntulinux-nvidia
ubuntulinux-nvidia-6.8

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH