# CVE-2026-63794: KVM: SVM: Fix page overflow in sev\_dbg\_crypt() for ENCRYPT path

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; 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.17% (percentile 4, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-07-19T12:02:03.488Z
- **Modified:** 2026-11-06T17:18:34.210Z

## Who should check

- Anyone running Linux \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< f701ae476cb92a3a3d8844bb39bb63b4512684c8; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 64f2449841ffc7d203183aa4c748c9c77951ecc5; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 889c2a9c59897ca912bf39df5bb92555a0a13df4; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< e1a0fe288dee07b7da25a71e007c1ecd1080315b; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 720949ed666f34ff28ffdfe1471a5861d1e41fdf; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 2753a097d1fe24c4351c608048612c74108aa89f; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 78ee2d50185a037b3d2452a97f3dad69c3f7f389
- Anyone running Linux 4.16

## Description

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

KVM: SVM: Fix page overflow in sev\_dbg\_crypt() for ENCRYPT path

In sev\_dbg\_crypt(), the per-iteration transfer length is bounded by
the source page offset (PAGE\_SIZE - s\_off) but not by the destination
page offset (PAGE\_SIZE - d\_off).  When d\_off \> s\_off, the encrypt
path (\_\_sev\_dbg\_encrypt\_user) performs a read-modify-write using a
single-page intermediate buffer (dst\_tpage):

  1. \_\_sev\_dbg\_decrypt() expands the size to round\_up(len + (d\_off & 15), 16)
     before issuing the PSP command.  If len + (d\_off & 15) \> PAGE\_SIZE,
     the PSP writes beyond the end of the 4096-byte dst\_tpage allocation.

  2. The subsequent memcpy()/copy\_from\_user() into
     page\_address(dst\_tpage) + (d\_off & 15) of 'len' bytes overflows
     by up to 15 bytes under the same condition.

Trigger example: s\_off = 0, d\_off = 1, debug.len = PAGE\_SIZE -
the PSP is instructed to write round\_up(4097, 16) = 4112 bytes to
a 4096-byte buffer.

Fix by also bounding len by (PAGE\_SIZE - d\_off), the same check that
sev\_send\_update\_data() already performs for its single-page guest
region.

 ==================================================================
 BUG: KASAN: slab-use-after-free in sev\_dbg\_crypt+0x993/0xd10 \[kvm\_amd\]
 Write of size 4095 at addr ff110062293bb009 by task sev\_dbg\_test/228214

 CPU: 96 UID: 0 PID: 228214 Comm: sev\_dbg\_test Tainted: G     U  W           7.0.0-smp--5ce9b0c48211-dbg \#156 PREEMPTLAZY
 Tainted: \[U\]=USER, \[W\]=WARN
 Hardware name: Google Astoria/astoria, BIOS 0.20250817.1-0 08/25/2025
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x54/0x70
  print\_report+0xbc/0x260
  kasan\_report+0xa2/0xd0
  kasan\_check\_range+0x25f/0x2c0
  \_\_asan\_memcpy+0x40/0x70
  sev\_dbg\_crypt+0x993/0xd10 \[kvm\_amd\]
  sev\_mem\_enc\_ioctl+0x33c/0x450 \[kvm\_amd\]
  kvm\_vm\_ioctl+0x65d/0x6d0 \[kvm\]
  \_\_se\_sys\_ioctl+0xb2/0x100
  do\_syscall\_64+0xe8/0x870
  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
  \</TASK\>

 The buggy address belongs to the physical page:
 page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x7fe72b6a0 pfn:0x62293bb
 memcg:ff11000112827d82
 flags: 0x1400000000000000(node=1\|zone=1)
 raw: 1400000000000000 0000000000000000 dead000000000122 0000000000000000
 raw: 00000007fe72b6a0 0000000000000000 00000001ffffffff ff11000112827d82
 page dumped because: kasan: bad access detected

 Memory state around the buggy address:
  ff110062293bbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ff110062293bbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 \>ff110062293bc000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                    ^
  ff110062293bc080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
  ff110062293bc100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ==================================================================
 Disabling lock debugging due to kernel taint

\[sean: add sample KASAN splat, Fixes, and stable@\]

## Affected and fixed versions

- Linux: \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< f701ae476cb92a3a3d8844bb39bb63b4512684c8; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 64f2449841ffc7d203183aa4c748c9c77951ecc5; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 889c2a9c59897ca912bf39df5bb92555a0a13df4; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< e1a0fe288dee07b7da25a71e007c1ecd1080315b; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 720949ed666f34ff28ffdfe1471a5861d1e41fdf; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 2753a097d1fe24c4351c608048612c74108aa89f; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 78ee2d50185a037b3d2452a97f3dad69c3f7f389 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 78ee2d50185a037b3d2452a97f3dad69c3f7f389 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-63794.md
Affected: Linux >= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, < f701ae476cb92a3a3d8844bb39bb63b4512684c8; >= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, < 64f2449841ffc7d203183aa4c748c9c77951ecc5; >= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, < 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7; >= 24f41fb23a39bc2b6f190dc…
Fixed in: Linux 64f2449841ffc7d203183aa4c748c9c77951ecc5, Linux 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7, Linux 889c2a9c59897ca912bf39df5bb92555a0a13df4, Linux 720949ed666f34ff28ffdfe1471a5861d1e41fdf, Linux 2753a097d1fe24c4351c608048612c74108aa89f, Linux 78ee2d50185a037b3d2452a97f3dad69c3f7f389

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

There is no confirmed exploitation: CVE-2026-63794 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-63794?

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

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

Linux \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< f701ae476cb92a3a3d8844bb39bb63b4512684c8; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 64f2449841ffc7d203183aa4c748c9c77951ecc5; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 889c2a9c59897ca912bf39df5bb92555a0a13df4; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< e1a0fe288dee07b7da25a71e007c1ecd1080315b; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 720949ed666f34ff28ffdfe1471a5861d1e41fdf; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 2753a097d1fe24c4351c608048612c74108aa89f; \>= 24f41fb23a39bc2b6f190dcef35a5813a4bf183a, \< 78ee2d50185a037b3d2452a97f3dad69c3f7f389; Linux 4.16.

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

Yes. Fixed in Linux 64f2449841ffc7d203183aa4c748c9c77951ecc5, Linux 9349b50f4b11f135fe73b56cb2c2c872d8bc71d7, Linux 889c2a9c59897ca912bf39df5bb92555a0a13df4, Linux 720949ed666f34ff28ffdfe1471a5861d1e41fdf, Linux 2753a097d1fe24c4351c608048612c74108aa89f, Linux 78ee2d50185a037b3d2452a97f3dad69c3f7f389. Upgrade Linux to 78ee2d50185a037b3d2452a97f3dad69c3f7f389 or later.

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

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/f701ae476cb92a3a3d8844bb39bb63b4512684c8>
- patch: <https://git.kernel.org/stable/c/64f2449841ffc7d203183aa4c748c9c77951ecc5>
- patch: <https://git.kernel.org/stable/c/9349b50f4b11f135fe73b56cb2c2c872d8bc71d7>
- patch: <https://git.kernel.org/stable/c/889c2a9c59897ca912bf39df5bb92555a0a13df4>
- patch: <https://git.kernel.org/stable/c/e1a0fe288dee07b7da25a71e007c1ecd1080315b>
- patch: <https://git.kernel.org/stable/c/720949ed666f34ff28ffdfe1471a5861d1e41fdf>
- patch: <https://git.kernel.org/stable/c/2753a097d1fe24c4351c608048612c74108aa89f>
- patch: <https://git.kernel.org/stable/c/78ee2d50185a037b3d2452a97f3dad69c3f7f389>

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

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