# CVE-2023-54060: iommufd: Set end correctly when doing batch carry

> 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.22% (percentile 7, 2026-11-26)
- **Published:** 2025-12-24T12:23:07.276Z
- **Modified:** 2026-08-05T09:16:49.139Z

## Who should check

- Anyone running Linux \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 176f36a376c417b58d19f79edfce20db9317eaa2; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< b7c822fa6b7701b17e139f1c562fc24135880ed4
- Anyone running Linux 6.2

## Description

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

iommufd: Set end correctly when doing batch carry

Even though the test suite covers this it somehow became obscured that
this wasn't working.

The test iommufd\_ioas.mock\_domain.access\_domain\_destory would blow up
rarely.

end should be set to 1 because this just pushed an item, the carry, to the
pfns list.

Sometimes the test would blow up with:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 \[\#1\] SMP
  CPU: 5 PID: 584 Comm: iommufd Not tainted 6.5.0-rc1-dirty \#1236
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
  RIP: 0010:batch\_unpin+0xa2/0x100 \[iommufd\]
  Code: 17 48 81 fe ff ff 07 00 77 70 48 8b 15 b7 be 97 e2 48 85 d2 74 14 48 8b 14 fa 48 85 d2 74 0b 40 0f b6 f6 48 c1 e6 04 48 01 f2 \<48\> 8b 3a 48 c1 e0 06 89 ca 48 89 de 48 83 e7 f0 48 01 c7 e8 96 dc
  RSP: 0018:ffffc90001677a58 EFLAGS: 00010246
  RAX: 00007f7e2646f000 RBX: 0000000000000000 RCX: 0000000000000001
  RDX: 0000000000000000 RSI: 00000000fefc4c8d RDI: 0000000000fefc4c
  RBP: ffffc90001677a80 R08: 0000000000000048 R09: 0000000000000200
  R10: 0000000000030b98 R11: ffffffff81f3bb40 R12: 0000000000000001
  R13: ffff888101f75800 R14: ffffc90001677ad0 R15: 00000000000001fe
  FS:  00007f9323679740(0000) GS:ffff8881ba540000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000000000000 CR3: 0000000105ede003 CR4: 00000000003706a0
  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
  Call Trace:
   \<TASK\>
   ? show\_regs+0x5c/0x70
   ? \_\_die+0x1f/0x60
   ? page\_fault\_oops+0x15d/0x440
   ? lock\_release+0xbc/0x240
   ? exc\_page\_fault+0x4a4/0x970
   ? asm\_exc\_page\_fault+0x27/0x30
   ? batch\_unpin+0xa2/0x100 \[iommufd\]
   ? batch\_unpin+0xba/0x100 \[iommufd\]
   \_\_iopt\_area\_unfill\_domain+0x198/0x430 \[iommufd\]
   ? \_\_mutex\_lock+0x8c/0xb80
   ? \_\_mutex\_lock+0x6aa/0xb80
   ? xa\_erase+0x28/0x30
   ? iopt\_table\_remove\_domain+0x162/0x320 \[iommufd\]
   ? lock\_release+0xbc/0x240
   iopt\_area\_unfill\_domain+0xd/0x10 \[iommufd\]
   iopt\_table\_remove\_domain+0x195/0x320 \[iommufd\]
   iommufd\_hw\_pagetable\_destroy+0xb3/0x110 \[iommufd\]
   iommufd\_object\_destroy\_user+0x8e/0xf0 \[iommufd\]
   iommufd\_device\_detach+0xc5/0x140 \[iommufd\]
   iommufd\_selftest\_destroy+0x1f/0x70 \[iommufd\]
   iommufd\_object\_destroy\_user+0x8e/0xf0 \[iommufd\]
   iommufd\_destroy+0x3a/0x50 \[iommufd\]
   iommufd\_fops\_ioctl+0xfb/0x170 \[iommufd\]
   \_\_x64\_sys\_ioctl+0x40d/0x9a0
   do\_syscall\_64+0x3c/0x80
   entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

## Affected and fixed versions

- Linux: \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 176f36a376c417b58d19f79edfce20db9317eaa2; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< b7c822fa6b7701b17e139f1c562fc24135880ed4 (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-54060. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54060.md
Affected: Linux >= f394576eb11dbcd3a740fa41e577b97f0720d26e, < 176f36a376c417b58d19f79edfce20db9317eaa2; >= f394576eb11dbcd3a740fa41e577b97f0720d26e, < b7c822fa6b7701b17e139f1c562fc24135880ed4; Linux 6.2
Fixed in: Linux 176f36a376c417b58d19f79edfce20db9317eaa2

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

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

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

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

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

Linux \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< 176f36a376c417b58d19f79edfce20db9317eaa2; \>= f394576eb11dbcd3a740fa41e577b97f0720d26e, \< b7c822fa6b7701b17e139f1c562fc24135880ed4; Linux 6.2.

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

Yes. Fixed in Linux 176f36a376c417b58d19f79edfce20db9317eaa2. No fix listed yet: follow the vendor advisory.

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

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/176f36a376c417b58d19f79edfce20db9317eaa2>
- other: <https://git.kernel.org/stable/c/b7c822fa6b7701b17e139f1c562fc24135880ed4>

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

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