# CVE-2024-38559: scsi: qedf: Ensure the copied buf is NUL terminated

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-19T13:35:28.888Z
- **Modified:** 2026-10-15T01:18:28.737Z

## Who should check

- Anyone running Linux \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 1f84a2744ad813be23fc4be99fb74bfb24aadb95; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< a75001678e1d38aa607d5b898ec7ff8ed0700d59; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 769b9fd2af02c069451fe9108dba73355d9a021c; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< dccd97b39ab2f2b1b9a47a1394647a4d65815255; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d93318f19d1e1a6d5f04f5d965eaa9055bb7c613; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 563e609275927c0b75fbfd0d90441543aa7b5e0d; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 177f43c6892e6055de6541fe9391a8a3d1f95fc9; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d0184a375ee797eb657d74861ba0935b6e405c62
- Anyone running Linux 4.11

## 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.

## Affected and fixed versions

- Linux: \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 1f84a2744ad813be23fc4be99fb74bfb24aadb95; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< a75001678e1d38aa607d5b898ec7ff8ed0700d59; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 769b9fd2af02c069451fe9108dba73355d9a021c; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< dccd97b39ab2f2b1b9a47a1394647a4d65815255; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d93318f19d1e1a6d5f04f5d965eaa9055bb7c613; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 563e609275927c0b75fbfd0d90441543aa7b5e0d; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 177f43c6892e6055de6541fe9391a8a3d1f95fc9; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d0184a375ee797eb657d74861ba0935b6e405c62 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38559. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38559.md
Affected: Linux >= 61d8658b4a435eac729966cc94cdda077a8df5cd, < 1f84a2744ad813be23fc4be99fb74bfb24aadb95; >= 61d8658b4a435eac729966cc94cdda077a8df5cd, < a75001678e1d38aa607d5b898ec7ff8ed0700d59; >= 61d8658b4a435eac729966cc94cdda077a8df5cd, < 769b9fd2af02c069451fe9108dba73355d9a021c; >= 61d8658b4a435eac729966c…
Fixed in: Linux 1f84a2744ad813be23fc4be99fb74bfb24aadb95, Linux 769b9fd2af02c069451fe9108dba73355d9a021c, Linux 563e609275927c0b75fbfd0d90441543aa7b5e0d, Linux 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8, Linux 177f43c6892e6055de6541fe9391a8a3d1f95fc9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38559 being exploited?

There is no confirmed exploitation: CVE-2024-38559 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38559?

Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-38559?

Linux \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 1f84a2744ad813be23fc4be99fb74bfb24aadb95; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< a75001678e1d38aa607d5b898ec7ff8ed0700d59; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 769b9fd2af02c069451fe9108dba73355d9a021c; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< dccd97b39ab2f2b1b9a47a1394647a4d65815255; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d93318f19d1e1a6d5f04f5d965eaa9055bb7c613; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 563e609275927c0b75fbfd0d90441543aa7b5e0d; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< 177f43c6892e6055de6541fe9391a8a3d1f95fc9; \>= 61d8658b4a435eac729966cc94cdda077a8df5cd, \< d0184a375ee797eb657d74861ba0935b6e405c62; Linux 4.11.

### Is there a fix for CVE-2024-38559?

Yes. Fixed in Linux 1f84a2744ad813be23fc4be99fb74bfb24aadb95, Linux 769b9fd2af02c069451fe9108dba73355d9a021c, Linux 563e609275927c0b75fbfd0d90441543aa7b5e0d, Linux 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8, Linux 177f43c6892e6055de6541fe9391a8a3d1f95fc9. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38559?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1f84a2744ad813be23fc4be99fb74bfb24aadb95>
- patch: <https://git.kernel.org/stable/c/a75001678e1d38aa607d5b898ec7ff8ed0700d59>
- patch: <https://git.kernel.org/stable/c/769b9fd2af02c069451fe9108dba73355d9a021c>
- patch: <https://git.kernel.org/stable/c/dccd97b39ab2f2b1b9a47a1394647a4d65815255>
- patch: <https://git.kernel.org/stable/c/d93318f19d1e1a6d5f04f5d965eaa9055bb7c613>
- patch: <https://git.kernel.org/stable/c/563e609275927c0b75fbfd0d90441543aa7b5e0d>
- patch: <https://git.kernel.org/stable/c/4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8>
- patch: <https://git.kernel.org/stable/c/177f43c6892e6055de6541fe9391a8a3d1f95fc9>
- patch: <https://git.kernel.org/stable/c/d0184a375ee797eb657d74861ba0935b6e405c62>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38559>

HTML: <https://flawdb.com/CVE-2024-38559> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38559>
