CVE-2025-37819

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

State
Published
Severity
Not scored
Published
May 8, 2025
Updated
Jun 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0644b3daca28dcb320373ae20069c269c9386304 to before 0c241dedc43a036599757cd08f356253fa3e5014Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before b63de43af8d215b0499eac28b2caa4439183efc1Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before f95659affee301464f0d058d528d96b35b452da8Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before dc0d654eb4179b06d3206e4396d072108b9ba082Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before 2f2803e4b5e4df2b08d378deaab78b1681ef9b30Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before 3939d6f29d34cdb60e3f68b76e39e00a964a1d51Affected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before 47bee0081b483b077c7560bc5358ad101f89c8efAffected
  • 0644b3daca28dcb320373ae20069c269c9386304 to before 3318dc299b072a0511d6dfd8367f3304fb6d9827Affected
LinuxLinux
  • 4.5Affected
  • before 4.5Not affected
  • 5.4.294 through 5.4.*Not affected
  • 5.10.238 through 5.10.*Not affected
  • 5.15.182 through 5.15.*Not affected
  • 6.1.138 through 6.1.*Not affected
  • 6.6.89 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.5 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.