CVE-2025-37819

irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()

published May 8, 2025

CVSS
—
EPSS
0%
Percentile
12.4
In the wild
Unconfirmed
What it is

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

irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()

With ACPI in place, gicv2m_get_fwnode() is registered with the pci

subsystem as pci_msi_get_fwnode_cb(), which may get invoked at runtime

during a PCI host bridge probe. But, the call back is wrongly marked as

__init, causing it to be freed, while being registered with the PCI

subsystem and could trigger:

Unable to handle kernel paging request at virtual address ffff8000816c0400

gicv2m_get_fwnode+0x0/0x58 (P)

pci_set_bus_msi_domain+0x74/0x88

pci_register_host_bridge+0x194/0x548

This is easily reproducible on a Juno board with ACPI boot.

Retain the function for later use.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00225 · 12.4th percentile
Published
2025-05-08T06:26Z
EPSS history
Timeline
  • 08 MAY 06:26Z
    irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()
    cvelistv5