CVE-2026-43004

spi: stm32-ospi: Fix resource leak in remove() callback

Published May 1, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

spi: stm32-ospi: Fix resource leak in remove() callback

The remove() callback returned early if pm_runtime_resume_and_get()
failed, skipping the cleanup of spi controller and other resources.

Remove the early return so cleanup completes regardless of PM resume
result.

Analysis

AI-generated

Technical impact

The stm32‑ospi driver contains a resource management flaw (CWE‑772) where its remove() callback exits prematurely if a power‑management resume request fails. This prevents the driver from releasing internal resources, creating a hidden memory or resource leak in the Linux kernel. Repeatedly unloading and reloading the driver could gradually deplete system resources, degrading performance or causing a denial of service. The issue is a kernel‑level flaw; exploitation requires control over the driver lifecycle and therefore elevated privileges. The only known mitigation is the upstream patch that removes the early return, ensuring cleanup runs regardless of resume success.

Affected Systems

The vulnerability affects any system running a Linux kernel that includes the stm32‑ospi driver. Exact kernel versions are not listed, but the problem is present in kernels prior to the patch commit. It is relevant to embedded devices, development boards, or custom kernels that use the STM32 OSPi peripheral controller.

Risk and Exploitability

The CVSS score is 5.5, indicating a moderate severity, and the EPSS score of less than 1% reflects a low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. The risk to a defender is moderate to high if the driver is frequently unloaded and reloaded in a compromised environment. The attack vector is inferred to be local with root or module‑loader privileges; no public exploits are documented. Mitigation is driven by applying the upstream patch rather than relying on the low probability of exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the stm32‑ospi patch (commit 0807532c5ebb7… which removes the early return in remove()).
  • If an immediate kernel upgrade is not possible, temporarily unload the stm32‑ospi module and avoid operations that trigger its removal until the patch is applied, to prevent resource leakage.
  • After applying the patch, monitor system memory and driver activity for any abnormal resource retention.

Generated by OpenCVE AI on May 12, 2026 at 22:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: stm32-ospi: Fix resource leak in remove() callback The remove() callback returned early if pm_runtime_resume_and_get() failed, skipping the cleanup of spi controller and other resources. Remove the early return so cleanup completes regardless of PM resume result.
Title spi: stm32-ospi: Fix resource leak in remove() callback
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 11, 2026, 10:15 PM
Reserved
May 1, 2026, 2:12 PM
Status
Analyzed
Published
May 1, 2026, 3:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Public date
May 1, 2026, 12:00 AM