Skip to content
Not rated

CVE-2024-38560 In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated…

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: bfa: Ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Affected products and versions

Product Affected versions Fixed in
Linux 6.10 earliest → < 6.10 6.10
Linux 6.9 earliest → < 6.9.3 6.9.3
Linux 6.8 earliest → < 6.8.12 6.8.12
Linux 6.6 earliest → < 6.6.33 6.6.33
Linux 6.1 earliest → < 6.1.93 6.1.93
Linux 5.15 earliest → < 5.15.161 5.15.161
Linux 5.10 earliest → < 5.10.219 5.10.219
Linux 5.4 earliest → < 5.4.278 5.4.278
Linux 4.19 earliest → < 4.19.316 4.19.316
Show the 2 other branches
Product Affected versions Fixed in
Linux 3.19 No fix stated
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 1.1 earliest → < 1.1.1 1.1.1
The 18286 CVEs of Linux →
Track this CVE