High severity · published Jun 19, 2024
CVE-2024-38560
scsi: bfa: Ensure the copied buf is NUL terminated
7.1
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 18% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
3.19 before 4.19.316; 4.20 before 5.4.278; 5.5 before 5.10.219; 5.11 before 5.15.161; 5.16 before 6.1.93; 6.2 before 6.6.33; +2 more · source: NVD
LI
Linux · Linux
9f30b674759b9a2da25aefe25d885161d8a911cb before 481fc0c8617304a67649027c4a44723a139a0462; 9f30b674759b9a2da25aefe25d885161d8a911cb before 595a6b98deec01b6dbb20139f71edcd5fb760ec2; 9f30b674759b9a2da25aefe25d885161d8a911cb before 00b425ff0891283207d7bad607a2412225274d7a; 9f30b674759b9a2da25aefe25d885161d8a911cb before 1708e3cf2488788cba5489e4f913d227de757baf; 9f30b674759b9a2da25aefe25d885161d8a911cb before 7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c; 9f30b674759b9a2da25aefe25d885161d8a911cb before 204714e68015d6946279719fd464ecaf57240f35; +4 more · source: vendor
SS
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem · Siemens
before V1.1.1 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-38560
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-38560
Patch
https://git.kernel.org/stable/c/00b425ff0891283207d7bad607a2412225274d7a
Patch
https://git.kernel.org/stable/c/13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Patch
https://git.kernel.org/stable/c/1708e3cf2488788cba5489e4f913d227de757baf
Patch
https://git.kernel.org/stable/c/204714e68015d6946279719fd464ecaf57240f35
Patch
https://git.kernel.org/stable/c/481fc0c8617304a67649027c4a44723a139a0462
Patch
https://git.kernel.org/stable/c/595a6b98deec01b6dbb20139f71edcd5fb760ec2
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
