KVM: SVM: Fix page overflow in sev_dbg_crypt() for ENCRYPT path
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
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@]
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.16 and later | 5.10.260, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2 | Patch available | CNA |
- Linux VendorLinux Affected 4.16 and later Fixed in 5.10.260, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.16 to before 5.10.260; 5.11 to before 5.15.211; 5.16 to before 6.1.177; 6.2 to before 6.6.144; 6.7 to before 6.12.95; 6.13 to before 6.18.38; 6.19 to before 7.1.3 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.16 to before 5.10.260; 5.11 to before 5.15.211; 5.16 to before 6.1.177; 6.2 to before 6.6.144; 6.7 to before 6.12.95; 6.13 to before 6.18.38; 6.19 to before 7.1.3 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.10.260, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2
Red Hat 4 advisories
- RHSA-2026:76738 Released 2026-10-08 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- 10Base-SMTV kernel-modules-internal-6.12.0-211.63.1.el10_2
- Red Hat Enterprise Linux AppStream (v. 10) kernel-64k-debug-devel-6.12.0-211.63.1.el10_2, kernel-64k-debug-devel-matched-6.12.0-211.63.1.el10_2, kernel-64k-devel-6.12.0-211.63.1.el10_2 +12
- Red Hat Enterprise Linux BaseOS (v. 10) kernel-6.12.0-211.63.1.el10_2, kernel-64k-6.12.0-211.63.1.el10_2, kernel-64k-core-6.12.0-211.63.1.el10_2 +29
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) kernel-tools-libs-devel-6.12.0-211.63.1.el10_2, libperf-6.12.0-211.63.1.el10_2
- Red Hat Enterprise Linux Hidden (v. 10) kernel-modules-internal-6.12.0-211.63.1.el10_2
- Red Hat Enterprise Linux Real Time (v. 10) kernel-rt-6.12.0-211.63.1.el10_2, kernel-rt-64k-6.12.0-211.63.1.el10_2, kernel-rt-64k-core-6.12.0-211.63.1.el10_2 +21
- Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt-6.12.0-211.63.1.el10_2, kernel-rt-core-6.12.0-211.63.1.el10_2, kernel-rt-debug-6.12.0-211.63.1.el10_2 +9
- RHSA-2026:75747 Released 2026-10-05 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.171.1.el8_10, kernel-4.18.0-553.171.1.el8_10, kernel-abi-stablelists-4.18.0-553.171.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.171.1.el8_10
- RHSA-2026:75746 Released 2026-10-05 · Red Hat rating Importantkernel-rt security, bug fix, and enhancement update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.171.1.rt7.512.el8_10, kernel-rt-core-4.18.0-553.171.1.rt7.512.el8_10, kernel-rt-debug-4.18.0-553.171.1.rt7.512.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.171.1.rt7.512.el8_10, kernel-rt-core-4.18.0-553.171.1.rt7.512.el8_10, kernel-rt-debug-4.18.0-553.171.1.rt7.512.el8_10 +7
Show 1 more Red Hat advisories
- RHSA-2026:74438 Released 2026-10-02 · Red Hat rating Moderatekernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-687.54.1.el9_8, kernel-64k-debug-devel-matched-5.14.0-687.54.1.el9_8, kernel-64k-devel-5.14.0-687.54.1.el9_8 +12
- Red Hat Enterprise Linux BaseOS (v. 9) kernel-5.14.0-687.54.1.el9_8, kernel-64k-5.14.0-687.54.1.el9_8, kernel-64k-core-5.14.0-687.54.1.el9_8 +28
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) kernel-tools-libs-devel-5.14.0-687.54.1.el9_8, libperf-5.14.0-687.54.1.el9_8
- Red Hat Enterprise Linux Real Time (v. 9) kernel-rt-5.14.0-687.54.1.el9_8, kernel-rt-64k-5.14.0-687.54.1.el9_8, kernel-rt-64k-core-5.14.0-687.54.1.el9_8 +21
- Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt-5.14.0-687.54.1.el9_8, kernel-rt-core-5.14.0-687.54.1.el9_8, kernel-rt-debug-5.14.0-687.54.1.el9_8 +9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| 10Base-SMTV | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:74438 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2026:75747 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2026:74438 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2026:75747 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2026:74438 |
| Red Hat Enterprise Linux Hidden (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2026:75746 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2026:75746 |
| Red Hat Enterprise Linux Real Time (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux Real Time (v. 9) | Fixed | RHSA-2026:74438 |
| Red Hat Enterprise Linux Real Time for NFV (v. 10) | Fixed | RHSA-2026:76738 |
| Red Hat Enterprise Linux Real Time for NFV (v. 9) | Fixed | RHSA-2026:74438 |
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2026-63794
- 2026-10-03 Alias added: GHSA-8vm9-66j5-xm27
- 2026-10-05 Fix available: RHSA-2026:75746 · Red Hat
- 2026-10-05 Fix available: RHSA-2026:75747 · Red Hat
- 2026-10-05 Fix available: Red Hat Enterprise Linux BaseOS (v. 8), Red Hat Enterprise Linux CRB (v. 8), Red Hat Enterprise Linux NFV (v. 8) +1 · Red Hat
- 2026-10-26 Fix available: RHSA-2026:76738 · Red Hat
- 2026-10-26 Fix available: 10Base-SMTV, Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10) +4 · Red Hat
- 2026-11-06 CISA SSVC decision points changed
References
Patch 8
- https://git.kernel.org/stable/c/f701ae476cb92a3a3d8844bb39bb63b4512684c8
- https://git.kernel.org/stable/c/64f2449841ffc7d203183aa4c748c9c77951ecc5
- https://git.kernel.org/stable/c/9349b50f4b11f135fe73b56cb2c2c872d8bc71d7
- https://git.kernel.org/stable/c/889c2a9c59897ca912bf39df5bb92555a0a13df4
- https://git.kernel.org/stable/c/e1a0fe288dee07b7da25a71e007c1ecd1080315b
- https://git.kernel.org/stable/c/720949ed666f34ff28ffdfe1471a5861d1e41fdf
- https://git.kernel.org/stable/c/2753a097d1fe24c4351c608048612c74108aa89f
- https://git.kernel.org/stable/c/78ee2d50185a037b3d2452a97f3dad69c3f7f389
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2026-63794 · CVE Program
- CVE-2026-63794 · NVD
- FIRST EPSS
- GHSA-8vm9-66j5-xm27 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-63794 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences