# CVE-2026-53360: KVM: SEV: Require in-GHCB scratch area if GHCB v2+ is in use

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **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
- **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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-125, CWE-787
- **Published:** 2026-07-04T11:53:58.657Z
- **Modified:** 2026-10-19T20:19:16.147Z

## Who should check

- Anyone running Linux \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< bf9ba093fbb83c0c9a3dedd50efec29424eca2fc; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< c9b4198fbc6ed99a9da4bee9f74bb730f926c9ae; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< b328ede59ac34e7998e1eee5e5f0cc26c2a91846; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< db3f2195d29344a3cf1e9dd9ab7f21ced7308cf7
- Anyone running Linux 6.10

## Description

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

KVM: SEV: Require in-GHCB scratch area if GHCB v2+ is in use

As per the GHCB spec, when using GHCB v2+ require the software scratch area
to reside in the GHCB's shared buffer.  Note, things like Page State Change
(PSC) requests \_rely\_ on this behavior, as the guest can't provide a length
when making the request, i.e. the size of the guest payload is bounded by
the size of the shared buffer.

Failure to force usage of the GHCB, and a slew of other flaws, lets a
malicious SNP guest corrupt host kernel heap memory, and leak host heap
layout information.

setup\_vmgexit\_scratch() allocates a buffer via kvzalloc(exit\_info\_2),
where exit\_info\_2 is guest-controlled. With exit\_info\_2=24, this yields
a 24-byte allocation in kmalloc-cg-32 (32-byte slab objects). The buffer
holds an 8-byte psc\_hdr followed by 8-byte psc\_entry structs, so only
entries\[0\] and entries\[1\] are in-bounds.

snp\_begin\_psc() validates end\_entry against VMGEXIT\_PSC\_MAX\_COUNT (253)
but NOT against the actual buffer size:

      idx\_end = hdr-\>end\_entry;

      if (idx\_end \>= VMGEXIT\_PSC\_MAX\_COUNT) {   // checks 253, not buffer
          snp\_complete\_psc(svm, ...);
          return 1;
      }

      for (idx = idx\_start; idx \<= idx\_end; idx++) {
          entry\_start = entries\[idx\];           // OOB when idx \>= 2

The guest sets end\_entry=10+, causing the host to iterate entries\[2+\]
which are OOB into adjacent slab objects. For each OOB entry:

  - The host reads 8 bytes (OOB READ / info leak oracle)
  - If the data passes PSC validation, \_\_snp\_complete\_one\_psc() writes
    cur\_page = 1 or 512 into the entry (OOB WRITE, sev.c:3806)
  - If validation fails, the error response reveals whether adjacent
    memory is zero vs non-zero (information disclosure to guest)

The guest controls allocation size (exit\_info\_2), entry range
(cur\_entry/end\_entry), and can fire unlimited VMGEXITs to repeatedly
hit different slab positions.

By exploiting the variety of bugs, a malicious SEV-SNP guest can:
    - OOB read adjacent kmalloc-cg-32 objects (heap layout disclosure)
    - OOB write cur\_page bits into adjacent objects (heap corruption)
    - Trigger use-after-free conditions across VMGEXITs

E.g. with KASAN enabled, a single insmod of the PoC guest module
produces 73 KASAN reports:

    BUG: KASAN: slab-out-of-bounds in snp\_begin\_psc+0x126/0x890
    Read of size 8 at addr ffff888219ffb5e0 by task qemu-system-x86/2199

    BUG: KASAN: slab-out-of-bounds in snp\_begin\_psc+0x468/0x890
    Write of size 8 at addr ffff888351566648 by task qemu-system-x86/2199

    The buggy address belongs to the object at ffff888XXXXXXXXX
     which belongs to the cache kmalloc-cg-32 of size 32
    The buggy address is located N bytes to the right of
     allocated 32-byte region \[ffff888XXXXXXXXX, ffff888XXXXXXXXX)

  Breakdown:
    62 slab-out-of-bounds (reads + writes past allocation)
     7 slab-use-after-free
     4 use-after-free

All credit to Stan for the wonderful description and reproducer!

\[sean: write changelog\]

## Affected and fixed versions

- Linux: \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< bf9ba093fbb83c0c9a3dedd50efec29424eca2fc; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< c9b4198fbc6ed99a9da4bee9f74bb730f926c9ae; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< b328ede59ac34e7998e1eee5e5f0cc26c2a91846; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< db3f2195d29344a3cf1e9dd9ab7f21ced7308cf7 (cvelist)
- Linux: 6.10 (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-53360. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53360.md
Affected: Linux >= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, < bf9ba093fbb83c0c9a3dedd50efec29424eca2fc; >= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, < c9b4198fbc6ed99a9da4bee9f74bb730f926c9ae; >= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, < b328ede59ac34e7998e1eee5e5f0cc26c2a91846; >= 4af663c2f64a8d252e690c6…
Fixed in: no fixed version listed yet

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

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

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

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

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

Linux \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< bf9ba093fbb83c0c9a3dedd50efec29424eca2fc; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< c9b4198fbc6ed99a9da4bee9f74bb730f926c9ae; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< b328ede59ac34e7998e1eee5e5f0cc26c2a91846; \>= 4af663c2f64a8d252e690c60cf8b8abf22dc2951, \< db3f2195d29344a3cf1e9dd9ab7f21ced7308cf7; Linux 6.10.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/bf9ba093fbb83c0c9a3dedd50efec29424eca2fc>
- patch: <https://git.kernel.org/stable/c/c9b4198fbc6ed99a9da4bee9f74bb730f926c9ae>
- patch: <https://git.kernel.org/stable/c/b328ede59ac34e7998e1eee5e5f0cc26c2a91846>
- patch: <https://git.kernel.org/stable/c/db3f2195d29344a3cf1e9dd9ab7f21ced7308cf7>

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

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