# CVE-2025-39704: LoongArch: KVM: Fix stack protector issue in send\_ipi\_data()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-674
- **Published:** 2025-09-05T17:21:10.890Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< b5b49d341f90eed6de794b6ff34ad3dd66d34343; \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< 5c68549c81bcca70fc464e305ffeefd9af968287
- Anyone running Linux 6.13

## Description

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

LoongArch: KVM: Fix stack protector issue in send\_ipi\_data()

Function kvm\_io\_bus\_read() is called in function send\_ipi\_data(), buffer
size of parameter \*val should be at least 8 bytes. Since some emulation
functions like loongarch\_ipi\_readl() and kvm\_eiointc\_read() will write
the buffer \*val with 8 bytes signed extension regardless parameter len.

Otherwise there will be buffer overflow issue when CONFIG\_STACKPROTECTOR
is enabled. The bug report is shown as follows:

Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: send\_ipi\_data+0x194/0x1a0 \[kvm\]
CPU: 11 UID: 107 PID: 2692 Comm: CPU 0/KVM Not tainted 6.17.0-rc1+ \#102 PREEMPT(full)
Stack : 9000000005901568 0000000000000000 9000000003af371c 900000013c68c000
        900000013c68f850 900000013c68f858 0000000000000000 900000013c68f998
        900000013c68f990 900000013c68f990 900000013c68f6c0 fffffffffffdb058
        fffffffffffdb0e0 900000013c68f858 911e1d4d39cf0ec2 9000000105657a00
        0000000000000001 fffffffffffffffe 0000000000000578 282049464555206e
        6f73676e6f6f4c20 0000000000000001 00000000086b4000 0000000000000000
        0000000000000000 0000000000000000 9000000005709968 90000000058f9000
        900000013c68fa68 900000013c68fab4 90000000029279f0 900000010153f940
        900000010001f360 0000000000000000 9000000003af3734 000000004390000c
        00000000000000b0 0000000000000004 0000000000000000 0000000000071c1d
        ...
Call Trace:
\[\<9000000003af3734\>\] show\_stack+0x5c/0x180
\[\<9000000003aed168\>\] dump\_stack\_lvl+0x6c/0x9c
\[\<9000000003ad0ab0\>\] vpanic+0x108/0x2c4
\[\<9000000003ad0ca8\>\] panic+0x3c/0x40
\[\<9000000004eb0a1c\>\] \_\_stack\_chk\_fail+0x14/0x18
\[\<ffff8000023473f8\>\] send\_ipi\_data+0x190/0x1a0 \[kvm\]
\[\<ffff8000023313e4\>\] \_\_kvm\_io\_bus\_write+0xa4/0xe8 \[kvm\]
\[\<ffff80000233147c\>\] kvm\_io\_bus\_write+0x54/0x90 \[kvm\]
\[\<ffff80000233f9f8\>\] kvm\_emu\_iocsr+0x180/0x310 \[kvm\]
\[\<ffff80000233fe08\>\] kvm\_handle\_gspr+0x280/0x478 \[kvm\]
\[\<ffff8000023443e8\>\] kvm\_handle\_exit+0xc0/0x130 \[kvm\]

## Affected and fixed versions

- Linux: \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< b5b49d341f90eed6de794b6ff34ad3dd66d34343; \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< 5c68549c81bcca70fc464e305ffeefd9af968287 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 5c68549c81bcca70fc464e305ffeefd9af968287 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39704. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39704.md
Affected: Linux >= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < b5b49d341f90eed6de794b6ff34ad3dd66d34343; >= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < 5c68549c81bcca70fc464e305ffeefd9af968287; Linux 6.13
Fixed in: Linux 5c68549c81bcca70fc464e305ffeefd9af968287

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39704 being exploited?

There is no confirmed exploitation: CVE-2025-39704 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39704?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39704?

Linux \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< b5b49d341f90eed6de794b6ff34ad3dd66d34343; \>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, \< 5c68549c81bcca70fc464e305ffeefd9af968287; Linux 6.13.

### Is there a fix for CVE-2025-39704?

Yes. Fixed in Linux 5c68549c81bcca70fc464e305ffeefd9af968287. Upgrade Linux to 5c68549c81bcca70fc464e305ffeefd9af968287 or later.

### How do I check if I'm affected by CVE-2025-39704?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b5b49d341f90eed6de794b6ff34ad3dd66d34343>
- patch: <https://git.kernel.org/stable/c/5c68549c81bcca70fc464e305ffeefd9af968287>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39704>

HTML: <https://flawdb.com/CVE-2025-39704> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39704>
