Closed
CVE-2025-39713 #12421
openeuler-ci-botAdd on  Sep 6, 2025Closed at  Apr 9
openeuler-ci-bot
openeuler-ci-botCollaborators
Sep 6, 2025 Create

一、漏洞信息
漏洞编号:CVE-2025-39713
漏洞归属组件:kernel
漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.19,6.4.0,6.6.0
CVSS评分:
BaseScore:4.7 Medium
Vector:CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞简述:
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 onrain->buf_len is performed before acquiring rain->buf_lock. Thiscreates a Time-of-Check to Time-of-Use (TOCTOU) race condition, asrain->buf_len is concurrently accessed and modified in the workhandler rain_irq_work_handler() under the same lock.Multiple interrupt invocations can race, with each reading buf_lenbefore it becomes full and then proceeding. This can lead to bothinterrupts attempting to write to the buffer, incrementing buf_lenbeyond its capacity (DATA_SIZE) and causing a buffer overflow.Fix this bug by moving the spin_lock() to before the buffer fullcheck. This ensures that the check and the subsequent buffer modificationare performed atomically, preventing the race condition. An correspondingspin_unlock() is added to the overflow path to correctly release thelock.This possible bug was found by an experimental static analysis tooldeveloped by our team.
漏洞公开时间:2025-09-06 02:15:48
漏洞创建时间:2025-09-06 01:53:23
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2025-39713

更多参考(点击展开)
参考来源 参考链接 来源链接
https://linux.oracle.com/errata/ELSA-2025-20663.html
https://git.kernel.org/stable/c/ed905fe7cba03cf22ae0b84cf1b73cd1c070423a
https://lore.kernel.org/linux-cve-announce/2025090550-CVE-2025-39713-ec93@gregkh/T
https://git.kernel.org/stable/c/2964dbe631fd21ad7873b1752b895548d3c12496
https://git.kernel.org/stable/c/fbc81e78d75bf28972bc22b1599559557b1a1b83
https://lore.kernel.org/linux-cve-announce/2025090550-CVE-2025-39713-ec93@gregkh/T/#u
https://linux.oracle.com/errata/ELSA-2025-25757.html
https://linux.oracle.com/cve/CVE-2025-39713.html
https://nvd.nist.gov/vuln/detail/CVE-2025-39713
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
https://bugzilla.redhat.com/show_bug.cgi?id=2393492
https://git.kernel.org/stable/c/1c2769dc80255824542ea5a4ff1a07dcdeb1603f
https://git.kernel.org/stable/c/7af160aea26c7dc9e6734d19306128cce156ec40
https://ubuntu.com/security/CVE-2025-39713
https://git.kernel.org/stable/c/3c3e33b7edca7a2d6a96801f287f9faeb684d655
https://docs.bell-sw.com/security/cves/CVE-2025-39713
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
https://www.cve.org/CVERecord?id=CVE-2025-39713
https://git.kernel.org/stable/c/6aaef1a75985865d8c6c5b65fb54152060faba48
https://git.kernel.org/stable/c/ff9dd3db6cd4c6b54a2ecbc58151bea4ec63bc59
https://security-tracker.debian.org/tracker/CVE-2025-39713
https://git.kernel.org/linus/7af160aea26c7dc9e6734d19306128cce156ec40

漏洞分析指导链接:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
七彩瞬析开源风险感知平台
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
gregkh/linux https://github.com/gregkh/linux/commit/2964dbe631fd21ad7873b1752b895548d3c12496.patch ljqc
https://git.kernel.org/stable/c/ed905fe7cba03cf22ae0b84cf1b73cd1c070423a cvelistv5
https://git.kernel.org/stable/c/2964dbe631fd21ad7873b1752b895548d3c12496 cvelistv5
https://git.kernel.org/stable/c/fbc81e78d75bf28972bc22b1599559557b1a1b83 cvelistv5
https://git.kernel.org/stable/c/1c2769dc80255824542ea5a4ff1a07dcdeb1603f cvelistv5
https://git.kernel.org/stable/c/7af160aea26c7dc9e6734d19306128cce156ec40 cvelistv5
https://git.kernel.org/stable/c/3c3e33b7edca7a2d6a96801f287f9faeb684d655 cvelistv5
https://git.kernel.org/stable/c/6aaef1a75985865d8c6c5b65fb54152060faba48 cvelistv5
https://git.kernel.org/stable/c/ff9dd3db6cd4c6b54a2ecbc58151bea4ec63bc59 cvelistv5
https://git.kernel.org/linus/7af160aea26c7dc9e6734d19306128cce156ec40 osv

二、漏洞分析结构反馈
影响性分析说明:
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 onrain->buf_len is performed before acquiring rain->buf_lock. Thiscreates a Time-of-Check to Time-of-Use (TOCTOU) race condition, asrain->buf_len is concurrently accessed and modified in the workhandler rain_irq_work_handler() under the same lock.Multiple interrupt invocations can race, with each reading buf_lenbefore it becomes full and then proceeding. This can lead to bothinterrupts attempting to write to the buffer, incrementing buf_lenbeyond its capacity (DATA_SIZE) and causing a buffer overflow.Fix this bug by moving the spin_lock() to before the buffer fullcheck. This ensures that the check and the subsequent buffer modificationare performed atomically, preventing the race condition. An correspondingspin_unlock() is added to the overflow path to correctly release thelock.This possible bug was found by an experimental static analysis tooldeveloped by our team.The Linux kernel CVE team has assigned CVE-2025-39713 to this issue.
openEuler评分:
4.7
Vector:CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP4(4.19.90):受影响
2.openEuler-22.03-LTS-SP3(5.10.0):受影响
3.openEuler-22.03-LTS-SP4(5.10.0):受影响
4.openEuler-24.03-LTS(6.6.0):受影响
5.openEuler-24.03-LTS-SP1(6.6.0):受影响
6.openEuler-24.03-LTS-SP2(6.6.0):受影响
7.openEuler-24.03-LTS-SP3(6.6.0):不受影响
8.master(6.12.33):不受影响
9.openEuler-24.03-LTS-Next(6.6.0):不受影响

修复是否涉及abi变化(是/否):
1.master(6.12.33):否
2.openEuler-20.03-LTS-SP4(4.19.90):否
3.openEuler-22.03-LTS-SP3(5.10.0):否
4.openEuler-22.03-LTS-SP4(5.10.0):否
5.openEuler-24.03-LTS(6.6.0):否
6.openEuler-24.03-LTS-Next(6.6.0):否
7.openEuler-24.03-LTS-SP1(6.6.0):否
8.openEuler-24.03-LTS-SP2(6.6.0):否
9.openEuler-24.03-LTS-SP3(6.6.0):否

原因说明:
1.openEuler-24.03-LTS(6.6.0):正常修复
2.openEuler-24.03-LTS-SP1(6.6.0):正常修复
3.openEuler-24.03-LTS-SP2(6.6.0):正常修复
4.openEuler-24.03-LTS-SP3(6.6.0):不受影响-漏洞代码不能被攻击者触发
5.openEuler-20.03-LTS-SP4(4.19.90):不修复-超出修复范围
6.openEuler-22.03-LTS-SP3(5.10.0):不修复-超出修复范围
7.openEuler-22.03-LTS-SP4(5.10.0):不修复-超出修复范围
8.master(6.12.33):不受影响-漏洞代码不能被攻击者触发
9.openEuler-24.03-LTS-Next(6.6.0):不受影响-漏洞代码不能被攻击者触发

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 6, 2025 添加了   CVE/UNFIXED 标签
33 event messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 12 Modify description of issue
linan888
linan888Collaborators
Feb 2 Comments:

/create_pr

branch: OLK-6.6
name: Li Nan
email: linan122@huawei.com

likedislike
devstation-robot
devstation-robot
Feb 2 Comments:

已触发 CVE 修复服务,CVE-ID: CVE-2025-39713。
provided by DevStation.

likedislike
devstation-robotdevstation-robot
Feb 2 Associated pull request
devstation-robot
devstation-robot
Feb 2 Comments:

已完成 CVE 修复全流程,CVE-ID: CVE-2025-39713。

目标分支 PR 链接
OLK-6.6 查看PR

provided by DevStation.

likedislike
hulk-ci-botCollaborators
Feb 6 Comments:

CVE-2025-39713

影响性分析说明:
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.

The Linux kernel CVE team has assigned CVE-2025-39713 to this issue.

openEuler评分:(评分和向量)
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

受影响版本排查(受影响/不受影响):
1.master(6.1.0):不受影响
2.openEuler-20.03-LTS-SP4:受影响
3.openEuler-22.03-LTS-SP3:受影响
4.openEuler-22.03-LTS-SP4:受影响
5.openEuler-24.03-LTS:受影响
6.openEuler-24.03-LTS-Next:不受影响
7.openEuler-24.03-LTS-SP1:受影响
8.openEuler-24.03-LTS-SP2:受影响
9.openEuler-24.03-LTS-SP3:不受影响

修复是否涉及abi变化(是/否):
1.master(6.1.0):否
2.openEuler-20.03-LTS-SP4:否
3.openEuler-22.03-LTS-SP3:否
4.openEuler-22.03-LTS-SP4:否
5.openEuler-24.03-LTS:否
6.openEuler-24.03-LTS-Next:否
7.openEuler-24.03-LTS-SP1:否
8.openEuler-24.03-LTS-SP2:否
9.openEuler-24.03-LTS-SP3:否

原因说明:
1.master(23.08.5):不受影响-漏洞代码不能被攻击者触发
2.openEuler-20.03-LTS-SP4:不修复-超出修复范围
3.openEuler-22.03-LTS-SP3:不修复-超出修复范围
4.openEuler-22.03-LTS-SP4:不修复-超出修复范围
5.openEuler-24.03-LTS:正常修复
6.openEuler-24.03-LTS-Next:不受影响-漏洞代码不能被攻击者触发
7.openEuler-24.03-LTS-SP1:正常修复
8.openEuler-24.03-LTS-SP2:正常修复
9.openEuler-24.03-LTS-SP3:不受影响-漏洞代码不能被攻击者触发

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Feb 6 Modify description of issue
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 6 Comments:

@hanliyang 经过 cve-manager 解析, 已分析的内容如下表所示:

状态 分析项目 内容
已分析 1.影响性分析说明 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 onrain->buf_len is performed before acquiring rain->buf_lock. Thiscreates a Time-of-Check to Time-of-Use (TOCTOU) race condition, asrain->buf_len is concurrently accessed and modified in the workhandler rain_irq_work_handler() under the same lock.Multiple interrupt invocations can race, with each reading buf_lenbefore it becomes full and then proceeding. This can lead to bothinterrupts attempting to write to the buffer, incrementing buf_lenbeyond its capacity (DATA_SIZE) and causing a buffer overflow.Fix this bug by moving the spin_lock() to before the buffer fullcheck. This ensures that the check and the subsequent buffer modificationare performed atomically, preventing the race condition. An correspondingspin_unlock() is added to the overflow path to correctly release thelock.This possible bug was found by an experimental static analysis tooldeveloped by our team.The Linux kernel CVE team has assigned CVE-2025-39713 to this issue.
已分析 2.openEulerScore 4.7
已分析 3.openEulerVector AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
已分析 4.受影响版本排查 openEuler-20.03-LTS-SP4:受影响,openEuler-22.03-LTS-SP3:受影响,openEuler-22.03-LTS-SP4:受影响,openEuler-24.03-LTS:受影响,openEuler-24.03-LTS-SP1:受影响,openEuler-24.03-LTS-SP2:受影响,openEuler-24.03-LTS-SP3:不受影响,master:不受影响,openEuler-24.03-LTS-Next:不受影响
已分析 5.是否涉及abi变化 master:否,openEuler-20.03-LTS-SP4:否,openEuler-22.03-LTS-SP3:否,openEuler-22.03-LTS-SP4:否,openEuler-24.03-LTS:否,openEuler-24.03-LTS-Next:否,openEuler-24.03-LTS-SP1:否,openEuler-24.03-LTS-SP2:否,openEuler-24.03-LTS-SP3:否
已分析 6.原因说明 openEuler-24.03-LTS:正常修复,openEuler-24.03-LTS-SP1:正常修复,openEuler-24.03-LTS-SP2:正常修复,openEuler-24.03-LTS-SP3:不受影响-漏洞代码不能被攻击者触发,openEuler-20.03-LTS-SP4:不修复-超出修复范围,openEuler-22.03-LTS-SP3:不修复-超出修复范围,openEuler-22.03-LTS-SP4:不修复-超出修复范围,master:不受影响-漏洞代码不能被攻击者触发,openEuler-24.03-LTS-Next:不受影响-漏洞代码不能被攻击者触发

请确认分析内容的准确性, 确认无误后, 您可以进行后续步骤, 否则您可以继续分析.

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 6 Comments:

经过cve-manager解析,部分分支PR未合入,如红色字体所示:

原因说明:
1.openEuler-24.03-LTS:正常修复(PR未合入)
2.openEuler-24.03-LTS-SP1:正常修复(PR未合入)
3.openEuler-24.03-LTS-SP2:正常修复(PR未合入)
4.openEuler-24.03-LTS-SP3:不受影响-漏洞代码不能被攻击者触发
5.openEuler-20.03-LTS-SP4:不修复-超出修复范围
6.openEuler-22.03-LTS-SP3:不修复-超出修复范围
7.openEuler-22.03-LTS-SP4:不修复-超出修复范围
8.master:不受影响-漏洞代码不能被攻击者触发
9.openEuler-24.03-LTS-Next:不受影响-漏洞代码不能被攻击者触发

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 changed custom state from 进行中 to 已完成
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Removed label: CVE/UNFIXED
openeuler-ci-botopeneuler-ci-botCollaborators
Apr 9 Added label: CVE/FIXED