---
id: CVE-2026-53359
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  KVM: x86: Fix shadow paging use-after-free due to unexpected role

  Commit 0cb2af2ea66ad ("KVM: x86: Fix shadow paging use-after-free due
  to unexpected GFN") fixed a sha…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  KVM: x86: Fix shadow paging use-after-free due to unexpected role

  Commit 0cb2af2ea66ad ("KVM: x86: Fix shadow paging use-after-free due
  to unexpected GFN") fixed a sha…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-416
  - CWE-825
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 2.6.36, < 6.1.177'
  - 'linux_kernel >= 6.2, < 6.6.144'
  - 'linux_kernel >= 6.7, < 6.12.95'
  - 'linux_kernel >= 6.13, < 6.18.38'
  - 'linux_kernel >= 6.19, < 7.1.3'
patched:
  - linux_kernel 7.1.3
published: '2026-07-04'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:17:35.393'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-53359'
references:
  - url: 'https://git.kernel.org/stable/c/0b5e8ead71e683bcf6232db16234cf7e6d553a23'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1ae7d5a6db6c190ce183e3098ca0e0846e14d462'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2ad3afa40ac6aa340dada122f9abfa46c0a6eb35'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5e470998a23e4c3d89ed24e8172cb22747e61efa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/81ccda30b4e83d8f5cc4fd50503c44e3a33abfeb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9291654d69e08542de37755cebe4d5b02c3170d1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b1337aae5e194324e4810d561764e7793f8b3864'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'http://www.openwall.com/lists/oss-security/2026/07/06/7'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/V4bel/Januscape/blob/main/assets/write-up.md'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53359.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-53359'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2497033'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-53359'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-53359'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2026070403-CVE-2026-53359-4f57@gregkh/T
  - url: 'https://www.openwall.com/lists/oss-security/2026/07/06/7'
  - url: 'https://access.redhat.com/errata/RHSA-2026:54205'
  - url: 'https://access.redhat.com/errata/RHSA-2026:54187'
  - url: 'https://access.redhat.com/errata/RHSA-2026:43252'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44230'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44231'
  - url: 'https://access.redhat.com/errata/RHSA-2026:40787'
  - url: 'https://access.redhat.com/errata/RHSA-2026:40779'
  - url: 'https://access.redhat.com/errata/RHSA-2026:40764'
  - url: 'https://access.redhat.com/errata/RHSA-2026:39371'
  - url: 'https://access.redhat.com/errata/RHSA-2026:36956'
  - url: 'https://access.redhat.com/errata/RHSA-2026:40082'
  - url: 'https://access.redhat.com/errata/RHSA-2026:37729'
  - url: 'https://access.redhat.com/errata/RHSA-2026:38902'
  - url: 'https://access.redhat.com/errata/RHSA-2026:36957'
  - url: 'https://access.redhat.com/errata/RHSA-2026:43826'
  - url: 'https://access.redhat.com/errata/RHSA-2026:39083'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44004'
  - url: 'https://access.redhat.com/errata/RHSA-2026:49033'
  - url: 'https://access.redhat.com/errata/RHSA-2026:41229'
  - url: 'https://access.redhat.com/errata/RHSA-2026:43847'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44003'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44006'
  - url: 'https://access.redhat.com/errata/RHSA-2026:44007'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-07-08T03:56:43.137575Z'
epss: 0.01368
epssPercentile: 0.71715
exploits:
  github: 7
  githubRepos:
    - 'https://github.com/Aoripus-LTD/Januscape-Hotfix'
    - 'https://github.com/0xBlackash/CVE-2026-53359'
    - 'https://github.com/chuzhongyun/CVE-2026-53359-Kernel-Fix'
  checkedAt: '2026-10-27T19:03:04.070Z'
scores:
  nvd: 8.8
  vendor: 7.8
ingestedAt: '2026-07-04T21:57:46.986Z'
---

## Overview

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

KVM: x86: Fix shadow paging use-after-free due to unexpected role

Commit 0cb2af2ea66ad ("KVM: x86: Fix shadow paging use-after-free due
to unexpected GFN") fixed a shadow paging mismatch between stored and
computed GFNs; the bug could be triggered by changing a PDE mapping from
outside the guest, and then deleting a memslot.  The rmap_remove()
call would miss entries created after the PDE change because the GFN
of the leaf SPTE does not match the GFN of the struct kvm_mmu_page.

A similar hole however remains if the modified PDE points to a non-leaf
page.  In this case the gfn can be made to match, but the role does not
match: the original large 2MB page creates a kvm_mmu_page with direct=1,
while the new 4KB needs a kvm_mmu_page with direct=0.  However,
kvm_mmu_get_child_sp() does not compare the role, and therefore reuses
the page.

The next step is installing a leaf (4KB) SPTE on the new path which
records an rmap entry under the gfn resolved by the walk.  But when
that child is zapped its parent kvm_mmu_page has direct=1 and
kvm_mmu_page_get_gfn() computes the gfn for the 4KB page as
sp->gfn + index instead of using sp->shadowed_translation[] (or sp->gfns[]
in older kernels).  It therefore fails to remove the recorded entry.

When the memslot is dropped the shadow page is freed but the rmap
entry survives, as in the scenario that was already fixed.  Code that
later walks that gfn (dirty logging, MMU notifier invalidation, and
so on) dereferences an sptep that lies in the freed page, causing the
use-after-free.

## Affected

- `linux_kernel >= 2.6.36, < 6.1.177`
- `linux_kernel >= 6.2, < 6.6.144`
- `linux_kernel >= 6.7, < 6.12.95`
- `linux_kernel >= 6.13, < 6.18.38`
- `linux_kernel >= 6.19, < 7.1.3`

## Remediation

Upgrade past the affected range:

- `linux_kernel 7.1.3`

## Vendor advisories

- **RHSA-2026:54205** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.12 · released 2026-08-20 · [advisory](https://access.redhat.com/errata/RHSA-2026:54205)
- **RHSA-2026:54187** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.13 · released 2026-08-20 · [advisory](https://access.redhat.com/errata/RHSA-2026:54187)
- **RHSA-2026:43252** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.14 · released 2026-07-31 · [advisory](https://access.redhat.com/errata/RHSA-2026:43252)
- **RHSA-2026:44230** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.18 · released 2026-07-29 · [advisory](https://access.redhat.com/errata/RHSA-2026:44230)
- **RHSA-2026:44231** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.19 · released 2026-07-29 · [advisory](https://access.redhat.com/errata/RHSA-2026:44231)
- **RHSA-2026:40787** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.20 · released 2026-07-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:40787)
- **RHSA-2026:40779** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.21 · released 2026-07-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:40779)
- **RHSA-2026:40764** · Red Hat · fixed in: Red Hat OpenShift Container Platform 4.22 · released 2026-07-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:40764)
- **RHSA-2026:39371** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux BaseOS EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0), Red Hat Enterprise Linux Real Time for NFV EUS (v. 10.0), Red Hat Enterprise Linux Real Time EUS (v. 10.0) · released 2026-07-14 · [advisory](https://access.redhat.com/errata/RHSA-2026:39371)
- **RHSA-2026:36956** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10), Red Hat Enterprise Linux Real Time for NFV (v. 10), Red Hat Enterprise Linux Real Time (v. 10) · released 2026-07-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:36956)
- **RHSA-2026:40082** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.2), Red Hat Enterprise Linux BaseOS E4S (v.9.2) · released 2026-07-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:40082)
- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 7 · updated 2026-10-13 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53359.json)
