CVE-2025-39713
BaseFortify
Publication date: 2025-09-05
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 5.10.244 |
| linux | linux_kernel | 6.1.153 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a Time-of-Check to Time-of-Use (TOCTOU) race condition in the Linux kernel's rainshadow-cec media driver. Specifically, in the interrupt handler rain_interrupt(), a check to see if the buffer is full is done before acquiring a lock on the buffer. Because the buffer length (buf_len) can be accessed and modified concurrently by another handler under the same lock, multiple interrupts can simultaneously read the buffer as not full and then both write to it. This can cause the buffer length to exceed its capacity, leading to a buffer overflow. The fix involves acquiring the lock before checking the buffer length to ensure atomicity and prevent the race condition.
How can this vulnerability impact me? :
This vulnerability can lead to a buffer overflow in the Linux kernel's rainshadow-cec driver. Buffer overflows can cause system instability, crashes, or potentially allow an attacker to execute arbitrary code with kernel privileges, compromising system security and reliability.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version where the rainshadow-cec driver has the fix applied. The fix involves moving the spin_lock() before the buffer full check in the rain_interrupt() handler to prevent the TOCTOU race condition and buffer overflow. Until the update is applied, avoid using the affected media rainshadow-cec functionality if possible.