# CVE-2023-54239: iommufd: Check for uptr overflow

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-12-30T12:11:28.378Z
- **Modified:** 2026-06-17T06:47:04.393Z

## Who should check

- Anyone running Linux \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 800963e7eb001ada8cf2418f159fb649694467f1; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< e4395701330fc4aee530905039516fe770b81417
- Anyone running Linux 6.2

## Description

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

iommufd: Check for uptr overflow

syzkaller found that setting up a map with a user VA that wraps past zero
can trigger WARN\_ONs, particularly from pin\_user\_pages weirdly returning 0
due to invalid arguments.

Prevent creating a pages with a uptr and size that would math overflow.

  WARNING: CPU: 0 PID: 518 at drivers/iommu/iommufd/pages.c:793 pfn\_reader\_user\_pin+0x2e6/0x390
  Modules linked in:
  CPU: 0 PID: 518 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:pfn\_reader\_user\_pin+0x2e6/0x390
  Code: b1 11 e9 25 fe ff ff e8 28 e4 0f ff 31 ff 48 89 de e8 2e e6 0f ff 48 85 db 74 0a e8 14 e4 0f ff e9 4d ff ff ff e8 0a e4 0f ff \<0f\> 0b bb f2 ff ff ff e9 3c ff ff ff e8 f9 e3 0f ff ba 01 00 00 00
  RSP: 0018:ffffc90000f9fa30 EFLAGS: 00010246
  RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff821e2b72
  RDX: 0000000000000000 RSI: ffff888014184680 RDI: 0000000000000002
  RBP: ffffc90000f9fa78 R08: 00000000000000ff R09: 0000000079de6f4e
  R10: ffffc90000f9f790 R11: ffff888014185418 R12: ffffc90000f9fc60
  R13: 0000000000000002 R14: ffff888007879800 R15: 0000000000000000
  FS:  00007f4227555740(0000) GS:ffff88807dc00000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000020000043 CR3: 000000000e748005 CR4: 0000000000770ef0
  PKRU: 55555554
  Call Trace:
   \<TASK\>
   pfn\_reader\_next+0x14a/0x7b0
   ? interval\_tree\_double\_span\_iter\_update+0x11a/0x140
   pfn\_reader\_first+0x140/0x1b0
   iopt\_pages\_rw\_slow+0x71/0x280
   ? \_\_this\_cpu\_preempt\_check+0x20/0x30
   iopt\_pages\_rw\_access+0x2b2/0x5b0
   iommufd\_access\_rw+0x19f/0x2f0
   iommufd\_test+0xd11/0x16f0
   ? write\_comp\_data+0x2f/0x90
   iommufd\_fops\_ioctl+0x206/0x330
   \_\_x64\_sys\_ioctl+0x10e/0x160
   ? \_\_pfx\_iommufd\_fops\_ioctl+0x10/0x10
   do\_syscall\_64+0x3b/0x90
   entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

## Affected and fixed versions

- Linux: \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 800963e7eb001ada8cf2418f159fb649694467f1; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< e4395701330fc4aee530905039516fe770b81417 (cvelist)
- Linux: 6.2 (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-2023-54239. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54239.md
Affected: Linux >= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, < 800963e7eb001ada8cf2418f159fb649694467f1; >= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, < e4395701330fc4aee530905039516fe770b81417; Linux 6.2
Fixed in: Linux 800963e7eb001ada8cf2418f159fb649694467f1

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< 800963e7eb001ada8cf2418f159fb649694467f1; \>= 8d160cd4d5066f864ec0f2c981470e55ac03ac27, \< e4395701330fc4aee530905039516fe770b81417; Linux 6.2.

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

Yes. Fixed in Linux 800963e7eb001ada8cf2418f159fb649694467f1. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/800963e7eb001ada8cf2418f159fb649694467f1>
- other: <https://git.kernel.org/stable/c/e4395701330fc4aee530905039516fe770b81417>

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

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