# CVE-2024-47719: iommufd: Protect against overflow of ALIGN() during iova allocation

> 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, NVD) `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.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-10-21T11:53:49.516Z
- **Modified:** 2026-06-17T07:57:37.353Z

## Who should check

- Anyone running Linux \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< cd6dd564ae7d99967ef50078216929418160b30e; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< a6e9f9fd14772c0b23c6d1d7002d98f9d27cb1f6; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 72b78287ce92802e8ba678181a34b84ae844a112; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 8f6887349b2f829a4121c518aeb064fc922714e4
- Anyone running Linux 6.2

## Description

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

iommufd: Protect against overflow of ALIGN() during iova allocation

Userspace can supply an iova and uptr such that the target iova alignment
becomes really big and ALIGN() overflows which corrupts the selected area
range during allocation. CONFIG\_IOMMUFD\_TEST can detect this:

   WARNING: CPU: 1 PID: 5092 at drivers/iommu/iommufd/io\_pagetable.c:268 iopt\_alloc\_area\_pages drivers/iommu/iommufd/io\_pagetable.c:268 \[inline\]
   WARNING: CPU: 1 PID: 5092 at drivers/iommu/iommufd/io\_pagetable.c:268 iopt\_map\_pages+0xf95/0x1050 drivers/iommu/iommufd/io\_pagetable.c:352
   Modules linked in:
   CPU: 1 PID: 5092 Comm: syz-executor294 Not tainted 6.10.0-rc5-syzkaller-00294-g3ffea9a7a6f7 \#0
   Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
   RIP: 0010:iopt\_alloc\_area\_pages drivers/iommu/iommufd/io\_pagetable.c:268 \[inline\]
   RIP: 0010:iopt\_map\_pages+0xf95/0x1050 drivers/iommu/iommufd/io\_pagetable.c:352
   Code: fc e9 a4 f3 ff ff e8 1a 8b 4c fc 41 be e4 ff ff ff e9 8a f3 ff ff e8 0a 8b 4c fc 90 0f 0b 90 e9 37 f5 ff ff e8 fc 8a 4c fc 90 \<0f\> 0b 90 e9 68 f3 ff ff 48 c7 c1 ec 82 ad 8f 80 e1 07 80 c1 03 38
   RSP: 0018:ffffc90003ebf9e0 EFLAGS: 00010293
   RAX: ffffffff85499fa4 RBX: 00000000ffffffef RCX: ffff888079b49e00
   RDX: 0000000000000000 RSI: 00000000ffffffef RDI: 0000000000000000
   RBP: ffffc90003ebfc50 R08: ffffffff85499b30 R09: ffffffff85499942
   R10: 0000000000000002 R11: ffff888079b49e00 R12: ffff8880228e0010
   R13: 0000000000000000 R14: 1ffff920007d7f68 R15: ffffc90003ebfd00
   FS:  000055557d760380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
   CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
   CR2: 00000000005fdeb8 CR3: 000000007404a000 CR4: 00000000003506f0
   DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
   DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
   Call Trace:
    \<TASK\>
    iommufd\_ioas\_copy+0x610/0x7b0 drivers/iommu/iommufd/ioas.c:274
    iommufd\_fops\_ioctl+0x4d9/0x5a0 drivers/iommu/iommufd/main.c:421
    vfs\_ioctl fs/ioctl.c:51 \[inline\]
    \_\_do\_sys\_ioctl fs/ioctl.c:907 \[inline\]
    \_\_se\_sys\_ioctl+0xfc/0x170 fs/ioctl.c:893
    do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
    do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
    entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Cap the automatic alignment to the huge page size, which is probably a
better idea overall. Huge automatic alignments can fragment and chew up
the available IOVA space without any reason.

## Affected and fixed versions

- Linux: \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< cd6dd564ae7d99967ef50078216929418160b30e; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< a6e9f9fd14772c0b23c6d1d7002d98f9d27cb1f6; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 72b78287ce92802e8ba678181a34b84ae844a112; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 8f6887349b2f829a4121c518aeb064fc922714e4 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 8f6887349b2f829a4121c518aeb064fc922714e4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-47719.md
Affected: Linux >= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, < cd6dd564ae7d99967ef50078216929418160b30e; >= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, < a6e9f9fd14772c0b23c6d1d7002d98f9d27cb1f6; >= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, < 72b78287ce92802e8ba678181a34b84ae844a112; >= 51fe6141f0f64ae0bbc096a…
Fixed in: Linux 72b78287ce92802e8ba678181a34b84ae844a112, Linux 8f6887349b2f829a4121c518aeb064fc922714e4

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-2024-47719 being exploited?

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

### How serious is CVE-2024-47719?

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

### Which versions are affected by CVE-2024-47719?

Linux \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< cd6dd564ae7d99967ef50078216929418160b30e; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< a6e9f9fd14772c0b23c6d1d7002d98f9d27cb1f6; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 72b78287ce92802e8ba678181a34b84ae844a112; \>= 51fe6141f0f64ae0bbc096a41a07572273e8c0ef, \< 8f6887349b2f829a4121c518aeb064fc922714e4; Linux 6.2.

### Is there a fix for CVE-2024-47719?

Yes. Fixed in Linux 72b78287ce92802e8ba678181a34b84ae844a112, Linux 8f6887349b2f829a4121c518aeb064fc922714e4. Upgrade Linux to 8f6887349b2f829a4121c518aeb064fc922714e4 or later.

### How do I check if I'm affected by CVE-2024-47719?

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/cd6dd564ae7d99967ef50078216929418160b30e>
- patch: <https://git.kernel.org/stable/c/a6e9f9fd14772c0b23c6d1d7002d98f9d27cb1f6>
- patch: <https://git.kernel.org/stable/c/72b78287ce92802e8ba678181a34b84ae844a112>
- patch: <https://git.kernel.org/stable/c/8f6887349b2f829a4121c518aeb064fc922714e4>

## 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-2024-47719>

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