VDB

CVE-2024-38560

CVE-2024-38560 PUBLISHED

scsi: bfa: Ensure the copied buf is NUL terminated

Reported by linux · Published June 19, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.9.3, 6.8.12, 6.6.33, 6.1.93, 5.15.161, 5.10.219, 5.4.278, 4.19.316

Affected products

VendorProductVersions
LinuxLinux9f30b674759b9a2da25aefe25d885161d8a911cb, 9f30b674759b9a2da25aefe25d885161d8a911cb, 9f30b674759b9a2da25aefe25d885161d8a911cb
LinuxLinux3.19, 0, 4.19.316
linuxlinux_kernel3.19, 3.19, 3.19
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
LinuxLinux0, 4.19.316, 5.4.278

Timeline

  • Jun 19, 2024 CVE Published
  • Jun 20, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (16 in total, the first dated here)
  • Jan 8, 2026 Security Advisory (326 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (249 in total, the first dated here)
  • Nov 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-38560
vulnetix vdb fixes CVE-2024-38560

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38560/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›