Skip to main content

Linux Kernel CVE-2024-38587

HIGH
Improper Validation of Array Index (CWE-129)
2024-06-19 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local authenticated shell
  2. Delivery
    Confirm speakup module is loaded
  3. Exploit
    Trigger code path with crafted input
  4. Execution
    Pass flawed sizeof-based bounds check
  5. Persist
    Access out-of-bounds kernel memory
  6. Impact
    Escalate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Aug 04, 2026 - 11:55 cvss changed CVSS 7.8

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

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 12:03 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 11:55 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
5.3 (MEDIUM) 7.8 (HIGH)
CVE Published
Jun 19, 2024 - 14:15 cve.org
MEDIUM 5.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 64% exploitable
Prevalence
Ubiquitous
Linux kernel runs across the vast majority of servers, cloud, and embedded devices
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy