CVE-2026-138974: mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()
In the Linux kernel, the following vulnerability has been resolved:
mtd: maps: l440gx: Fix double put of the PM device in initl440gx()
The PIIX4 PM device reference taken with pcigetdevice() is dropped again before the iobase resource is allocated. If pciassignresource() fails, the error path calls pcidevput() on pmdev a second time, releasing a reference that is no longer owned and underflowing the reference count.
Remove the extra pcidevput().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In init_l440gx(), remove the extra pci_dev_put() on pm_dev from the error path when pci_assign_resource() fails.