CVE-2024-38559: scsi: qedf: Ensure the copied buf is NUL terminated
Vulnerability summary
CVE-2024-38559 is a medium (CVSS 4.4) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 16.9% of scored vulnerabilities.
Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 44 · Related 35Timeline
- 19-06-2024PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- NVDNIST4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu127 products
- linuxAll versions (No fix recorded) | < 5.4.0-192.212 | < 5.15.0-121.131 | < 6.8.0-40.40
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1130.140 | < 5.15.0-1069.75 | < 6.8.0-1013.14
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < 1f84a2744ad813be23fc4be99fb74bfb24aadb95 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < a75001678e1d38aa607d5b898ec7ff8ed0700d59 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < 769b9fd2af02c069451fe9108dba73355d9a021c | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < dccd97b39ab2f2b1b9a47a1394647a4d65815255 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < d93318f19d1e1a6d5f04f5d965eaa9055bb7c613 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < 563e609275927c0b75fbfd0d90441543aa7b5e0d | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < 4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < 177f43c6892e6055de6541fe9391a8a3d1f95fc9 | ≥ 61d8658b4a435eac729966cc94cdda077a8df5cd, < d0184a375ee797eb657d74861ba0935b6e405c62 | 4.11
- linux_kernel≥ 4.11, < 4.19.316 | ≥ 4.20, < 5.4.278 | ≥ 5.5, < 5.10.219 | ≥ 5.11, < 5.15.161 | ≥ 5.16, < 6.1.93 | ≥ 6.2, < 6.6.33 | ≥ 6.7, < 6.8.12 | ≥ 6.9, < 6.9.3
Debian1 product
- linux< 6.1.94-1 | < 6.8.12-1
3 vendors · 130 products