CVE-2026-138975: mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()
In the Linux kernel, the following vulnerability has been resolved:
mtd: maps: l440gx: Fix double put of the ISA bridge in initl440gx()
initl440gx() takes a single reference on the PIIX4 ISA bridge with pcigetdevice() and drops it again right after the lookups, before the flash window is set up. The pciassignresource() failure path then calls pcidevput() on the same device 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.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
Remove the second pci_dev_put() call on the PIIX4 ISA bridge in init_l440gx().
Event History
Frequently Asked Questions
When is the faulty cleanup path reached?
It is reached when init_l440gx() has obtained the PIIX4 ISA bridge and pci_assign_resource() then fails while setting up the flash window.
What is the effect of reaching this path?
The code calls pci_dev_put() a second time after already dropping its only reference to the ISA bridge. This releases a reference that is no longer owned and underflows the device reference count.
Are fixed kernel versions identified?
The supplied data states that the vulnerability has been resolved and provides stable kernel commit references, but it does not identify affected or fixed kernel version numbers.