CVE-2024-58006
Last modified
CVE-2024-58006 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.)
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.0, < 6.12.14 |
| Linux | Linux Kernel | >= 6.13, < 6.13.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-58006?
How severe is CVE-2024-58006?
How do I fix CVE-2024-58006?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-58000In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-58001In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-58002In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-58003In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-58004In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-58005In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-58007In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2024-58008In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-58009In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-5801Enabled IP Forwarding feature in B&R Automation Runtime vers…5.3
- CVE-2024-58010In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-58011In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-58006?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
