# CVE-2023-53236: iommufd: Do not corrupt the pfn list when doing batch carry

> 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, CNA) `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.21% (percentile 6, 2026-11-26)
- **Published:** 2025-09-15T14:22:09.250Z
- **Modified:** 2026-08-05T09:13:13.962Z

## Who should check

- Anyone running Linux \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 6ed5784526ddc0fb58b1798af36ec0c3139a8dca; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 13a0d1ae7ee6b438f5537711a8c60cba00554943
- Anyone running Linux 6.2

## Description

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

iommufd: Do not corrupt the pfn list when doing batch carry

If batch-\>end is 0 then setting npfns\[0\] before computing the new value of
pfns will fail to adjust the pfn and result in various page accounting
corruptions. It should be ordered after.

This seems to result in various kinds of page meta-data corruption related
failures:

  WARNING: CPU: 1 PID: 527 at mm/gup.c:75 try\_grab\_folio+0x503/0x740
  Modules linked in:
  CPU: 1 PID: 527 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:try\_grab\_folio+0x503/0x740
  Code: e3 01 48 89 de e8 6d c1 dd ff 48 85 db 0f 84 7c fe ff ff e8 4f bf dd ff 49 8d 47 ff 48 89 45 d0 e9 73 fe ff ff e8 3d bf dd ff \<0f\> 0b 31 db e9 d0 fc ff ff e8 2f bf dd ff 48 8b 5d c8 31 ff 48 89
  RSP: 0018:ffffc90000f37908 EFLAGS: 00010046
  RAX: 0000000000000000 RBX: 00000000fffffc02 RCX: ffffffff81504c26
  RDX: 0000000000000000 RSI: ffff88800d030000 RDI: 0000000000000002
  RBP: ffffc90000f37948 R08: 000000000003ca24 R09: 0000000000000008
  R10: 000000000003ca00 R11: 0000000000000023 R12: ffffea000035d540
  R13: 0000000000000001 R14: 0000000000000000 R15: ffffea000035d540
  FS:  00007fecbf659740(0000) GS:ffff88807dd00000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 00000000200011c3 CR3: 000000000ef66006 CR4: 0000000000770ee0
  PKRU: 55555554
  Call Trace:
   \<TASK\>
   internal\_get\_user\_pages\_fast+0xd32/0x2200
   pin\_user\_pages\_fast+0x65/0x90
   pfn\_reader\_user\_pin+0x376/0x390
   pfn\_reader\_next+0x14a/0x7b0
   pfn\_reader\_first+0x140/0x1b0
   iopt\_area\_fill\_domain+0x74/0x210
   iopt\_table\_add\_domain+0x30e/0x6e0
   iommufd\_device\_selftest\_attach+0x7f/0x140
   iommufd\_test+0x10ff/0x16f0
   iommufd\_fops\_ioctl+0x206/0x330
   \_\_x64\_sys\_ioctl+0x10e/0x160
   do\_syscall\_64+0x3b/0x90
   entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

## Affected and fixed versions

- Linux: \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 6ed5784526ddc0fb58b1798af36ec0c3139a8dca; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 13a0d1ae7ee6b438f5537711a8c60cba00554943 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 13a0d1ae7ee6b438f5537711a8c60cba00554943 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-53236. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53236.md
Affected: Linux >= f394576eb11dbcd3a740fa41e577b97f0720d26e, < 6ed5784526ddc0fb58b1798af36ec0c3139a8dca; >= f394576eb11dbcd3a740fa41e577b97f0720d26e, < 13a0d1ae7ee6b438f5537711a8c60cba00554943; Linux 6.2
Fixed in: Linux 6ed5784526ddc0fb58b1798af36ec0c3139a8dca, Linux 13a0d1ae7ee6b438f5537711a8c60cba00554943

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

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

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

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

Linux \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 6ed5784526ddc0fb58b1798af36ec0c3139a8dca; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 13a0d1ae7ee6b438f5537711a8c60cba00554943; Linux 6.2.

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

Yes. Fixed in Linux 6ed5784526ddc0fb58b1798af36ec0c3139a8dca, Linux 13a0d1ae7ee6b438f5537711a8c60cba00554943. Upgrade Linux to 13a0d1ae7ee6b438f5537711a8c60cba00554943 or later.

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

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/6ed5784526ddc0fb58b1798af36ec0c3139a8dca>
- patch: <https://git.kernel.org/stable/c/13a0d1ae7ee6b438f5537711a8c60cba00554943>

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

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