Memory Leak in spi_gpio_probe() Function in Linux Kernel

linux Updated 02 Oct 2025

Summary

18/11/2019
N/A
No i
High
7.5

CVE-2019-19070: A memory leak in the spi_gpio_probe() function in drivers/spi/spi-gpio.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering devm_add_action_or_reset() fail... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for the operating system, including device drivers, memory management, and process scheduling. The spi_gpio_probe() function is part of the kernel's SPI (Serial Peripheral Interface) subsystem and is responsible for probing and initializing SPI devices connected via GPIO pins. This vulnerability, identified as CVE-2019-19070, involves a memory leak in the spi_gpio_probe() function.

Vulnerability Detail

The memory leak vulnerability in spi_gpio_probe() allows attackers to cause a denial of service (DoS) by triggering failures in the devm_add_action_or_reset() function. By exploiting this vulnerability, an attacker can consume excessive memory resources, leading to system instability or crashes. It is important to note that this vulnerability requires the system to already be out of memory before the probe begins, which may limit its practical impact.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As this vulnerability relies on the system being out of memory before the probe begins, ensuring sufficient memory availability can mitigate the risk. Monitoring system memory usage and taking appropriate actions to prevent memory exhaustion can help prevent the exploitation of this vulnerability.

Conclusion

The memory leak vulnerability in the spi_gpio_probe() function of the Linux kernel can lead to a denial of service (DoS) by consuming excessive memory resources. It is recommended to update the kernel to version 5.3.12 or later to address this vulnerability. Monitoring system memory usage and ensuring sufficient memory availability can also help mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can cause a denial of service (DoS) by consuming excessive memory resources, leading to system instability or crashes.

No, the vulnerability can be exploited if the system is already out of memory before the probe begins.

The vulnerability affects Linux kernel versions up to and including 5.3.11.

Monitoring system memory usage and ensuring sufficient memory availability can help mitigate the risk of exploitation.

For more detailed information about this vulnerability, you can refer to the CVE-2019-19070 JSON report available at the following source: https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19070.json

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback