CVE-2024-58006
published critical CVSS 3.1 · 9.6PCI: dwc: ep: Prevent changing BAR size/flags in pci_epc_set_bar()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 8dbc2d9e6b8612b9d5f41c0ea875e86183ff9617 · 4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 01aaa7935af3050fd1e1e7de50001247c75baeab · 4284c88fff0efc4e418abb53d78e02dc4f099d6c to < b5cacfd067060c75088363ed3e19779078be2755 · 4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 3229c15d6267de8e704b4085df8a82a5af2d63eb · 4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 3708acbd5f169ebafe1faa519cb28adc56295546 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.14 through 6.12.* (unaffected · semver) · 6.13.3 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-124.8.1.el10_1 | ELSA-2025-20095-0 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: PCI: dwc: ep: Prevent changing BAR size/flags in pci_epc_set_bar() In commit 4284c88fff0e ("PCI: designware-ep: Allow pci_epc_set_bar() update inbound map address") set_bar() was modified to support dynamically changing the backing physical address of a BAR that was already configured. This means that set_bar() can be called twice, without ever calling clear_bar() (as calling clear_bar() would clear the BAR's PCI address assigned by the host). This can only be done if the new BAR size/flags does not differ from the existing BAR configuration. Add these missing checks. If we allow set_bar() to set e.g. a new BAR size that differs from the existing BAR size, the new address translation range will be smaller than the BAR size already determined by the host, which would mean that a read past the new BAR size would pass the iATU untranslated, which could allow the host to read memory not belonging to the new struct pci_epf_bar. While at it, add comments which clarifies the support for dynamically changing the physical address of a BAR. (Which was also missing.)
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.6 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: AV:A - The attacker is the PCIe root complex on the other end of an existing point-to-point link (the classic Linux EP deployment: DPU/SmartNIC/accelerator or NTB host-to-host interconnect), sending TLPs and scratchpad writes over a shared, non-routable fabric — a logically adjacent topology. No physical manipulation of the endpoint is needed at exploit time, so this is Adjacent rather than Physical or Local. AC:L - The peer host fully and deterministically controls the memory-window size it advertises in the NTB scratchpads, which propagates unvalidated to `epf_bar->size` and reprograms the inbound iATU; there is no race, timing window, or memory-layout condition outside the attacker's control. PR:N - NTB link negotiation performs no authentication whatsoever — the endpoint reads the size scratchpads from the host-writable control BAR as soon as the link comes up, so the attacking host needs no credentials or privileges on the endpoint system. UI:N - The endpoint's `ntb_transport_link_work()` runs automatically on link-up and consumes the host-supplied sizes with no operator action; the attacker drives the entire sequence from its own side of the link. S:C - The inbound iATU is the endpoint's address-translation and containment boundary for host-originated transactions — the endpoint-side equivalent of an IOMMU — and this bug lets transactions pass it untranslated. A failure of that DMA/address-translation boundary lets one security authority (the remote host) reach memory in a different authority (the endpoint OS), matching the IOMMU/DMA-bypass Changed criterion. C:H - With the BAR aperture larger than the translation window, the host can read endpoint physical memory outside the backing `pci_epf_bar` allocation — the commit message states this explicitly — yielding a large out-of-bounds/effectively arbitrary kernel memory read. I:H - PCI memory BAR windows are read/write, so the same mis-sized window gives the host out-of-bounds writes into endpoint physical memory beyond the intended buffer, corrupting adjacent kernel data or code and enabling control-flow hijacking on the endpoint. A:H - Arbitrary writes into endpoint physical memory readily panic the kernel, and untranslated transactions escaping the iATU onto the internal bus can raise bus errors/aborts, crashing or hanging the endpoint system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 8dbc2d9e6b8612b9d5f41c0ea875e86183ff9617 (affected · git)4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 01aaa7935af3050fd1e1e7de50001247c75baeab (affected · git)4284c88fff0efc4e418abb53d78e02dc4f099d6c to < b5cacfd067060c75088363ed3e19779078be2755 (affected · git)4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 3229c15d6267de8e704b4085df8a82a5af2d63eb (affected · git)4284c88fff0efc4e418abb53d78e02dc4f099d6c to < 3708acbd5f169ebafe1faa519cb28adc56295546 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.14 through 6.12.* (unaffected · semver)6.13.3 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/01aaa7935af3050fd1e1e7de50001247c75baeab
- https://git.kernel.org/stable/c/3229c15d6267de8e704b4085df8a82a5af2d63eb
- https://git.kernel.org/stable/c/3708acbd5f169ebafe1faa519cb28adc56295546
- https://git.kernel.org/stable/c/8dbc2d9e6b8612b9d5f41c0ea875e86183ff9617
- https://git.kernel.org/stable/c/b5cacfd067060c75088363ed3e19779078be2755
Provider assertions
1Linux · cna
PCI: dwc: ep: Prevent changing BAR size/flags in pci_epc_set_bar()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ea9df2c10475830bf9f362b1cb3eb94cb0a27e8e7e8cf6a26d6db6f492774f27
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record