CVE-2025-39996
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in the Linux kernel's media subsystem, specifically in the B2C2 FlexCop PCI device driver (CVE-2025-39996). The vulnerability was disclosed on October 15, 2025, affecting the flexcoppciremove() function. This security issue impacts Linux kernel systems using the B2C2 FlexCop PCI device driver (NVD).

Technical details

The vulnerability stems from improper synchronization in the flexcoppciremove() function. The issue occurs because the code uses canceldelayedwork() which does not guarantee that the delayed work item irqcheckwork has fully completed if it was already running. This creates a race condition where flexcoppciremove() may free the flexcopdevice while irqcheckwork is still active and attempts to dereference the device. The vulnerability was confirmed through KASAN (Kernel Address Sanitizer) reports showing a slab-use-after-free error in _runtimerbase.part.0 (RedHat).

Impact

The vulnerability has been assessed with a CVSS v3.1 base score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), indicating moderate severity. The impact is primarily focused on system availability, with no direct impact on confidentiality or integrity (RedHat).

Mitigation and workarounds

The recommended fix is to replace canceldelayedwork() with canceldelayedworksync() in the flexcoppci_remove() function. This ensures that the delayed work item is properly canceled and any executing delayed work has finished before the device memory is deallocated (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-modules-internal
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • linux-nvidia-tegra
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management