In the Linux kernel, the following vulnerability has been resolved: media: nxp: imx8-isi: m2m: Fix streaming cleanup on release If… (CVE-2025-40165)
A vulnerability in the Linux kernel's NXP i.MX8 ISI media driver was fixed to address improper streaming cleanup. Imbalanced streamon/streamoff calls could cause the m2m usage_count to never reach zero, preventing the ISI channel from being freed. Additionally, input line widths over 2K could trigger kernel warnings. The fix moves streaming preparation and cleanup to dedicated vb2 operations, simplifying the driver and preventing these issues.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2025-40165 affects the media driver for NXP i.MX8 ISI. If streamon and streamoff calls are imbalanced, such as when an application exits abruptly, the m2m usage_count does not decrement properly, causing the ISI channel to remain allocated. Furthermore, input line widths exceeding 2K trigger kernel WARN_ON() messages, indicating improper handling. The issue is resolved by relocating streaming preparation and cleanup to the vb2 .prepare_streaming() and .unprepare_streaming() callbacks, enabling correct resource management and allowing the use of standard v4l2_m2m ioctl streamon/streamoff helpers.
Potential Impact
This vulnerability can cause resource leakage by preventing the release of ISI channels, potentially leading to denial of service or system instability. The kernel WARN_ON() triggered by large input widths may also cause kernel warnings or crashes. The impact includes confidentiality, integrity, and availability as indicated by the CVSS vector, but no known exploits are reported in the wild.
Mitigation Recommendations
A fix is available in the Linux kernel that addresses this issue by properly handling streaming preparation and cleanup in the vb2 framework. Users should update to a kernel version that includes this fix. Since this is a kernel-level vulnerability, applying the official patch or upgrading the kernel is the recommended remediation. Patch status is not explicitly stated in the provided data; check the Linux kernel vendor advisory for the exact fixed version and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: media: nxp: imx8-isi: m2m: Fix streaming cleanup on release If… (CVE-2025-40165)
Description
A vulnerability in the Linux kernel's NXP i.MX8 ISI media driver was fixed to address improper streaming cleanup. Imbalanced streamon/streamoff calls could cause the m2m usage_count to never reach zero, preventing the ISI channel from being freed. Additionally, input line widths over 2K could trigger kernel warnings. The fix moves streaming preparation and cleanup to dedicated vb2 operations, simplifying the driver and preventing these issues.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2025-40165 affects the media driver for NXP i.MX8 ISI. If streamon and streamoff calls are imbalanced, such as when an application exits abruptly, the m2m usage_count does not decrement properly, causing the ISI channel to remain allocated. Furthermore, input line widths exceeding 2K trigger kernel WARN_ON() messages, indicating improper handling. The issue is resolved by relocating streaming preparation and cleanup to the vb2 .prepare_streaming() and .unprepare_streaming() callbacks, enabling correct resource management and allowing the use of standard v4l2_m2m ioctl streamon/streamoff helpers.
Potential Impact
This vulnerability can cause resource leakage by preventing the release of ISI channels, potentially leading to denial of service or system instability. The kernel WARN_ON() triggered by large input widths may also cause kernel warnings or crashes. The impact includes confidentiality, integrity, and availability as indicated by the CVSS vector, but no known exploits are reported in the wild.
Mitigation Recommendations
A fix is available in the Linux kernel that addresses this issue by properly handling streaming preparation and cleanup in the vb2 framework. Users should update to a kernel version that includes this fix. Since this is a kernel-level vulnerability, applying the official patch or upgrading the kernel is the recommended remediation. Patch status is not explicitly stated in the provided data; check the Linux kernel vendor advisory for the exact fixed version and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-668r-67mm-xg82
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40165"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d69c2644c7f847a581
Added to database: 07/30/2026, 15:50:46 UTC
Last enriched: 07/30/2026, 16:54:04 UTC
Last updated: 08/04/2026, 07:17:54 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.