CVE-2024-58006: PCI: dwc: ep: Prevent changing BAR size/flags in pci_epc_set_bar()

Published Feb 27, 2025
·
Updated

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

PCI: dwc: ep: Prevent changing BAR size/flags in pciepcsetbar()

In commit 4284c88fff0e ("PCI: designware-ep: Allow pciepcsetbar() update inbound map address") setbar() was modified to support dynamically changing the backing physical address of a BAR that was already configured.

This means that setbar() can be called twice, without ever calling clearbar() (as calling clearbar() 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 setbar() 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 pciepfbar.

While at it, add comments which clarifies the support for dynamically changing the physical address of a BAR. (Which was also missing.)

Affected Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=6.0<6.12.14
Linux Linux kernel>=6.13<6.13.3
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.96.2-2

Event History

Feb 27, 2025
CVE Published
via MITRE·02:12 AM
Data Sourced
via MITRE·02:12 AM
DescriptionSeverity
Data Sourced
via Red Hat·03:06 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·01:52 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:52 AM
Affected Software
Updated
via Microsoft·01:52 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2024-58006?

CVE-2024-58006 has a medium severity rating due to potential privilege escalation risks.

2

How do I fix CVE-2024-58006?

To fix CVE-2024-58006, update your Linux kernel to version 6.12.14 or later, or version 6.13.3 or later.

3

Which versions of the Linux kernel are affected by CVE-2024-58006?

CVE-2024-58006 affects Linux kernel versions between 6.0 and 6.12.14, as well as versions between 6.13 and 6.13.3.

4

What is the impact of CVE-2024-58006 on system security?

CVE-2024-58006 can lead to unauthorized changes to PCI Express endpoint configurations, potentially allowing privilege escalation.

5

Is there a workaround for CVE-2024-58006?

There is no known workaround for CVE-2024-58006; the recommended action is to apply the appropriate kernel update.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203