CVE-2026-139035

media: stm32: csi: unregister async notifier on cleanup

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: stm32: csi: unregister async notifier on cleanup

stm32_csi_parse_dt() registers the async notifier before probe finishes.
If a later operation fails, the error path only cleans up the notifier's
connections. It does not unregister the notifier, leaving its entry on
the global notifier list after the devm-allocated csidev is freed.

The remove path has the same problem. A later async operation can then
walk the stale notifier entry and access freed memory.

Unregister the notifier before cleaning up its resources on both paths.

Analysis

AI-generated

Technical impact

The flaw occurs in the Linux kernel’s stm32_csi media driver, where the async notifier is registered during probe but not unregistered on cleanup. If probe or remove operations fail, the driver leaves the notifier entry in the global list after the device’s resources are freed, creating a use‑after‑free condition that can be triggered by later async operations. This could corrupt kernel memory or allow unauthorized code execution at kernel privilege level.

Affected Systems

The vulnerable code is part of the Linux kernel’s media subsystem. The specific kernel versions impacted are not listed in the available data, but any kernel that includes the stm32_csi driver without the recent change is potentially affected. System administrators should identify whether their running kernel contains this driver and whether it has been patched.

Risk and Exploitability

Use‑after‑free vulnerabilities in kernel drivers are considered high‑severity because they can grant an attacker kernel execution capability. The EPSS score is not available and the vulnerability is not catalogued in CISA KEV, indicating no known public exploits yet. The likely attack vector would require local or privileged access to trigger the failing async operation, so the risk level is high, but exploitation is constrained to environments where the stm32_csi driver is active.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the stm32_csi notifier unregistration fix.
  • If an immediate kernel upgrade is unavailable, disable or unload the stm32_csi module to prevent the problematic notifier registration and removal logic from executing.
  • Confirm that any embedded devices using the stm32_csi driver are not performing asynchronous operations until the patch is applied or the driver is disabled.
  • Monitor system logs for warnings related to async notifier usage, as these may indicate attempts to traverse stale notifier entries.

Generated by OpenCVE AI on November 30, 2026 at 19:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: stm32: csi: unregister async notifier on cleanup stm32_csi_parse_dt() registers the async notifier before probe finishes. If a later operation fails, the error path only cleans up the notifier's connections. It does not unregister the notifier, leaving its entry on the global notifier list after the devm-allocated csidev is freed. The remove path has the same problem. A later async operation can then walk the stale notifier entry and access freed memory. Unregister the notifier before cleaning up its resources on both paths.
Title media: stm32: csi: unregister async notifier on cleanup
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
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM