# CVE-2024-26745: powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

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

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-04T08:20:13.182Z
- **Modified:** 2026-06-17T07:18:14.173Z

## Who should check

- Anyone running Linux \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< d4d1e4b1513d975961de7bb4f75e450a92d65ebf; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 5da6d306f315344af1ca2eff4bd9b10b130f0c28; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 09a3c1e46142199adcee372a420b024b4fc61051; b9f08b2649dddd4eb0698cb428b173bb01dd2fc5; 58942f672c6d04b6a3cd7866cb459671df881538; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20
- Anyone running Linux 6.0

## Description

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

powerpc/pseries/iommu: IOMMU table is not initialized for kdump over SR-IOV

When kdump kernel tries to copy dump data over SR-IOV, LPAR panics due
to NULL pointer exception:

  Kernel attempted to read user page (0) - exploit attempt? (uid: 0)
  BUG: Kernel NULL pointer dereference on read at 0x00000000
  Faulting instruction address: 0xc000000020847ad4
  Oops: Kernel access of bad area, sig: 11 \[\#1\]
  LE PAGE\_SIZE=64K MMU=Radix SMP NR\_CPUS=2048 NUMA pSeries
  Modules linked in: mlx5\_core(+) vmx\_crypto pseries\_wdt papr\_scm libnvdimm mlxfw tls psample sunrpc fuse overlay squashfs loop
  CPU: 12 PID: 315 Comm: systemd-udevd Not tainted 6.4.0-Test102+ \#12
  Hardware name: IBM,9080-HEX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1060.00 (NH1060\_008) hv:phyp pSeries
  NIP:  c000000020847ad4 LR: c00000002083b2dc CTR: 00000000006cd18c
  REGS: c000000029162ca0 TRAP: 0300   Not tainted  (6.4.0-Test102+)
  MSR:  800000000280b033 \<SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE\>  CR: 48288244  XER: 00000008
  CFAR: c00000002083b2d8 DAR: 0000000000000000 DSISR: 40000000 IRQMASK: 1
  ...
  NIP \_find\_next\_zero\_bit+0x24/0x110
  LR  bitmap\_find\_next\_zero\_area\_off+0x5c/0xe0
  Call Trace:
    dev\_printk\_emit+0x38/0x48 (unreliable)
    iommu\_area\_alloc+0xc4/0x180
    iommu\_range\_alloc+0x1e8/0x580
    iommu\_alloc+0x60/0x130
    iommu\_alloc\_coherent+0x158/0x2b0
    dma\_iommu\_alloc\_coherent+0x3c/0x50
    dma\_alloc\_attrs+0x170/0x1f0
    mlx5\_cmd\_init+0xc0/0x760 \[mlx5\_core\]
    mlx5\_function\_setup+0xf0/0x510 \[mlx5\_core\]
    mlx5\_init\_one+0x84/0x210 \[mlx5\_core\]
    probe\_one+0x118/0x2c0 \[mlx5\_core\]
    local\_pci\_probe+0x68/0x110
    pci\_call\_probe+0x68/0x200
    pci\_device\_probe+0xbc/0x1a0
    really\_probe+0x104/0x540
    \_\_driver\_probe\_device+0xb4/0x230
    driver\_probe\_device+0x54/0x130
    \_\_driver\_attach+0x158/0x2b0
    bus\_for\_each\_dev+0xa8/0x130
    driver\_attach+0x34/0x50
    bus\_add\_driver+0x16c/0x300
    driver\_register+0xa4/0x1b0
    \_\_pci\_register\_driver+0x68/0x80
    mlx5\_init+0xb8/0x100 \[mlx5\_core\]
    do\_one\_initcall+0x60/0x300
    do\_init\_module+0x7c/0x2b0

At the time of LPAR dump, before kexec hands over control to kdump
kernel, DDWs (Dynamic DMA Windows) are scanned and added to the FDT.
For the SR-IOV case, default DMA window "ibm,dma-window" is removed from
the FDT and DDW added, for the device.

Now, kexec hands over control to the kdump kernel.

When the kdump kernel initializes, PCI busses are scanned and IOMMU
group/tables created, in pci\_dma\_bus\_setup\_pSeriesLP(). For the SR-IOV
case, there is no "ibm,dma-window". The original commit: b1fc44eaa9ba,
fixes the path where memory is pre-mapped (direct mapped) to the DDW.
When TCEs are direct mapped, there is no need to initialize IOMMU
tables.

iommu\_table\_setparms\_lpar() only considers "ibm,dma-window" property
when initiallizing IOMMU table. In the scenario where TCEs are
dynamically allocated for SR-IOV, newly created IOMMU table is not
initialized. Later, when the device driver tries to enter TCEs for the
SR-IOV device, NULL pointer execption is thrown from iommu\_area\_alloc().

The fix is to initialize the IOMMU table with DDW property stored in the
FDT. There are 2 points to remember:

	1. For the dedicated adapter, kdump kernel would encounter both
	   default and DDW in FDT. In this case, DDW property is used to
	   initialize the IOMMU table.

	2. A DDW could be direct or dynamic mapped. kdump kernel would
	   initialize IOMMU table and mark the existing DDW as
	   "dynamic". This works fine since, at the time of table
	   initialization, iommu\_table\_clear() makes some space in the
	   DDW, for some predefined number of TCEs which are needed for
	   kdump to succeed.

## Affected and fixed versions

- Linux: \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< d4d1e4b1513d975961de7bb4f75e450a92d65ebf; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 5da6d306f315344af1ca2eff4bd9b10b130f0c28; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 09a3c1e46142199adcee372a420b024b4fc61051; b9f08b2649dddd4eb0698cb428b173bb01dd2fc5; 58942f672c6d04b6a3cd7866cb459671df881538; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-26745.md
Affected: Linux >= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, < 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3; >= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, < d4d1e4b1513d975961de7bb4f75e450a92d65ebf; >= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, < 5da6d306f315344af1ca2eff4bd9b10b130f0c28; >= b1fc44eaa9ba31e28c4125d…
Fixed in: Linux 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3, Linux 5da6d306f315344af1ca2eff4bd9b10b130f0c28, Linux 09a3c1e46142199adcee372a420b024b4fc61051, Linux 5.19, Linux 5.20

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

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

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

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

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

Linux \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< d4d1e4b1513d975961de7bb4f75e450a92d65ebf; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 5da6d306f315344af1ca2eff4bd9b10b130f0c28; \>= b1fc44eaa9ba31e28c4125d6b9205a3582b47b5d, \< 09a3c1e46142199adcee372a420b024b4fc61051; b9f08b2649dddd4eb0698cb428b173bb01dd2fc5; 58942f672c6d04b6a3cd7866cb459671df881538; \>= 5.18.18, \< 5.19; \>= 5.19.2, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3, Linux 5da6d306f315344af1ca2eff4bd9b10b130f0c28, Linux 09a3c1e46142199adcee372a420b024b4fc61051, Linux 5.19, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/7eb95e0af5c9c2e6fad50356eaf32d216d0e7bc3>
- patch: <https://git.kernel.org/stable/c/d4d1e4b1513d975961de7bb4f75e450a92d65ebf>
- patch: <https://git.kernel.org/stable/c/5da6d306f315344af1ca2eff4bd9b10b130f0c28>
- patch: <https://git.kernel.org/stable/c/09a3c1e46142199adcee372a420b024b4fc61051>

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

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