From mboxrd@z Thu Jan 1 00:00:00 1970 From: AL-KERNEL To: kernel-cve@kernelcve.org Subject: [CVE-2026-68212][MODERATE REGULAR] media: saa7134: Fix a possible memory leak in saa7134_video_init1 Date: Mon, 10 Aug 2026 19:26:50 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AL-KERNEL-CVE: CVE-2026-68212 X-AL-KERNEL-Priority: MODERATE REGULAR X-AL-KERNEL-Severity: MODERATE REGULAR X-AL-KERNEL-Base-Severity: MODERATE X-AL-KERNEL-KPANIC: NO X-AL-KERNEL-ActionableScore: 4 X-AL-KERNEL-ActionableScore-Lower: 1 X-AL-KERNEL-Commit: 134c979dd721e22f196d71026432ee37d1f5cc38 List-Id: CVE: CVE-2026-68212 Priority: MODERATE REGULAR AL-KERNEL base severity: MODERATE KPANIC flag: NO Patch: media: saa7134: Fix a possible memory leak in saa7134_video_init1 Commit: 134c979dd721e22f196d71026432ee37d1f5cc38 Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=134c979dd721e22f196d71026432ee37d1f5cc38 Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-68212 Analysis date: Mon, 10 Aug 2026 19:26:50 -0400 ActionableScore: 4 ActionableScore lower bound: 1 Actionable bucket: Borderline, manual review recommended Manual review required: YES Summary: The saa7134 driver failed to check DMA page table allocation errors and missed cleanup on later probe failures, causing memory leaks and possible invalid DMA resource state during device initialization. ====================================================================== ABOUT THIS REPORT ====================================================================== The original Linux kernel CVE announcement for CVE-2026-68212 is available here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-68212 The original announcement does not normally provide a security severity estimate, CVSS assessment, or enough information to determine whether the reported kernel bug represents a practically relevant security issue. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. It combines an autonomous classifier with LLM-assisted technical analysis and a separate ActionableScore mechanism. The purpose of this report is to prioritize Linux kernel CVEs before manual review, identify cases that require prompt investigation, and support automatic closure of issues that are unlikely to have meaningful security impact. Published priority for this report: MODERATE REGULAR Manual review required: YES A detailed explanation of the methodology and priority rules is included at the end of this message. ====================================================================== AL-KERNEL CLASSIFICATION RESULT ====================================================================== CVE-2026-68212 MODERATE CHECK WITH IMPACT FROM ORIG NN LOW Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H';CWE-252;*CWE-401;CWE-908;CWE-703;Other CVSS 'AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L';BEST CVSS score: '5.8';DESCR 'saa7134_video_init1 did not check DMA page table allocation failures and did not fully clean up allocated resources on later initialization errors. This can leak memory during device probe and may leave the driver with invalid DMA page table state if probing continues after an allocation failure. For the CVSS the PR:L is used in the paranoid score because a local user may be able to influence low memory probe conditions or later interact with a partially initialized V4L2 device in some deployments. The issue is not network reachable and depends on a local PCI media device and driver probe error path. Impact is at least local denial of service through resource leakage or invalid DMA state. In the worst still defensible case, limited confidentiality or integrity impact is possible because the affected resource is used for DMA setup, so this should not be treated as a pure cosmetic leak without review.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Borderline, manual review recommended (with actual score 3) YES INIT LEAK UAF DMAorINTERRUPT HARDWARE LINUS INCREASED_FROM_LOW_BASED_ON_REQUIREMANUALCHECK DECREASED_TO_MODERATEREG_BASED_ON_ACTIONABLESCORELESSTHAN5 NO NO checked ====================================================================== ACTIONABLESCORE ANALYSIS ====================================================================== ActionableScore=4 ActionableScoreLower=1 ## 1. ActionableScore * Conservative score: 1 * Paranoid score: 4 * Final recommended bucket: **Borderline, manual review recommended**:: ## 2. Signal breakdown Conservative signals: * Availability impact realistic: +1. The patch fixes probe-time leaks and invalid initialization state that can cause local driver/resource failure. * Requires admin/root/CAP in typical deployments: -2. Reliable triggering normally requires driver probing, reprobing, module/device management, or hardware setup. * Physical-only or rare hardware-only condition: -2. The issue depends on a specific legacy PCI saa7134 media device and its probe path. * Practical floor applied: 1. This is still a kernel driver resource-management flaw, but conservative impact is low. Paranoid signals used for ActionableScore: * Privileged kernel/device-management memory corruption path: +1. The affected object is DMA page-table related driver state, not just ordinary heap bookkeeping. * Constrained or weak/indirect corruption candidate: +1. The commit mentions possible use of uninitialized DMA resources, but no arbitrary write, UAF reclaim, or attacker-controlled overwrite is shown. * Availability impact realistic: +1. Failed initialization may leak resources or leave invalid state in a kernel driver path. * Local influence possible: +1. A local user may indirectly contribute to memory pressure or interact with the device in some deployments, but reliable triggering is not clearly unprivileged. * Requires admin/root/CAP in typical deployments: -2. Normal reprobe/load paths are privileged. * Rare hardware dependency: -1. saa7134 hardware is not broad/default exposure. * Net paranoid result: 4 after keeping the issue as borderline because DMA-adjacent invalid state deserves review, but the patch does not support Important-class scoring. Not awarded: * No remote/network trigger. * No strong generic memory corruption signal. There is no shown UAF, double free, OOB write, type confusion, refcount takeover, or arbitrary write. * No strong LPE plausibility. The patch does not show controlled reclaim, callback control, attacker-selected DMA target, or object replacement. * No confidentiality/integrity points in the conservative score. Paranoid concern exists only because DMA setup state may be invalid, not because a concrete disclosure/write primitive is demonstrated. ## 3. Reachability analysis The affected path is `saa7134_video_init1()` during device probing, before the device is fully registered. Reliable triggering normally requires a system with a saa7134 PCI media device and a probe failure condition, such as allocation failure or `vb2_queue_init()` failure at the right point. In typical deployments, forcing probe/reprobe or module/device lifecycle operations requires administrative privileges. Namespaces and containers generally do not make this directly reachable unless the container has delegated device management or access to the physical V4L2 device stack. The bug is not network reachable. It is also not a common default attack surface because it depends on legacy media hardware and probe-time error paths. Call-site confidence: high for the changed function and cleanup behavior because the patch shows the relevant allocation, initialization, and error paths. Confidence is lower for exploitation impact beyond DoS because no downstream DMA misuse primitive is shown. ## 4. Severity interpretation This behaves more like a low-to-borderline Moderate driver initialization bug than an Important vulnerability. The realistic impact is memory/resource leakage or invalid driver initialization state during probe failure. The theoretical concern is that unchecked DMA page-table allocation could leave invalid DMA-related state, but the patch does not show attacker-controlled DMA mappings, arbitrary memory access, UAF, or a practical privilege-escalation path. The conservative score is low because the issue is hardware-specific, probe-time, and typically privileged to trigger. The paranoid score is higher only to avoid auto-closing a DMA-adjacent invalid-state bug without human review. ## 5. One-sentence report phrase The saa7134 driver failed to check DMA page table allocation errors and missed cleanup on later probe failures, causing memory leaks and possible invalid DMA resource state during device initialization. ## 6. Manual review recommendation MANUAL CHECK RECOMMENDED Reason: this is probably not Important and should not be treated as a strong LPE candidate based on the patch alone, but the combination of unchecked DMA page-table allocation and invalid probe-time driver state is enough to justify manual review rather than automatic closure. ====================================================================== UPSTREAM PATCH SUMMARY ====================================================================== Patch: media: saa7134: Fix a possible memory leak in saa7134_video_init1 Commit: 134c979dd721e22f196d71026432ee37d1f5cc38 Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=134c979dd721e22f196d71026432ee37d1f5cc38 Commit description: In saa7134_video_init1(), the return value of the first saa7134_pgtable_alloc() is not checked. If it fails, the function continues as if successful, leaving the driver with an invalid page table. Additionally, if vb2_queue_init() for the VBI queue fails after the video queue page table has been allocated, the allocated memory is not freed before returning. The second saa7134_pgtable_alloc() also lacks a return value check. Errors occur during device probing before the device is fully registered, the normal cleanup path in saa7134_finidev() is not executed, leading to memory leaks and potential use of uninitialized DMA resources. Check the return value of both saa7134_pgtable_alloc() calls and propagate errors. On failure of any later step, free allocated page tables to avoid memory leaks. Ensure control handlers are also released on error to prevent further resource leakage. Found by code review. Signed-off-by: Ma Ke Cc: stable@vger.kernel.org Fixes: a00e688 ("[media] saa7134: move saa7134_pgtable to saa7134_dmaqueue") Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman Changed files: drivers/media/pci/saa7134/saa7134-video.c Diff excerpt: Not included in this email. See the upstream URL for the full patch. Full patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=134c979dd721e22f196d71026432ee37d1f5cc38 ====================================================================== DETAILED REPORT METHODOLOGY ====================================================================== The original Linux kernel CVE announcement for CVE-2026-68212 can be found here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-68212 The original CVE announcement normally does not include a security-level estimate. In particular, it may not contain a CVSS assessment, an impact level, or enough information to determine whether the reported bug is a practically relevant security issue. One purpose of this parallel CVE list is to provide that missing technical and prioritization information. The original goal of the AL-KERNEL project was to prioritize Linux kernel CVE analysis automatically before manual review. The system can also help identify non-security issues that may be suitable for automatic closure. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. The first analysis stage combines an autonomous classifier with additional LLM-based analysis. The autonomous classifier runs locally on a CPU and is based on a backpropagation neural network. Together, these mechanisms produce a technical vulnerability description, identify likely weakness types, estimate CVSS severity, and provide input for ActionableScore. Two CVSS estimates are retained because incomplete kernel vulnerability information often permits more than one defensible interpretation: Conservative CVSS vector: AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L The Best / paranoid CVSS vector: AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H The Best / paranoid CVSS score: 5.8 The conservative vector represents a lower-impact interpretation. The Best/paranoid vector intentionally represents a plausible upper-bound interpretation and should not automatically be treated as demonstrated real-world impact. CVSS may also need to be adjusted for a particular Linux deployment, because actual reachability, privileges, enabled kernel configuration, hardware, namespaces, exposed device nodes, and other environmental conditions can differ significantly between systems. A separate ActionableScore mechanism evaluates practical remediation urgency. Its analysis may include reachability, attack prerequisites, subsystem exposure, memory-corruption characteristics, denial-of-service reliability, and possible confidentiality, integrity, or privilege-escalation impact. Conservative ActionableScore: 1 Paranoid ActionableScore: 4 The final base severity is taken directly from the second tab-separated field of the AL-KERNEL classification result. ActionableScore does not replace or independently override that final AL-KERNEL decision, and if ActionableScore adjusted impact level of ALKERNEL, then you would see self-readable flags above like INCREASED_TO_HIGH_BASED_ON_ACTIONABLESCOREHIGHEREQTHAN7. For an AL-KERNEL result of MODERATE, this report uses the following additional presentation split: ActionableScore below 5 -> MODERATE REGULAR ActionableScore 5 or more -> MODERATE 7.0 The distinction between MODERATE REGULAR and MODERATE 7.0 makes it possible to identify Moderate issues that should receive manual analysis and fixes before lower-priority MODERATE REGULAR issues. In many cases, MODERATE REGULAR fixes may wait for a later rebase or routine update. There is one override in which MODERATE REGULAR becomes MODERATE 7.0 even when the ActionableScore is below 5. When the AL-KERNEL result contains the KPANIC flag, a MODERATE result is always presented as MODERATE 7.0. The KPANIC flag selected with few regexps without usage of AI at all, so it helps to detect cases when Kernel Crash happens and similar (to filter False-Negative results from the LLM usage). KPANIC indicates that a reliable kernel crash, kernel panic, or similarly serious kernel availability impact was identified by the classification workflow. AL-KERNEL base severity for this report: MODERATE KPANIC detected for this report: NO Published priority for this report (same as in Subject): MODERATE REGULAR These results are intended to support engineering triage. They are machine-generated estimates, and cases marked for manual review should be validated by a human security engineer before final disposition. For more info read docs linked from here: https://kernelcve.org/ (and you can submit you own patch there to generate such a report for non-existant CVE-id yet). Note that in many cases this AI tool selects higher severity, than real is (means you can expect Importants instead of Moderate 7.0 or Moderates 7.0 instead of regular Moderates). If you see such cases, please use reply email interface to add additional manual analyses info to this particular CVE. And please, please, let me know when you see Lows instead of Importants or Important instead of Low (because particular for such cases I need to tune this AI tool to make it better for this one and next similar). My contact email for such notifications is alexanjelausa@gmail.com (and both send reply to CVE record itself too and see "reply" button below for howto reply).