CVE-2024-38587

speakup: Fix sizeof() vs ARRAY_SIZE() bug

7.8 high EPSS 0.79%

Published 19 Jun 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-38587

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38587 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
5.3 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.79%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 756c5cb7c09e537b87b5d3acafcb101b2ccf394f, before 42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358
affected from 8f6b62125befe1675446923e4171eac2c012959c, before cd7f3978c2ec741aedd1d860b2adb227314cf996
affected from 6401038acfa24cba9c28cce410b7505efadd0222, before 07ef95cc7a579731198c93beed281e3a79a0e586
affected from 0d130158db29f5e0b3893154908cf618896450a8, before 504178fb7d9f6cdb0496d5491efb05f45597e535
affected from 89af25bd4b4bf6a71295f07e07a8ae7dc03c6595, before 3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e
affected from 8defb1d22ba0395b81feb963b96e252b097ba76f, before c6e1650cf5df1bd6638eeee231a683ef30c7d4eb
affected from 0efb15c14c493263cb3a5f65f5ddfd4603d19a76, before eb1ea64328d4cc7d7a912c563f8523d5259716ef
affected from c8d2f34ea96ea3bce6ba2535f867f0d4ee3b22e1, before d52c04474feac8e305814a5228e622afe481b2ef
affected from c8d2f34ea96ea3bce6ba2535f867f0d4ee3b22e1, before 008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b
affected from 4.19.313, before 4.19.316
affected from 5.4.275, before 5.4.278
affected from 5.10.216, before 5.10.219
affected from 5.15.157, before 5.15.161
affected from 6.1.88, before 6.1.93
affected from 6.6.29, before 6.6.33
affected from 6.8.8, before 6.8.12
Other versions: unaffected
Linux
affected 6.9
unaffected before 6.9
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38587 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38587

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-38587
trivy image --scanners vuln IMAGE | grep CVE-2024-38587

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-38587 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.