{"id":"CVE-2025-38720","aliases":["CVE-2025-38720"],"related":[],"kind":"vulnerability","state":"published","title":"net: hibmcge: fix rtnl deadlock issue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hibmcge: fix rtnl deadlock issue\n\nCurrently, the hibmcge netdev acquires the rtnl_lock in\npci_error_handlers.reset_prepare() and releases it in\npci_error_handlers.reset_done().\n\nHowever, in the PCI framework:\npci_reset_bus - __pci_reset_slot - pci_slot_save_and_disable_locked -\n pci_dev_save_and_disable - err_handler->reset_prepare(dev);\n\nIn pci_slot_save_and_disable_locked():\n\tlist_for_each_entry(dev, &slot->bus->devices, bus_list) {\n\t\tif (!dev->slot || dev->slot!= slot)\n\t\t\tcontinue;\n\t\tpci_dev_save_and_disable(dev);\n\t\tif (dev->subordinate)\n\t\t\tpci_bus_save_and_disable_locked(dev->subordinate);\n\t}\n\nThis will iterate through all devices under the current bus and execute\nerr_handler->reset_prepare(), causing two devices of the hibmcge driver\nto sequentially request the rtnl_lock, leading to a deadlock.\n\nSince the driver now executes netif_device_detach()\nbefore the reset process, it will not concurrently with\nother netdev APIs, so there is no need to hold the rtnl_lock now.\n\nTherefore, this patch removes the rtnl_lock during the reset process and\nadjusts the position of HBG_NIC_STATE_RESETTING to ensure\nthat multiple resets are not executed concurrently.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hibmcge: fix rtnl deadlock issue\n\nCurrently, the hibmcge netdev acquires the rtnl_lock in\npci_error_handlers.reset_prepare() and releases it in\npci_error_handlers.reset_done().\n\nHowever, in the PCI framework:\npci_reset_bus - __pci_reset_slot - pci_slot_save_and_disable_locked -\n pci_dev_save_and_disable - err_handler->reset_prepare(dev);\n\nIn pci_slot_save_and_disable_locked():\n\tlist_for_each_entry(dev, &slot->bus->devices, bus_list) {\n\t\tif (!dev->slot || dev->slot!= slot)\n\t\t\tcontinue;\n\t\tpci_dev_save_and_disable(dev);\n\t\tif (dev->subordinate)\n\t\t\tpci_bus_save_and_disable_locked(dev->subordinate);\n\t}\n\nThis will iterate through all devices under the current bus and execute\nerr_handler->reset_prepare(), causing two devices of the hibmcge driver\nto sequentially request the rtnl_lock, leading to a deadlock.\n\nSince the driver now executes netif_device_detach()\nbefore the reset process, it will not concurrently with\nother netdev APIs, so there is no need to hold the rtnl_lock now.\n\nTherefore, this patch removes the rtnl_lock during the reset process and\nadjusts the position of HBG_NIC_STATE_RESETTING to ensure\nthat multiple resets are not executed concurrently.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: hibmcge: corrección del problema de interbloqueo de rtnl\n\nActualmente, el netdev hibmcge adquiere el rtnl_lock en pci_error_handlers.reset_prepare() y lo libera en pci_error_handlers.reset_done().\n\nSin embargo, en el framework PCI:\npci_reset_bus - __pci_reset_slot - pci_slot_save_and_disable_locked -\n pci_dev_save_and_disable - err_handler->reset_prepare(dev);\n\nEn pci_slot_save_and_disable_locked():\n\tlist_for_each_entry(dev, &slot->bus->devices, bus_list) {\n\t\tif (!dev->slot || dev->slot!= slot)\n\t\t\tcontinue;\n\t\tpci_dev_save_and_disable(dev);\n\t\tif (dev->subordinate)\n\t\t\tpci_bus_save_and_disable_locked(dev->subordinate);\n\t}\n\nEsto iterará a través de todos los dispositivos bajo el bus actual y ejecutará err_handler->reset_prepare(), causando que dos dispositivos del controlador hibmcge soliciten secuencialmente el rtnl_lock, lo que lleva a un interbloqueo.\n\nDado que el controlador ahora ejecuta netif_device_detach() antes del proceso de reinicio, no lo hará concurrentemente con otras API de netdev, por lo que ahora no hay necesidad de mantener el rtnl_lock.\n\nPor lo tanto, este parche elimina el rtnl_lock durante el proceso de reinicio y ajusta la posición de HBG_NIC_STATE_RESETTING para asegurar que múltiples reinicios no se ejecuten concurrentemente.","source":"nvd"}],"published":"2025-09-04T15:33:14.057Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"3f5a61f6d504f55ed1a36cce044d5123d508721f","fixed":"d85a6346fd6f595c4914205762d0cdf35c004a5e","status":"affected"},{"type":"git","introduced":"3f5a61f6d504f55ed1a36cce044d5123d508721f","fixed":"1343a8994ca7dba78f5dd818e89d68331c21c35d","status":"affected"},{"type":"git","introduced":"3f5a61f6d504f55ed1a36cce044d5123d508721f","fixed":"c875503a9b9082928d7d3fc60b5400d16fbfae4e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.14","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d85a6346fd6f595c4914205762d0cdf35c004a5e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1343a8994ca7dba78f5dd818e89d68331c21c35d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c875503a9b9082928d7d3fc60b5400d16fbfae4e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38720","url":"https://www.cve.org/CVERecord?id=CVE-2025-38720","licence":"CVE Terms of Use","modified":"2026-05-11T21:33:40.872Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38720","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38720","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.158Z","epss":{"score":0.00127,"percentile":0.02532,"date":"2026-12-02T12:00:21.000Z"}}