CVE-2024-38587

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-38587
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38587.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-38587
Downstream
Related
Published
2024-06-19T13:37:42Z
Modified
2025-10-17T09:30:13.923693Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
speakup: Fix sizeof() vs ARRAY_SIZE() bug
Details

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.

References

Affected packages

Git / 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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c8d2f34ea96ea3bce6ba2535f867f0d4ee3b22e1
Fixed
008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b

Affected versions

v4.*

v4.19.313
v4.19.314
v4.19.315

v5.*

v5.10.216
v5.10.217
v5.10.218
v5.15.157
v5.15.158
v5.15.159
v5.15.160
v5.4.275
v5.4.276
v5.4.277

v6.*

v6.1.88
v6.1.89
v6.1.90
v6.1.91
v6.1.92
v6.6.29
v6.6.30
v6.6.31
v6.6.32
v6.8.10
v6.8.11
v6.8.8
v6.8.9
v6.9
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7
v6.9.1
v6.9.2

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
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