CVE-2023-53236: iommufd: Do not corrupt the pfn list when doing batch carry
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
Security readout for executives and security teams
Plain-English summary
CVE-2023-53236 is a Linux kernel availability issue in iommufd. A local user with low privileges could trigger page accounting or metadata corruption, potentially crashing or destabilizing affected systems. There is no source-bundle evidence of active exploitation.
Executive priority
Schedule remediation through normal kernel patch cycles, with faster handling for multi-user or virtualization-heavy systems. The business risk is system instability or denial of service, not confirmed data theft or remote compromise from the provided evidence.
Technical view
The bug is an ordering error in iommufd PFN batch carry handling. When batch->end is 0, updating npfns[0] before recalculating pfns can corrupt PFN tracking and lead to page metadata/accounting failures. CVSS is 5.5: local, low complexity, low privileges, no user interaction, high availability impact.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions identified in the record, including 6.2, 6.2.11, and 6.3. Distributor backports may change exposure, so validate the exact package version and applied fixes.
Exploitation context
The CVSS vector indicates local access with low privileges is required. The source bundle does not include public exploit evidence, KEV listing, or remote attack claims. Treat this as a local denial-of-service style risk unless vendor advisories state otherwise.
Researcher notes
The record describes a resolved upstream kernel bug with two stable commit references. Evidence supports availability impact through PFN list corruption and page metadata failures. No CWE, exploit status, or distributor-specific fixed package versions are provided in the source bundle.
Mitigation direction
Upgrade to a Linux kernel build containing the referenced stable fixes.
Check distribution security advisories for backported fixes before relying on upstream version numbers.
Prioritize systems where untrusted local users can access affected kernel functionality.
Apply normal change controls and reboot requirements for kernel updates.
If patching is delayed, follow vendor guidance for temporary controls.
Validation and detection
Inventory Linux kernel versions across servers, workstations, and images.
Compare installed kernels with vendor advisories and the referenced stable commits.
Confirm whether affected systems expose iommufd-related functionality to local users.
Review crash logs for page accounting or metadata corruption symptoms.
Retest after patching to confirm the fixed kernel is active.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2023-53236 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.