{"id":"CVE-2024-38559","aliases":["CVE-2024-38559"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: qedf: Ensure the copied buf is NUL terminated","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qedf: Ensure the copied buf is NUL terminated\n\nCurrently, we allocate a count-sized kernel buffer and copy count from\nuserspace to that buffer. Later, we use kstrtouint on this buffer but we\ndon't ensure that the string is terminated inside the buffer, this can\nlead to OOB read when using kstrtouint. Fix this issue by using\nmemdup_user_nul instead of memdup_user.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qedf: Ensure the copied buf is NUL terminated\n\nCurrently, we allocate a count-sized kernel buffer and copy count from\nuserspace to that buffer. Later, we use kstrtouint on this buffer but we\ndon't ensure that the string is terminated inside the buffer, this can\nlead to OOB read when using kstrtouint. Fix this issue by using\nmemdup_user_nul instead of memdup_user.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: scsi: qedf: asegúrese de que el buf copiado tenga terminación NUL. Actualmente, asignamos un búfer del kernel del tamaño de un conteo y copiamos el conteo desde el espacio de usuario a ese búfer. Más adelante, usamos kstrtouint en este búfer pero no nos aseguramos de que la cadena termine dentro del búfer, esto puede provocar una lectura OOB cuando usamos kstrtouint. Solucione este problema utilizando memdup_user_nul en lugar de memdup_user.","source":"nvd"}],"published":"2024-06-19T13:35:28.888Z","modified":"2026-10-15T01:18:28.737Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"1f84a2744ad813be23fc4be99fb74bfb24aadb95","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"a75001678e1d38aa607d5b898ec7ff8ed0700d59","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"769b9fd2af02c069451fe9108dba73355d9a021c","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"dccd97b39ab2f2b1b9a47a1394647a4d65815255","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"d93318f19d1e1a6d5f04f5d965eaa9055bb7c613","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"563e609275927c0b75fbfd0d90441543aa7b5e0d","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"177f43c6892e6055de6541fe9391a8a3d1f95fc9","status":"affected"},{"type":"git","introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd","fixed":"d0184a375ee797eb657d74861ba0935b6e405c62","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"4.19.316","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.278","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.219","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.161","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.11","fixed":"4.19.316"},{"status":"affected","introduced":"4.20","fixed":"5.4.278"},{"status":"affected","introduced":"5.5","fixed":"5.10.219"},{"status":"affected","introduced":"5.11","fixed":"5.15.161"},{"status":"affected","introduced":"5.16","fixed":"6.1.93"},{"status":"affected","introduced":"6.2","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1f84a2744ad813be23fc4be99fb74bfb24aadb95","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a75001678e1d38aa607d5b898ec7ff8ed0700d59","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/769b9fd2af02c069451fe9108dba73355d9a021c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dccd97b39ab2f2b1b9a47a1394647a4d65815255","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d93318f19d1e1a6d5f04f5d965eaa9055bb7c613","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/563e609275927c0b75fbfd0d90441543aa7b5e0d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/177f43c6892e6055de6541fe9391a8a3d1f95fc9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0184a375ee797eb657d74861ba0935b6e405c62","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-24T15:39:36.404Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38559","url":"https://www.cve.org/CVERecord?id=CVE-2024-38559","licence":"CVE Terms of Use","modified":"2026-10-15T00:43:23.767Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38559","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38559","licence":"Public domain","modified":"2026-10-15T01:18:28.737Z"}],"updatedAt":"2026-11-25T22:58:42.015Z","epss":{"score":0.00255,"percentile":0.18288,"date":"2026-12-01T12:00:22.000Z"}}