🛡️ CVE-2025-39713 — debian-linux

🟡 CVSS 4.7 — Medium ✅ No Known Exploit CWE-367 NVD
4.7
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()

In the Linux kernel, the following vulnerability has been resolved:

media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()

In the interrupt handler rain_interrupt(), the buffer full check on

rain->buf_len is performed before acquiring rain->buf_lock. This

creates a Time-of-Check to Time-of-Use (TOCTOU) race condition, as

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 then proceeding. This can lead to both

interrupts attempting to write to the buffer, incrementing buf_len

beyond its capacity (DATA_SIZE) and causing a buffer overflow.

Fix this bug by moving the spin_lock() to before the buffer full

check. This ensures that the check and the subsequent buffer modification

are performed atomically, preventing the race condition. An corresponding

spin_unlock() is added to the overflow path to correctly release the

lock.

This possible bug was found by an experimental static analysis tool

developed by our team.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

CVE-2025-39713 is classified as CWE-367: Time-of-check Time-of-use Race Condition. The state checked and the state acted upon can differ, because it may change between the two steps.

Affected software

CVE-2025-39713 is recorded against 3 packages.

  • debian-linux
  • kernel (from 6.13.0 up to 6.16.4)
  • linux-kernel (from 6.13 up to 6.16.4)

Timeline and source

Published on 5 September 2025 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
git.kernel.org
lists.debian.org
lists.debian.org
cert-portal.siemens.com

CVE-2025-39713 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity MEDIUM
CVSS Score 4.7
CVSS Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE CWE-367
Public Exploit ✅ No
Source NVD
Published 2025-09-05
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
debian-linux
kernel 6.13.0 6.16.4
linux-kernel 6.13 6.16.4

References

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in debian-linux

CVE-2025-39713 is rated CVSS 4.7 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025