# CVE-2024-57999: powerpc/pseries/iommu: IOMMU incorrectly marks MMIO range in DDW

> 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.33% (percentile 18, 2026-11-28)
- **Published:** 2025-02-27T02:07:18.570Z
- **Modified:** 2026-10-30T13:17:49.940Z

## Who should check

- Anyone running Linux \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< c2776107f3309141ae98b27571c47f26436be854; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 57d90fe7aab16f9b10e8646b38f24929015c9538; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 7043d58ecd1381674f5b2c894deb6986a1a4896b; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< d8cc20a8cceb3b5e8ad2e11365e3100ba36a27e9; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 8f70caad82e9c088ed93b4fea48d941ab6441886
- Anyone running Linux 5.15

## Description

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

powerpc/pseries/iommu: IOMMU incorrectly marks MMIO range in DDW

Power Hypervisor can possibily allocate MMIO window intersecting with
Dynamic DMA Window (DDW) range, which is over 32-bit addressing.

These MMIO pages needs to be marked as reserved so that IOMMU doesn't map
DMA buffers in this range.

The current code is not marking these pages correctly which is resulting
in LPAR to OOPS while booting. The stack is at below

BUG: Unable to handle kernel data access on read at 0xc00800005cd40000
Faulting instruction address: 0xc00000000005cdac
Oops: Kernel access of bad area, sig: 11 \[\#1\]
LE PAGE\_SIZE=64K MMU=Hash SMP NR\_CPUS=2048 NUMA pSeries
Modules linked in: af\_packet rfkill ibmveth(X) lpfc(+) nvmet\_fc nvmet nvme\_keyring crct10dif\_vpmsum nvme\_fc nvme\_fabrics nvme\_core be2net(+) nvme\_auth rtc\_generic nfsd auth\_rpcgss nfs\_acl lockd grace sunrpc fuse configfs ip\_tables x\_tables xfs libcrc32c dm\_service\_time ibmvfc(X) scsi\_transport\_fc vmx\_crypto gf128mul crc32c\_vpmsum dm\_mirror dm\_region\_hash dm\_log dm\_multipath dm\_mod sd\_mod scsi\_dh\_emc scsi\_dh\_rdac scsi\_dh\_alua t10\_pi crc64\_rocksoft\_generic crc64\_rocksoft sg crc64 scsi\_mod
Supported: Yes, External
CPU: 8 PID: 241 Comm: kworker/8:1 Kdump: loaded Not tainted 6.4.0-150600.23.14-default \#1 SLE15-SP6 b44ee71c81261b9e4bab5e0cde1f2ed891d5359b
Hardware name: IBM,9080-M9S POWER9 (raw) 0x4e2103 0xf000005 of:IBM,FW950.B0 (VH950\_149) hv:phyp pSeries
Workqueue: events work\_for\_cpu\_fn
NIP:  c00000000005cdac LR: c00000000005e830 CTR: 0000000000000000
REGS: c00001400c9ff770 TRAP: 0300   Not tainted  (6.4.0-150600.23.14-default)
MSR:  800000000280b033 \<SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE\>  CR: 24228448  XER: 00000001
CFAR: c00000000005cdd4 DAR: c00800005cd40000 DSISR: 40000000 IRQMASK: 0
GPR00: c00000000005e830 c00001400c9ffa10 c000000001987d00 c00001400c4fe800
GPR04: 0000080000000000 0000000000000001 0000000004000000 0000000000800000
GPR08: 0000000004000000 0000000000000001 c00800005cd40000 ffffffffffffffff
GPR12: 0000000084228882 c00000000a4c4f00 0000000000000010 0000080000000000
GPR16: c00001400c4fe800 0000000004000000 0800000000000000 c00000006088b800
GPR20: c00001401a7be980 c00001400eff3800 c000000002a2da68 000000000000002b
GPR24: c0000000026793a8 c000000002679368 000000000000002a c0000000026793c8
GPR28: 000008007effffff 0000080000000000 0000000000800000 c00001400c4fe800
NIP \[c00000000005cdac\] iommu\_table\_reserve\_pages+0xac/0x100
LR \[c00000000005e830\] iommu\_init\_table+0x80/0x1e0
Call Trace:
\[c00001400c9ffa10\] \[c00000000005e810\] iommu\_init\_table+0x60/0x1e0 (unreliable)
\[c00001400c9ffa90\] \[c00000000010356c\] iommu\_bypass\_supported\_pSeriesLP+0x9cc/0xe40
\[c00001400c9ffc30\] \[c00000000005c300\] dma\_iommu\_dma\_supported+0xf0/0x230
\[c00001400c9ffcb0\] \[c00000000024b0c4\] dma\_supported+0x44/0x90
\[c00001400c9ffcd0\] \[c00000000024b14c\] dma\_set\_mask+0x3c/0x80
\[c00001400c9ffd00\] \[c0080000555b715c\] be\_probe+0xc4/0xb90 \[be2net\]
\[c00001400c9ffdc0\] \[c000000000986f3c\] local\_pci\_probe+0x6c/0x110
\[c00001400c9ffe40\] \[c000000000188f28\] work\_for\_cpu\_fn+0x38/0x60
\[c00001400c9ffe70\] \[c00000000018e454\] process\_one\_work+0x314/0x620
\[c00001400c9fff10\] \[c00000000018f280\] worker\_thread+0x2b0/0x620
\[c00001400c9fff90\] \[c00000000019bb18\] kthread+0x148/0x150
\[c00001400c9fffe0\] \[c00000000000ded8\] start\_kernel\_thread+0x14/0x18

There are 2 issues in the code

1. The index is "int" while the address is "unsigned long". This results in
   negative value when setting the bitmap.

2. The DMA offset is page shifted but the MMIO range is used as-is (64-bit
   address). MMIO address needs to be page shifted as well.

## Affected and fixed versions

- Linux: \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< c2776107f3309141ae98b27571c47f26436be854; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 57d90fe7aab16f9b10e8646b38f24929015c9538; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 7043d58ecd1381674f5b2c894deb6986a1a4896b; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< d8cc20a8cceb3b5e8ad2e11365e3100ba36a27e9; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 8f70caad82e9c088ed93b4fea48d941ab6441886 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-57999.md
Affected: Linux >= 3c33066a21903076722a2881556a92aa3cd7d359, < c2776107f3309141ae98b27571c47f26436be854; >= 3c33066a21903076722a2881556a92aa3cd7d359, < 57d90fe7aab16f9b10e8646b38f24929015c9538; >= 3c33066a21903076722a2881556a92aa3cd7d359, < 7043d58ecd1381674f5b2c894deb6986a1a4896b; >= 3c33066a21903076722a288…
Fixed in: Linux 57d90fe7aab16f9b10e8646b38f24929015c9538, Linux 7043d58ecd1381674f5b2c894deb6986a1a4896b, Linux 8f70caad82e9c088ed93b4fea48d941ab6441886

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

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

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

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

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

Linux \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< c2776107f3309141ae98b27571c47f26436be854; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 57d90fe7aab16f9b10e8646b38f24929015c9538; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 7043d58ecd1381674f5b2c894deb6986a1a4896b; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< d8cc20a8cceb3b5e8ad2e11365e3100ba36a27e9; \>= 3c33066a21903076722a2881556a92aa3cd7d359, \< 8f70caad82e9c088ed93b4fea48d941ab6441886; Linux 5.15.

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

Yes. Fixed in Linux 57d90fe7aab16f9b10e8646b38f24929015c9538, Linux 7043d58ecd1381674f5b2c894deb6986a1a4896b, Linux 8f70caad82e9c088ed93b4fea48d941ab6441886. Upgrade Linux to 8f70caad82e9c088ed93b4fea48d941ab6441886 or later.

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

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/7043d58ecd1381674f5b2c894deb6986a1a4896b>
- patch: <https://git.kernel.org/stable/c/d8cc20a8cceb3b5e8ad2e11365e3100ba36a27e9>
- patch: <https://git.kernel.org/stable/c/8f70caad82e9c088ed93b4fea48d941ab6441886>
- other: <https://git.kernel.org/stable/c/c2776107f3309141ae98b27571c47f26436be854>
- other: <https://git.kernel.org/stable/c/57d90fe7aab16f9b10e8646b38f24929015c9538>

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

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