Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39704

HIGH 8.8EPSS 9%

LoongArch: KVM: Fix stack protector issue in send_ipi_data()

Mitigation

  • Upgrade Linux to 5c68549c81bcca70fc464e305ffeefd9af968287 or later.

Who should check

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

Vulnerability facts

Affected
Linux >= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < b5b49d341f90eed6de794b6ff34ad3dd66d34343; >= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < 5c68549c81bcca70fc464e305ffeefd9af968287; Linux 6.13
Fixed in
Linux 5c68549c81bcca70fc464e305ffeefd9af968287
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
CWE
CWE-674
Published
Modified

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

Package / productAffectedFixedSource
Linux>= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < b5b49d341f90eed6de794b6ff34ad3dd66d34343; >= daee2f9cae5510ba1bd9eed6b0cf0ca8dc276118, < 5c68549c81bcca70fc464e305ffeefd9af968287—cvelist
Linux6.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors