Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2025-39713

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

Overview

Published
5 Sep 2025
Modified
5 Nov 2026
Medium CVE
0 Registry packages
274 OS packages
11 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

4.7 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-367

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 87 fixes

Oracle Linux 3 releases · 2 packages

fixed 4
kernel-uek bpftool
Oracle Linux fixes for CVE-2025-39713
ReleasePackageFixed in
7 kernel-uek +7 5.4.17-2136.348.3.el7uek
8 bpftool +13 5.15.0-314.193.5.3.el8uek
9 bpftool +3 5.15.0-314.193.5.3.el9uek
9 kernel-uek +34 6.12.0-105.51.5.el9uek

Photon OS 2 releases · 1 package

fixed 2
bpftool
Photon OS fixes for CVE-2025-39713
ReleasePackageFixed in
4.0 bpftool +9 5.10.241-1.ph4
5.0 bpftool +10 6.1.153-1.ph5

Red Hat 1 release · 1 package

affected 1
bpftool
Red Hat fixes for CVE-2025-39713
ReleasePackageFixed in
9 bpftool +106 affected

SUSE Linux Enterprise 3 releases · 7 packages

fixed 12
kernel-livepatch-6-4-0-150600-10-55-rt kernel-livepatch-6-4-0-150600-23-73-default cluster-md-kmp-default kernel-default-base kernel-azure kernel-livepatch-6-4-0-150700-7-22-rt +1
SUSE Linux Enterprise fixes for CVE-2025-39713
ReleasePackageFixed inAdvisory
15.6 kernel-livepatch-6-4-0-150600-10-55-rt 1-150600.1.3.1 SUSE-SU-2025:3751-1
15.6 kernel-livepatch-6-4-0-150600-23-73-default 1-150600.13.3.1 SUSE-SU-2025:03600-1
15.6 cluster-md-kmp-default +18 6.4.0-150600.23.73.1 SUSE-SU-2025:03600-1
15.6 kernel-default-base 6.4.0-150600.23.73.1.150600.12.32.1 SUSE-SU-2025:03600-1
15.6 kernel-azure +4 6.4.0-150600.8.52.1 SUSE-SU-2025:03634-1
15.7 kernel-livepatch-6-4-0-150700-7-22-rt 1-150700.1.3.1 SUSE-SU-2025:4141-1

6 more rows

SUSE Linux Enterprise Micro 3 releases · 4 packages

fixed 8
kernel-default kernel-default-base kernel-devel-rt kernel-64kb
SUSE Linux Enterprise Micro fixes for CVE-2025-39713
ReleasePackageFixed inAdvisory
6.0 kernel-default +5 6.4.0-35.1 SUSE-SU-2025:20851-1
6.0 kernel-default-base 6.4.0-35.1.21.12 SUSE-SU-2025:20851-1
6.0 kernel-devel-rt +3 6.4.0-37.1 SUSE-SU-2025:20870-1
6.1 kernel-default +6 6.4.0-35.1 SUSE-SU-2025:20861-1
6.1 kernel-default-base 6.4.0-35.1.21.12 SUSE-SU-2025:20861-1
6.1 kernel-devel-rt +4 6.4.0-37.1 SUSE-SU-2025:20898-1

2 more rows

debian 4 releases · 2 packages

fixed 5
linux linux-6-1
debian fixes for CVE-2025-39713
ReleasePackageFixed in
11 linux 5.10.244-1
11 linux-6-1 6.1.153-1~deb11u1
12 linux 6.1.153-1
13 linux 6.12.48-1
14 linux 6.16.5-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2025-39713
ReleasePackageFixed in
linux 1

openSUSE Leap 1 release · 2 packages

fixed 2
cluster-md-kmp-64kb kernel-default-base
openSUSE Leap fixes for CVE-2025-39713
ReleasePackageFixed inAdvisory
16.0 cluster-md-kmp-64kb +64 6.12.0-160000.6.1 openSUSE-SU-2025:20081-1
16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 openSUSE-SU-2025:20081-1

root.io debian 3 releases · 1 package

fixed 3
linux
root.io debian fixes for CVE-2025-39713
ReleasePackageFixed in
11 linux +1 5.10.244-1
12 linux +1 6.1.153-1
13 linux +1 6.12.48-1

root.io ubuntu 2 releases · 1 package

fixed 2
linux
root.io ubuntu fixes for CVE-2025-39713
ReleasePackageFixed in
22.04 linux +1 5.15.0-163.173
24.04 linux +1 6.8.0-100.100

ubuntu 3 releases · 37 packages

fixed 47
linux-nvidia-tegra-5-15 linux-ibm-5-15 linux-riscv-5-15 linux-intel-iotg-5-15 linux-oracle-5-15 linux-aws-5-15 +31
ubuntu fixes for CVE-2025-39713
ReleasePackageFixed in
20.04-ESM linux-nvidia-tegra-5-15 5.15.0-1049.49~20.04.1
20.04-ESM linux-ibm-5-15 5.15.0-1091.94~20.04.1
20.04-ESM linux-riscv-5-15 5.15.0-1092.96~20.04.1
20.04-ESM linux-intel-iotg-5-15 5.15.0-1092.98~20.04.1
20.04-ESM linux-oracle-5-15 5.15.0-1094.100~20.04.1
20.04-ESM linux-aws-5-15 5.15.0-1097.104~20.04.1

41 more rows

References

Show all 43 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.