
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-39713 is a Time-of-Check to Time-of-Use (TOCTOU) race condition vulnerability discovered in the Linux kernel's rainshadow-cec media driver. The vulnerability was disclosed on September 5, 2025, affecting the interrupt handler rain_interrupt() component (NVD).
The vulnerability exists in the interrupt handler rain_interrupt(), where the buffer full check on rain->buf_len is performed before acquiring rain->buf_lock. This creates a TOCTOU race condition since rain->buf_len is concurrently accessed and modified in the work handler rain_irq_work_handler() under the same lock. Multiple interrupt invocations can race, with each reading buf_len before it becomes full and proceeding, potentially leading to buffer overflow by incrementing buf_len beyond its capacity (DATA_SIZE) (NVD, Debian Tracker).
The vulnerability affects multiple Linux distributions and versions, including Debian bullseye (5.10.223-1 to 5.10.237-1), bookworm (6.1.148-1), and trixie (6.12.43-1) releases. The issue has been fixed in forky and sid versions 6.16.7-1 (Debian Tracker).
The vulnerability has been fixed by moving the spin_lock() operation to before the buffer full check, ensuring that the check and subsequent buffer modification are performed atomically. Additionally, a corresponding spin_unlock() has been added to the overflow path to correctly release the lock (NVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."