CVE-2024-38559: scsi: qedf: Ensure the copied buf is NUL terminated
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.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel bug in the qedf SCSI driver. A privileged local user could trigger an out-of-bounds read when the kernel parses a non-terminated user-supplied buffer, potentially causing a denial of service. The public record does not indicate active exploitation.
Executive priority
Handle through normal kernel patch management, with higher priority for storage-facing Linux hosts where qedf is used. This is not currently evidenced as internet-exploited, but it can affect availability.
Technical view
The qedf driver copied a count-sized userspace buffer, then passed it to kstrtouint without ensuring NUL termination. The kernel fix replaces memdup_user with memdup_user_nul. CVSS is 4.4: local access, low complexity, high privileges, no user interaction, high availability impact.
Likely exposure
Exposure is mainly Linux systems on affected kernel versions where the qedf driver path is reachable by a highly privileged local user. Internet-facing exposure is not indicated by the CVSS vector or source bundle.
Exploitation context
The CVE is not listed as KEV in the source bundle. Available evidence supports a local, high-privilege denial-of-service scenario, not remote exploitation or public weaponization.
Researcher notes
The root issue is missing string termination before kstrtouint in qedf. The bundle lists CWE-476, but the description specifically supports an out-of-bounds read from unterminated input. Validate using source review and fixed kernel provenance, not exploit reproduction.
Mitigation direction
Update to a kernel containing the listed stable qedf fix commits.
Apply distribution kernel advisories, including Debian LTS guidance where applicable.
Check vendor guidance for appliances or products shipping Linux kernels.
Prioritize hosts using the qedf driver or affected storage configurations.
Validation and detection
Inventory Linux kernel versions against the affected version data.
Confirm whether the qedf driver is present and in use.
Verify the vendor kernel includes the memdup_user_nul fix.
Track Debian or device-vendor advisories for deployed platforms.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.