# CVE-2025-38506: KVM: Allow CPU to reschedule while setting per-page memory attributes

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-08-16T10:54:43.826Z
- **Modified:** 2026-06-17T09:17:00.483Z

## Who should check

- Anyone running Linux \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< d9bd1163c8d8f716f45e54d034ee28757cc85549; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 1ef45ae7a3938f0844032ba670b4f89180a5bffc; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 47bb584237cc285e3a860b70c01f7bda9dcfb05b
- Anyone running Linux 6.8

## Description

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

KVM: Allow CPU to reschedule while setting per-page memory attributes

When running an SEV-SNP guest with a sufficiently large amount of memory (1TB+),
the host can experience CPU soft lockups when running an operation in
kvm\_vm\_set\_mem\_attributes() to set memory attributes on the whole
range of guest memory.

watchdog: BUG: soft lockup - CPU\#8 stuck for 26s! \[qemu-kvm:6372\]
CPU: 8 UID: 0 PID: 6372 Comm: qemu-kvm Kdump: loaded Not tainted 6.15.0-rc7.20250520.el9uek.rc1.x86\_64 \#1 PREEMPT(voluntary)
Hardware name: Oracle Corporation ORACLE SERVER E4-2c/Asm,MB Tray,2U,E4-2c, BIOS 78016600 11/13/2024
RIP: 0010:xas\_create+0x78/0x1f0
Code: 00 00 00 41 80 fc 01 0f 84 82 00 00 00 ba 06 00 00 00 bd 06 00 00 00 49 8b 45 08 4d 8d 65 08 41 39 d6 73 20 83 ed 06 48 85 c0 \<74\> 67 48 89 c2 83 e2 03 48 83 fa 02 75 0c 48 3d 00 10 00 00 0f 87
RSP: 0018:ffffad890a34b940 EFLAGS: 00000286
RAX: ffff96f30b261daa RBX: ffffad890a34b9c8 RCX: 0000000000000000
RDX: 000000000000001e RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffad890a356868
R13: ffffad890a356860 R14: 0000000000000000 R15: ffffad890a356868
FS:  00007f5578a2a400(0000) GS:ffff97ed317e1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f015c70fb18 CR3: 00000001109fd006 CR4: 0000000000f70ef0
PKRU: 55555554
Call Trace:
 \<TASK\>
 xas\_store+0x58/0x630
 \_\_xa\_store+0xa5/0x130
 xa\_store+0x2c/0x50
 kvm\_vm\_set\_mem\_attributes+0x343/0x710 \[kvm\]
 kvm\_vm\_ioctl+0x796/0xab0 \[kvm\]
 \_\_x64\_sys\_ioctl+0xa3/0xd0
 do\_syscall\_64+0x8c/0x7a0
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7f5578d031bb
Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 2d 4c 0f 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe0a742b88 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000004020aed2 RCX: 00007f5578d031bb
RDX: 00007ffe0a742c80 RSI: 000000004020aed2 RDI: 000000000000000b
RBP: 0000010000000000 R08: 0000010000000000 R09: 0000017680000000
R10: 0000000000000080 R11: 0000000000000246 R12: 00005575e5f95120
R13: 00007ffe0a742c80 R14: 0000000000000008 R15: 00005575e5f961e0

While looping through the range of memory setting the attributes,
call cond\_resched() to give the scheduler a chance to run a higher
priority task on the runqueue if necessary and avoid staying in
kernel mode long enough to trigger the lockup.

## Affected and fixed versions

- Linux: \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< d9bd1163c8d8f716f45e54d034ee28757cc85549; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 1ef45ae7a3938f0844032ba670b4f89180a5bffc; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 47bb584237cc285e3a860b70c01f7bda9dcfb05b (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 47bb584237cc285e3a860b70c01f7bda9dcfb05b 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-38506. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38506.md
Affected: Linux >= 5a475554db1e476a14216e742ea2bdb77362d5d5, < d9bd1163c8d8f716f45e54d034ee28757cc85549; >= 5a475554db1e476a14216e742ea2bdb77362d5d5, < 1ef45ae7a3938f0844032ba670b4f89180a5bffc; >= 5a475554db1e476a14216e742ea2bdb77362d5d5, < 47bb584237cc285e3a860b70c01f7bda9dcfb05b; Linux 6.8
Fixed in: Linux 1ef45ae7a3938f0844032ba670b4f89180a5bffc, Linux 47bb584237cc285e3a860b70c01f7bda9dcfb05b

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-38506 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< d9bd1163c8d8f716f45e54d034ee28757cc85549; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 1ef45ae7a3938f0844032ba670b4f89180a5bffc; \>= 5a475554db1e476a14216e742ea2bdb77362d5d5, \< 47bb584237cc285e3a860b70c01f7bda9dcfb05b; Linux 6.8.

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

Yes. Fixed in Linux 1ef45ae7a3938f0844032ba670b4f89180a5bffc, Linux 47bb584237cc285e3a860b70c01f7bda9dcfb05b. Upgrade Linux to 47bb584237cc285e3a860b70c01f7bda9dcfb05b or later.

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

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/d9bd1163c8d8f716f45e54d034ee28757cc85549>
- patch: <https://git.kernel.org/stable/c/1ef45ae7a3938f0844032ba670b4f89180a5bffc>
- patch: <https://git.kernel.org/stable/c/47bb584237cc285e3a860b70c01f7bda9dcfb05b>

## 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-38506>

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