# CVE-2024-56668: iommu/vt-d: Fix qi\_batch NULL pointer with nested parent domain

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.26% (percentile 11, 2026-11-28)
- **CWE:** CWE-401, CWE-476
- **Published:** 2024-12-27T15:06:29.879Z
- **Modified:** 2026-06-17T08:12:42.037Z

## Who should check

- Anyone running Linux \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< ffd774c34774fd4cc0e9cf2976595623a6c3a077; \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< 74536f91962d5f6af0a42414773ce61e653c10ee
- Anyone running Linux 6.12

## Description

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

iommu/vt-d: Fix qi\_batch NULL pointer with nested parent domain

The qi\_batch is allocated when assigning cache tag for a domain. While
for nested parent domain, it is missed. Hence, when trying to map pages
to the nested parent, NULL dereference occurred. Also, there is potential
memleak since there is no lock around domain-\>qi\_batch allocation.

To solve it, add a helper for qi\_batch allocation, and call it in both
the \_\_cache\_tag\_assign\_domain() and \_\_cache\_tag\_assign\_parent\_domain().

  BUG: kernel NULL pointer dereference, address: 0000000000000200
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 8104795067 P4D 0
  Oops: Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
  CPU: 223 UID: 0 PID: 4357 Comm: qemu-system-x86 Not tainted 6.13.0-rc1-00028-g4b50c3c3b998-dirty \#2632
  Call Trace:
   ? \_\_die+0x24/0x70
   ? page\_fault\_oops+0x80/0x150
   ? do\_user\_addr\_fault+0x63/0x7b0
   ? exc\_page\_fault+0x7c/0x220
   ? asm\_exc\_page\_fault+0x26/0x30
   ? cache\_tag\_flush\_range\_np+0x13c/0x260
   intel\_iommu\_iotlb\_sync\_map+0x1a/0x30
   iommu\_map+0x61/0xf0
   batch\_to\_domain+0x188/0x250
   iopt\_area\_fill\_domains+0x125/0x320
   ? rcu\_is\_watching+0x11/0x50
   iopt\_map\_pages+0x63/0x100
   iopt\_map\_common.isra.0+0xa7/0x190
   iopt\_map\_user\_pages+0x6a/0x80
   iommufd\_ioas\_map+0xcd/0x1d0
   iommufd\_fops\_ioctl+0x118/0x1c0
   \_\_x64\_sys\_ioctl+0x93/0xc0
   do\_syscall\_64+0x71/0x140
   entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

## Affected and fixed versions

- Linux: \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< ffd774c34774fd4cc0e9cf2976595623a6c3a077; \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< 74536f91962d5f6af0a42414773ce61e653c10ee (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-56668.md
Affected: Linux >= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, < ffd774c34774fd4cc0e9cf2976595623a6c3a077; >= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, < 74536f91962d5f6af0a42414773ce61e653c10ee; Linux 6.12
Fixed in: Linux 74536f91962d5f6af0a42414773ce61e653c10ee

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

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

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

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

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

Linux \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< ffd774c34774fd4cc0e9cf2976595623a6c3a077; \>= 705c1cdf1e73c4c727bbfc8775434e6dd36e8baf, \< 74536f91962d5f6af0a42414773ce61e653c10ee; Linux 6.12.

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

Yes. Fixed in Linux 74536f91962d5f6af0a42414773ce61e653c10ee. Upgrade Linux to 74536f91962d5f6af0a42414773ce61e653c10ee or later.

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

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/ffd774c34774fd4cc0e9cf2976595623a6c3a077>
- patch: <https://git.kernel.org/stable/c/74536f91962d5f6af0a42414773ce61e653c10ee>

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

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