{"id":"CVE-2024-38587","summary":"speakup: Fix sizeof() vs ARRAY_SIZE() bug","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspeakup: Fix sizeof() vs ARRAY_SIZE() bug\n\nThe \"buf\" pointer is an array of u16 values.  This code should be\nusing ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512),\notherwise it can the still got out of bounds.","modified":"2026-05-18T05:57:15.079869624Z","published":"2024-06-19T13:37:42.537Z","related":["SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38587.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-613116.html"},{"type":"WEB","url":"https://git.kernel.org/stable/c/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/07ef95cc7a579731198c93beed281e3a79a0e586"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358"},{"type":"WEB","url":"https://git.kernel.org/stable/c/504178fb7d9f6cdb0496d5491efb05f45597e535"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c6e1650cf5df1bd6638eeee231a683ef30c7d4eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cd7f3978c2ec741aedd1d860b2adb227314cf996"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d52c04474feac8e305814a5228e622afe481b2ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb1ea64328d4cc7d7a912c563f8523d5259716ef"},{"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-38587.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38587"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"756c5cb7c09e537b87b5d3acafcb101b2ccf394f"},{"fixed":"42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8f6b62125befe1675446923e4171eac2c012959c"},{"fixed":"cd7f3978c2ec741aedd1d860b2adb227314cf996"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6401038acfa24cba9c28cce410b7505efadd0222"},{"fixed":"07ef95cc7a579731198c93beed281e3a79a0e586"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0d130158db29f5e0b3893154908cf618896450a8"},{"fixed":"504178fb7d9f6cdb0496d5491efb05f45597e535"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"89af25bd4b4bf6a71295f07e07a8ae7dc03c6595"},{"fixed":"3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8defb1d22ba0395b81feb963b96e252b097ba76f"},{"fixed":"c6e1650cf5df1bd6638eeee231a683ef30c7d4eb"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0efb15c14c493263cb3a5f65f5ddfd4603d19a76"},{"fixed":"eb1ea64328d4cc7d7a912c563f8523d5259716ef"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c8d2f34ea96ea3bce6ba2535f867f0d4ee3b22e1"},{"fixed":"d52c04474feac8e305814a5228e622afe481b2ef"},{"fixed":"008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b"}]}],"versions":["v4.19.315","v4.19.314","v4.19.313","v5.4.277","v5.4.276","v5.4.275","v5.10.218","v5.10.217","v5.10.216","v5.15.160","v5.15.159","v5.15.158","v5.15.157","v6.1.92","v6.1.91","v6.1.90","v6.1.89","v6.1.88","v6.6.32","v6.6.31","v6.6.30","v6.6.29","v6.8.11","v6.8.10","v6.8.9","v6.8.8"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38587.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"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/osv-test-cve-osv-conversion/osv-output/CVE-2024-38587.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}