CVE-2024-38559
scsi: qedf: Ensure the copied buf is NUL terminated
Check your servers for CVE-2024-38559
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-38559 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
scsi: qedf: Ensure the copied buf is NUL terminated
Currently, we allocate a count-sized kernel buffer and copy count from userspace to that buffer. Later, we use kstrtouint on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using kstrtouint. Fix this issue by using memdup_user_nul instead of memdup_user.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
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 18.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 24 Jun 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
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before 1f84a2744ad813be23fc4be99fb74bfb24aadb95 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before a75001678e1d38aa607d5b898ec7ff8ed0700d59 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before 769b9fd2af02c069451fe9108dba73355d9a021c affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before dccd97b39ab2f2b1b9a47a1394647a4d65815255 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before d93318f19d1e1a6d5f04f5d965eaa9055bb7c613 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before 563e609275927c0b75fbfd0d90441543aa7b5e0d affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before 177f43c6892e6055de6541fe9391a8a3d1f95fc9 affected from 61d8658b4a435eac729966cc94cdda077a8df5cd, before d0184a375ee797eb657d74861ba0935b6e405c62
Other versions: unaffected
|
| Linux |
affected 4.11 unaffected before 4.11 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-38559 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38559
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-38559
trivy image --scanners vuln IMAGE | grep CVE-2024-38559
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
- https://git.kernel.org/stable/c/1f84a2744ad813be23fc4be99fb74bfb24aadb95 git.kernel.org
- https://git.kernel.org/stable/c/a75001678e1d38aa607d5b898ec7ff8ed0700d59 git.kernel.org
- https://git.kernel.org/stable/c/769b9fd2af02c069451fe9108dba73355d9a021c git.kernel.org
- https://git.kernel.org/stable/c/dccd97b39ab2f2b1b9a47a1394647a4d65815255 git.kernel.org
- https://git.kernel.org/stable/c/d93318f19d1e1a6d5f04f5d965eaa9055bb7c613 git.kernel.org
- https://git.kernel.org/stable/c/563e609275927c0b75fbfd0d90441543aa7b5e0d git.kernel.org
- https://git.kernel.org/stable/c/4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8 git.kernel.org
- https://git.kernel.org/stable/c/177f43c6892e6055de6541fe9391a8a3d1f95fc9 git.kernel.org
- https://git.kernel.org/stable/c/d0184a375ee797eb657d74861ba0935b6e405c62 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
Source: the record CVE-2024-38559 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse