# CVE-2026-31592: KVM: SEV: Protect \*all\* of sev\_mem\_enc\_register\_region() with kvm-\>lock

> 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.17% (percentile 4, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-04-24T14:42:18.921Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< c506405f438b3e739fa43d509d367d1946ad9ffe; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 777a8ebd2da3529a455af022ed929408fdbb161f; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 25c85d5831201391fb920d51067c6d93cce55348; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 35a0963d361f98bba798fd15d229dcb166c04684; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< ab725ac3022469ecd4d7aa7d5646712e98b249d8; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 0ff93ff0ba82e9511770e175fa50682a1ab14fb6; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< b6408b6cec5df76a165575777800ef2aba12b109
- Anyone running Linux 4.16

## Description

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

KVM: SEV: Protect \*all\* of sev\_mem\_enc\_register\_region() with kvm-\>lock

Take and hold kvm-\>lock for before checking sev\_guest() in
sev\_mem\_enc\_register\_region(), as sev\_guest() isn't stable unless kvm-\>lock
is held (or KVM can guarantee KVM\_SEV\_INIT{2} has completed and can't
rollack state).  If KVM\_SEV\_INIT{2} fails, KVM can end up trying to add to
a not-yet-initialized sev-\>regions\_list, e.g. triggering a \#GP

  Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 \[\#1\] SMP KASAN NOPTI
  KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
  CPU: 110 UID: 0 PID: 72717 Comm: syz.15.11462 Tainted: G     U  W  O        6.16.0-smp-DEV \#1 NONE
  Tainted: \[U\]=USER, \[W\]=WARN, \[O\]=OOT\_MODULE
  Hardware name: Google, Inc. Arcadia\_IT\_80/Arcadia\_IT\_80, BIOS 12.52.0-0 10/28/2024
  RIP: 0010:sev\_mem\_enc\_register\_region+0x3f0/0x4f0 ../include/linux/list.h:83
  Code: \<41\> 80 3c 04 00 74 08 4c 89 ff e8 f1 c7 a2 00 49 39 ed 0f 84 c6 00
  RSP: 0018:ffff88838647fbb8 EFLAGS: 00010256
  RAX: dffffc0000000000 RBX: 1ffff92015cf1e0b RCX: dffffc0000000000
  RDX: 0000000000000000 RSI: 0000000000001000 RDI: ffff888367870000
  RBP: ffffc900ae78f050 R08: ffffea000d9e0007 R09: 1ffffd4001b3c000
  R10: dffffc0000000000 R11: fffff94001b3c001 R12: 0000000000000000
  R13: ffff8982ab0bde00 R14: ffffc900ae78f058 R15: 0000000000000000
  FS:  00007f34e9dc66c0(0000) GS:ffff89ee64d33000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00007fe180adef98 CR3: 000000047210e000 CR4: 0000000000350ef0
  Call Trace:
   \<TASK\>
   kvm\_arch\_vm\_ioctl+0xa72/0x1240 ../arch/x86/kvm/x86.c:7371
   kvm\_vm\_ioctl+0x649/0x990 ../virt/kvm/kvm\_main.c:5363
   \_\_se\_sys\_ioctl+0x101/0x170 ../fs/ioctl.c:51
   do\_syscall\_x64 ../arch/x86/entry/syscall\_64.c:63 \[inline\]
   do\_syscall\_64+0x6f/0x1f0 ../arch/x86/entry/syscall\_64.c:94
   entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
  RIP: 0033:0x7f34e9f7e9a9
  Code: \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
  RSP: 002b:00007f34e9dc6038 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
  RAX: ffffffffffffffda RBX: 00007f34ea1a6080 RCX: 00007f34e9f7e9a9
  RDX: 0000200000000280 RSI: 000000008010aebb RDI: 0000000000000007
  RBP: 00007f34ea000d69 R08: 0000000000000000 R09: 0000000000000000
  R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
  R13: 0000000000000000 R14: 00007f34ea1a6080 R15: 00007ffce77197a8
   \</TASK\>

with a syzlang reproducer that looks like:

  syz\_kvm\_add\_vcpu$x86(0x0, &(0x7f0000000040)={0x0, &(0x7f0000000180)=ANY=\[\], 0x70}) (async)
  syz\_kvm\_add\_vcpu$x86(0x0, &(0x7f0000000080)={0x0, &(0x7f0000000180)=ANY=\[@ANYBLOB="..."\], 0x4f}) (async)
  r0 = openat$kvm(0xffffffffffffff9c, &(0x7f0000000200), 0x0, 0x0)
  r1 = ioctl$KVM\_CREATE\_VM(r0, 0xae01, 0x0)
  r2 = openat$kvm(0xffffffffffffff9c, &(0x7f0000000240), 0x0, 0x0)
  r3 = ioctl$KVM\_CREATE\_VM(r2, 0xae01, 0x0)
  ioctl$KVM\_SET\_CLOCK(r3, 0xc008aeba, &(0x7f0000000040)={0x1, 0x8, 0x0, 0x5625e9b0}) (async)
  ioctl$KVM\_SET\_PIT2(r3, 0x8010aebb, &(0x7f0000000280)={\[...\], 0x5}) (async)
  ioctl$KVM\_SET\_PIT2(r1, 0x4070aea0, 0x0) (async)
  r4 = ioctl$KVM\_CREATE\_VM(0xffffffffffffffff, 0xae01, 0x0)
  openat$kvm(0xffffffffffffff9c, 0x0, 0x0, 0x0) (async)
  ioctl$KVM\_SET\_USER\_MEMORY\_REGION(r4, 0x4020ae46, &(0x7f0000000400)={0x0, 0x0, 0x0, 0x2000, &(0x7f0000001000/0x2000)=nil}) (async)
  r5 = ioctl$KVM\_CREATE\_VCPU(r4, 0xae41, 0x2)
  close(r0) (async)
  openat$kvm(0xffffffffffffff9c, &(0x7f0000000000), 0x8000, 0x0) (async)
  ioctl$KVM\_SET\_GUEST\_DEBUG(r5, 0x4048ae9b, &(0x7f0000000300)={0x4376ea830d46549b, 0x0, \[0x46, 0x0, 0x0, 0x0, 0x0, 0x1000\]}) (async)
  ioctl$KVM\_RUN(r5, 0xae80, 0x0)

Opportunistically use guard() to avoid having to define a new error label
and goto usage.

## Affected and fixed versions

- Linux: \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< c506405f438b3e739fa43d509d367d1946ad9ffe; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 777a8ebd2da3529a455af022ed929408fdbb161f; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 25c85d5831201391fb920d51067c6d93cce55348; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 35a0963d361f98bba798fd15d229dcb166c04684; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< ab725ac3022469ecd4d7aa7d5646712e98b249d8; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 0ff93ff0ba82e9511770e175fa50682a1ab14fb6; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< b6408b6cec5df76a165575777800ef2aba12b109 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31592.md
Affected: Linux >= 1e80fdc09d121d8327cdf62eefbb5abadddca792, < c506405f438b3e739fa43d509d367d1946ad9ffe; >= 1e80fdc09d121d8327cdf62eefbb5abadddca792, < 777a8ebd2da3529a455af022ed929408fdbb161f; >= 1e80fdc09d121d8327cdf62eefbb5abadddca792, < 25c85d5831201391fb920d51067c6d93cce55348; >= 1e80fdc09d121d8327cdf62…
Fixed in: Linux 777a8ebd2da3529a455af022ed929408fdbb161f, Linux 25c85d5831201391fb920d51067c6d93cce55348, Linux 35a0963d361f98bba798fd15d229dcb166c04684, Linux 0ff93ff0ba82e9511770e175fa50682a1ab14fb6

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-2026-31592 being exploited?

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

### How serious is CVE-2026-31592?

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

### Which versions are affected by CVE-2026-31592?

Linux \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< c506405f438b3e739fa43d509d367d1946ad9ffe; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 777a8ebd2da3529a455af022ed929408fdbb161f; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 25c85d5831201391fb920d51067c6d93cce55348; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 35a0963d361f98bba798fd15d229dcb166c04684; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< ab725ac3022469ecd4d7aa7d5646712e98b249d8; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< 0ff93ff0ba82e9511770e175fa50682a1ab14fb6; \>= 1e80fdc09d121d8327cdf62eefbb5abadddca792, \< b6408b6cec5df76a165575777800ef2aba12b109; Linux 4.16.

### Is there a fix for CVE-2026-31592?

Yes. Fixed in Linux 777a8ebd2da3529a455af022ed929408fdbb161f, Linux 25c85d5831201391fb920d51067c6d93cce55348, Linux 35a0963d361f98bba798fd15d229dcb166c04684, Linux 0ff93ff0ba82e9511770e175fa50682a1ab14fb6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31592?

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/35a0963d361f98bba798fd15d229dcb166c04684>
- patch: <https://git.kernel.org/stable/c/ab725ac3022469ecd4d7aa7d5646712e98b249d8>
- patch: <https://git.kernel.org/stable/c/0ff93ff0ba82e9511770e175fa50682a1ab14fb6>
- patch: <https://git.kernel.org/stable/c/b6408b6cec5df76a165575777800ef2aba12b109>
- other: <https://git.kernel.org/stable/c/c506405f438b3e739fa43d509d367d1946ad9ffe>
- other: <https://git.kernel.org/stable/c/777a8ebd2da3529a455af022ed929408fdbb161f>
- other: <https://git.kernel.org/stable/c/25c85d5831201391fb920d51067c6d93cce55348>

## 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-2026-31592>

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