{"id":"CVE-2022-50659","aliases":["CVE-2022-50659"],"related":[],"kind":"vulnerability","state":"published","title":"hwrng: geode - Fix PCI device refcount leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwrng: geode - Fix PCI device refcount leak\n\nfor_each_pci_dev() is implemented by pci_get_device(). The comment of\npci_get_device() says that it will increase the reference count for the\nreturned pci_dev and also decrease the reference count for the input\npci_dev @from if it is not NULL.\n\nIf we break for_each_pci_dev() loop with pdev not NULL, we need to call\npci_dev_put() to decrease the reference count. We add a new struct\n'amd_geode_priv' to record pointer of the pci_dev and membase, and then\nadd missing pci_dev_put() for the normal and error path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwrng: geode - Fix PCI device refcount leak\n\nfor_each_pci_dev() is implemented by pci_get_device(). The comment of\npci_get_device() says that it will increase the reference count for the\nreturned pci_dev and also decrease the reference count for the input\npci_dev @from if it is not NULL.\n\nIf we break for_each_pci_dev() loop with pdev not NULL, we need to call\npci_dev_put() to decrease the reference count. We add a new struct\n'amd_geode_priv' to record pointer of the pci_dev and membase, and then\nadd missing pci_dev_put() for the normal and error path.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nhwrng: geode - Arreglo de la fuga del contador de referencias del dispositivo PCI\n\nfor_each_pci_dev() es implementada por pci_get_device(). El comentario de pci_get_device() dice que incrementará el contador de referencias para el pci_dev devuelto y también decrementará el contador de referencias para el pci_dev de entrada @from si no es NULL.\n\nSi rompemos el bucle for_each_pci_dev() con pdev no NULL, necesitamos llamar a pci_dev_put() para decrementar el contador de referencias. Añadimos una nueva estructura ’amd_geode_priv’ para registrar el puntero del pci_dev y membase, y luego añadimos el pci_dev_put() faltante para la ruta normal y de error.","source":"nvd"}],"published":"2025-12-09T01:29:07.236Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"88f4ea623f59155280d99d1a59a968f838472c4a","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"e2f44baf62567c5cfbc274974c7d96dddad53ccc","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"6b9e43c4098f1310f5b4d52121d007a219fa5d43","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"5cc818ad53df650cac8fb41d9066665366af3f03","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"aa96aff394a511cc7bb7df08d1b8504d4d97671e","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"82bd423ed977847652b2048b0f8dcf049b1847a9","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"874f798c2db5ad595e46982d7f727a679dacb048","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c","status":"affected"},{"type":"git","introduced":"ef5d862734b84239e0140319a95fb0bbff5ef394","fixed":"9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.18","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/88f4ea623f59155280d99d1a59a968f838472c4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2f44baf62567c5cfbc274974c7d96dddad53ccc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b9e43c4098f1310f5b4d52121d007a219fa5d43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5cc818ad53df650cac8fb41d9066665366af3f03","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa96aff394a511cc7bb7df08d1b8504d4d97671e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82bd423ed977847652b2048b0f8dcf049b1847a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/874f798c2db5ad595e46982d7f727a679dacb048","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19b7b85773b18457ff85a9ff4f5e2a2d4bf7ed0c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f6ec8dc574efb7f4f3d7ee9cd59ae307e78f445","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50659","url":"https://www.cve.org/CVERecord?id=CVE-2022-50659","licence":"CVE Terms of Use","modified":"2026-05-11T19:23:08.807Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50659","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50659","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.308Z","epss":{"score":0.00322,"percentile":0.1766,"date":"2026-11-30T12:00:22.000Z"}}