{"id":"CVE-2026-138974","summary":"mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: maps: l440gx: Fix double put of the PM device in init_l440gx()\n\nThe PIIX4 PM device reference taken with pci_get_device() is dropped\nagain before the iobase resource is allocated.  If pci_assign_resource()\nfails, the error path calls pci_dev_put() on pm_dev a second time,\nreleasing a reference that is no longer owned and underflowing the\nreference count.\n\nRemove the extra pci_dev_put().","modified":"2026-11-30T15:01:41.797042247Z","published":"2026-11-30T13:26:42.471Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138974.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/089b59200a5308d64912bcc1e7a988c152d17f75"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a22243c1247634ad8f0622759a1f0cf52d68285"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f856772a34d86b5097d03d5109a02f53a1fadfc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5950e2d960b5dfde97fbc827fc465d8811fcbdbc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e3b522c60ce2ed4d38ba79cbaf6606e30939517"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9544576610d5d5aa20f41239040aaf7dc1cfb4c9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de587b7dd1269be9b83d418ffd3007203044dc2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138974.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138974"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dd8e9ed6ed544e2b924429d29cd2a6b55590109b"},{"fixed":"8e3b522c60ce2ed4d38ba79cbaf6606e30939517"},{"fixed":"089b59200a5308d64912bcc1e7a988c152d17f75"},{"fixed":"4f856772a34d86b5097d03d5109a02f53a1fadfc"},{"fixed":"5950e2d960b5dfde97fbc827fc465d8811fcbdbc"},{"fixed":"de587b7dd1269be9b83d418ffd3007203044dc2d"},{"fixed":"9544576610d5d5aa20f41239040aaf7dc1cfb4c9"},{"fixed":"2a22243c1247634ad8f0622759a1f0cf52d68285"},{"fixed":"e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138974.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.19"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138974.json"}}],"schema_version":"1.9.2"}