Linux Kernel
CVE-2024-38587
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local authenticated shell
-
DeliveryConfirm speakup module is loaded
-
ExploitTrigger code path with crafted input
-
ExecutionPass flawed sizeof-based bounds check
-
PersistAccess out-of-bounds kernel memory
-
ImpactEscalate privileges or leak kernel data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
|
| Exploitation Conditions | Exploitation requires local, authenticated access with at minimum standard (non-root) user privileges on a Linux system where the speakup kernel module is loaded and active, as specified by the CVSS vector PR:L and AV:L. Speakup is a text-console accessibility screen reader; it is not loaded by default on server, cloud, or most general-purpose desktop Linux distributions - it must be explicitly enabled via kernel configuration or module loading. The flaw cannot be triggered remotely under any configuration. An attacker must be able to execute code locally on the host and must identify or wait for a code path in the speakup driver that exercises the flawed bounds check. Systems where speakup is not compiled into the kernel or where the module is not loaded are not affected. |
| Impact | The CVSS 3.1 score of 7.8 with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H correctly reflects a local, low-privilege attack with full potential kernel impact. However, real-world risk is meaningfully lower than the score implies for most environments. EPSS at 0.16% (36th percentile) signals very low exploitation probability, consistent with the absence of a CISA KEV listing and no known public proof-of-concept. The critical limiting factor is that the speakup module must be loaded and active - this is not the case on the vast majority of server, cloud, or standard desktop Linux deployments, which do not configure accessibility screen readers at the kernel level. Exploitation is purely local, requiring an authenticated shell on a system where speakup is in use. For accessibility-focused deployments (e.g., certain desktop Linux distributions with screen reader configurations), risk is more concrete. There is no conflicting signal between the CVSS vector and the description; both consistently indicate local exploitation. |
| Exploit ScenarioDerived | A locally authenticated standard user on a Linux system where the speakup screen reader module is loaded triggers the vulnerable code path in the speakup driver, supplying input that causes an array index in the range 256-511 to pass the flawed sizeof()-based bounds check. This out-of-bounds access into kernel memory could corrupt adjacent kernel data structures or expose sensitive kernel memory contents, potentially enabling privilege escalation to root. No public proof-of-concept exploit exists at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
Out-of-bounds kernel memory access in the Linux kernel speakup accessibility driver allows a local low-privileged user to read or corrupt kernel memory due to a sizeof() versus ARRAY_SIZE() confusion bug. The speakup driver's 'buf' variable is a u16 array of 256 elements; the flawed check used sizeof() returning 512 (bytes) instead of ARRAY_SIZE() returning 256 (elements), effectively doubling the permitted index range and enabling out-of-bounds access. Nine patch commits have been applied across multiple stable kernel branches; there is no CISA KEV listing, no public exploit code, and EPSS stands at 0.16%, indicating low real-world exploitation probability despite the 7.8 CVSS score.
Earlier versions of this analysis (1)
Out-of-bounds array access in the Linux kernel's speakup accessibility driver allows a local, low-privileged user to potentially corrupt kernel memory, leading to privilege escalation, information disclosure, or system crash. The root cause is a classic sizeof()-vs-ARRAY_SIZE() confusion: sizeof() on the u16 buf array returns 512 (bytes) rather than the intended 256 (element count), doubling the effective boundary and enabling out-of-bounds reads and writes. EPSS is 0.16% (36th percentile), the vulnerability is not in CISA KEV, and no public exploit has been identified, placing real-world priority below the raw CVSS 7.8 score suggests.
RemediationAI
Apply the upstream kernel patches available across multiple stable branches via the nine referenced commits at https://git.kernel.org/stable/c/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b and siblings. Because exact minimum patched release versions per stable branch are not confirmed from the available data (commits are referenced but no tagged release version is specified), consult your Linux distribution's security tracker - Debian DSA, Ubuntu USN, Red Hat RHSA, SUSE SLES advisories - to identify the specific updated package version to deploy. As a compensating control on systems where text-console accessibility is not required, blacklist the speakup module by adding 'blacklist speakup' to /etc/modprobe.d/blacklist.conf and running 'depmod -a'; this prevents the module from loading on next boot with no side effects on non-accessibility workloads. If the module is currently loaded, unloading it with 'rmmod speakup' (if no active users) eliminates the attack surface without a reboot. Note that blacklisting disables text-console screen reader functionality for visually impaired users - evaluate the operational impact before applying on accessibility-dependent systems.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The speakup subsystem is a Linux kernel screen reader driver providing text-console accessibility for visually impaired users. The defect lies in a bounds-checking expression where 'buf' is declared as an array of u16 (16-bit unsigned integers, 2 bytes each). Using sizeof(buf) returns the buffer's byte size (256 elements × 2 bytes = 512), while ARRAY_SIZE(buf) returns the element count (256). The check therefore accepted array indices up to 511, exactly double the valid maximum of 255, allowing out-of-bounds reads or writes into adjacent kernel memory. CWE-129 (Improper Validation of Array Index) precisely describes this root cause: the index is validated against the wrong upper bound, permitting access beyond the allocated array. The CPE entries (cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*) span multiple stable branches, reflecting the patch being backported across the kernel's long-term support trees.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local-only exploitation via an authenticated low-privilege user; out-of-bounds kernel memory access yields full C/I/A impact with no scope change beyond the kernel.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
5DescriptionCVE.org
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.
Executive ViewAI
The Linux kernel speakup accessibility driver contains an out-of-bounds memory access vulnerability (CVE-2024-38587, CVSS 7.8) affecting systems with this driver enabled, allowing local users to read or corrupt kernel memory and potentially escalate privileges. While no active exploitation has been observed and real-world attack probability is low (EPSS 0.2%), kernel-level access poses significant risk to system integrity and confidentiality for affected deployments. Organizations with speakup driver deployments should prioritize patch application to prevent privilege escalation or data exfiltration.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB