In the Linux kernel, the following vulnerability has been resolved: speakup: Fix sizeof() vs ARRAY_SIZE() bug The “buf” pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds.
git.kernel.org/linus/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b
git.kernel.org/stable/c/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b
git.kernel.org/stable/c/07ef95cc7a579731198c93beed281e3a79a0e586
git.kernel.org/stable/c/3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e
git.kernel.org/stable/c/42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358
git.kernel.org/stable/c/504178fb7d9f6cdb0496d5491efb05f45597e535
git.kernel.org/stable/c/c6e1650cf5df1bd6638eeee231a683ef30c7d4eb
git.kernel.org/stable/c/cd7f3978c2ec741aedd1d860b2adb227314cf996
git.kernel.org/stable/c/d52c04474feac8e305814a5228e622afe481b2ef
git.kernel.org/stable/c/eb1ea64328d4cc7d7a912c563f8523d5259716ef
ubuntu.com/security/CVE-2024-38587
ubuntu.com/security/notices/USN-6949-1
ubuntu.com/security/notices/USN-6949-2
ubuntu.com/security/notices/USN-6951-1
ubuntu.com/security/notices/USN-6951-2
ubuntu.com/security/notices/USN-6951-3
ubuntu.com/security/notices/USN-6951-4
ubuntu.com/security/notices/USN-6952-1
ubuntu.com/security/notices/USN-6952-2
ubuntu.com/security/notices/USN-6953-1
ubuntu.com/security/notices/USN-6955-1
ubuntu.com/security/notices/USN-6979-1
ubuntu.com/security/notices/USN-7007-1
ubuntu.com/security/notices/USN-7007-2
ubuntu.com/security/notices/USN-7007-3
ubuntu.com/security/notices/USN-7009-1
ubuntu.com/security/notices/USN-7009-2
www.cve.org/CVERecord?id=CVE-2024-38587