{"schema_version":"1.9.0","id":"CVE-2024-38559","published":"2024-06-19T13:35:28.888Z","modified":"2026-08-12T03:51:32.252479159Z","related":["ALSA-2024:6567","ALSA-2024:7000","ALSA-2024:7001","SUSE-SU-2024:2362-1","SUSE-SU-2024:2365-1","SUSE-SU-2024:2372-1","SUSE-SU-2024:2384-1","SUSE-SU-2024:2385-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2495-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2894-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2923-1","SUSE-SU-2024:2929-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2947-1","SUSE-SU-2024:2948-1","SUSE-SU-2025:1293-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"summary":"scsi: qedf: Ensure the copied buf is NUL terminated","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"61d8658b4a435eac729966cc94cdda077a8df5cd"},{"fixed":"1f84a2744ad813be23fc4be99fb74bfb24aadb95"},{"fixed":"a75001678e1d38aa607d5b898ec7ff8ed0700d59"},{"fixed":"769b9fd2af02c069451fe9108dba73355d9a021c"},{"fixed":"dccd97b39ab2f2b1b9a47a1394647a4d65815255"},{"fixed":"d93318f19d1e1a6d5f04f5d965eaa9055bb7c613"},{"fixed":"563e609275927c0b75fbfd0d90441543aa7b5e0d"},{"fixed":"4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8"},{"fixed":"177f43c6892e6055de6541fe9391a8a3d1f95fc9"},{"fixed":"d0184a375ee797eb657d74861ba0935b6e405c62"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38559.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.11.0"},{"fixed":"4.19.316"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.278"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.219"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.161"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.93"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.8.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.9.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38559.json"}}],"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"WEB","url":"https://git.kernel.org/stable/c/177f43c6892e6055de6541fe9391a8a3d1f95fc9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f84a2744ad813be23fc4be99fb74bfb24aadb95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4907f5ad246fa9b51093ed7dfc7da9ebbd3f20b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/563e609275927c0b75fbfd0d90441543aa7b5e0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/769b9fd2af02c069451fe9108dba73355d9a021c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a75001678e1d38aa607d5b898ec7ff8ed0700d59"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0184a375ee797eb657d74861ba0935b6e405c62"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d93318f19d1e1a6d5f04f5d965eaa9055bb7c613"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dccd97b39ab2f2b1b9a47a1394647a4d65815255"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38559.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38559"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38559.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}