# CVE-2023-53630: iommufd: Fix unpinning of pages when an access is present

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2025-10-07T15:19:33.623Z
- **Modified:** 2026-08-05T09:15:14.724Z

## Who should check

- Anyone running Linux \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 727c28c1cef2bc013d2c8bb6c50e410a3882a04e
- Anyone running Linux 6.2

## Description

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

iommufd: Fix unpinning of pages when an access is present

syzkaller found that the calculation of batch\_last\_index should use
'start\_index' since at input to this function the batch is either empty or
it has already been adjusted to cross any accesses so it will start at the
point we are unmapping from.

Getting this wrong causes the unmap to run over the end of the pages
which corrupts pages that were never mapped. In most cases this triggers
the num pinned debugging:

  WARNING: CPU: 0 PID: 557 at drivers/iommu/iommufd/pages.c:294 \_\_iopt\_area\_unfill\_domain+0x152/0x560
  Modules linked in:
  CPU: 0 PID: 557 Comm: repro Not tainted 6.3.0-rc2-eeac8ede1755 \#1
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
  RIP: 0010:\_\_iopt\_area\_unfill\_domain+0x152/0x560
  Code: d2 0f ff 44 8b 64 24 54 48 8b 44 24 48 31 ff 44 89 e6 48 89 44 24 38 e8 fc d3 0f ff 45 85 e4 0f 85 eb 01 00 00 e8 0e d2 0f ff \<0f\> 0b e8 07 d2 0f ff 48 8b 44 24 38 89 5c 24 58 89 18 8b 44 24 54
  RSP: 0018:ffffc9000108baf0 EFLAGS: 00010246
  RAX: 0000000000000000 RBX: 00000000ffffffff RCX: ffffffff821e3f85
  RDX: 0000000000000000 RSI: ffff88800faf0000 RDI: 0000000000000002
  RBP: ffffc9000108bd18 R08: 000000000003ca25 R09: 0000000000000014
  R10: 000000000003ca00 R11: 0000000000000024 R12: 0000000000000004
  R13: 0000000000000801 R14: 00000000000007ff R15: 0000000000000800
  FS:  00007f3499ce1740(0000) GS:ffff88807dc00000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000020000243 CR3: 00000000179c2001 CR4: 0000000000770ef0
  PKRU: 55555554
  Call Trace:
   \<TASK\>
   iopt\_area\_unfill\_domain+0x32/0x40
   iopt\_table\_remove\_domain+0x23f/0x4c0
   iommufd\_device\_selftest\_detach+0x3a/0x90
   iommufd\_selftest\_destroy+0x55/0x70
   iommufd\_object\_destroy\_user+0xce/0x130
   iommufd\_destroy+0xa2/0xc0
   iommufd\_fops\_ioctl+0x206/0x330
   \_\_x64\_sys\_ioctl+0x10e/0x160
   do\_syscall\_64+0x3b/0x90
   entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

Also add some useful WARN\_ON sanity checks.

## Affected and fixed versions

- Linux: \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 727c28c1cef2bc013d2c8bb6c50e410a3882a04e (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 727c28c1cef2bc013d2c8bb6c50e410a3882a04e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53630.md
Affected: Linux >= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, < 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4; >= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, < 727c28c1cef2bc013d2c8bb6c50e410a3882a04e; Linux 6.2
Fixed in: Linux 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4, Linux 727c28c1cef2bc013d2c8bb6c50e410a3882a04e

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-2023-53630 being exploited?

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

### How serious is CVE-2023-53630?

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

### Which versions are affected by CVE-2023-53630?

Linux \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 727c28c1cef2bc013d2c8bb6c50e410a3882a04e; Linux 6.2.

### Is there a fix for CVE-2023-53630?

Yes. Fixed in Linux 70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4, Linux 727c28c1cef2bc013d2c8bb6c50e410a3882a04e. Upgrade Linux to 727c28c1cef2bc013d2c8bb6c50e410a3882a04e or later.

### How do I check if I'm affected by CVE-2023-53630?

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/70726ce4d898db57bfc4ae30ecd7da63b0dd0aa4>
- patch: <https://git.kernel.org/stable/c/727c28c1cef2bc013d2c8bb6c50e410a3882a04e>

## 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-2023-53630>

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