CVE-2024-38560

scsi: bfa: Ensure the copied buf is NUL terminated

No CVSS score yet EPSS 0.26%

Published 19 Jun 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-38560

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38560 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 481fc0c8617304a67649027c4a44723a139a0462
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 595a6b98deec01b6dbb20139f71edcd5fb760ec2
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 00b425ff0891283207d7bad607a2412225274d7a
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 1708e3cf2488788cba5489e4f913d227de757baf
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 7d3e694c4fe30f3aba9cd5ae86fb947a54c3db5c
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 204714e68015d6946279719fd464ecaf57240f35
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 7510fab46b1cbd1680e2a096e779aec3334b4143
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before ecb76200f5557a2886888aaa53702da1ab9e6cdf
affected from 9f30b674759b9a2da25aefe25d885161d8a911cb, before 13d0cecb4626fae67c00c84d3c7851f6b62f7df3
Other versions: unaffected
Linux
affected 3.19
unaffected before 3.19
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38560 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38560

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38560
trivy image --scanners vuln IMAGE | grep CVE-2024-38560

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38560 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.