{"id":"CVE-2024-44971","aliases":["CVE-2024-44971"],"related":[],"kind":"vulnerability","state":"published","title":"net: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()\n\nbcm_sf2_mdio_register() calls of_phy_find_device() and then\nphy_device_remove() in a loop to remove existing PHY devices.\nof_phy_find_device() eventually calls bus_find_device(), which calls\nget_device() on the returned struct device * to increment the refcount.\nThe current implementation does not decrement the refcount, which causes\nmemory leak.\n\nThis commit adds the missing phy_device_free() call to decrement the\nrefcount via put_device() to balance the refcount.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: bcm_sf2: Fix a possible memory leak in bcm_sf2_mdio_register()\n\nbcm_sf2_mdio_register() calls of_phy_find_device() and then\nphy_device_remove() in a loop to remove existing PHY devices.\nof_phy_find_device() eventually calls bus_find_device(), which calls\nget_device() on the returned struct device * to increment the refcount.\nThe current implementation does not decrement the refcount, which causes\nmemory leak.\n\nThis commit adds the missing phy_device_free() call to decrement the\nrefcount via put_device() to balance the refcount.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: dsa: bcm_sf2: Se corrige una posible pérdida de memoria en bcm_sf2_mdio_register() bcm_sf2_mdio_register() llama a of_phy_find_device() y luego a phy_device_remove() en un bucle para eliminar los dispositivos PHY existentes. of_phy_find_device() finalmente llama a bus_find_device(), que llama a get_device() en el struct device * devuelto para incrementar el refcount. La implementación actual no disminuye el refcount, lo que causa una pérdida de memoria. Esta confirmación agrega la llamada phy_device_free() faltante para disminuir el refcount a través de put_device() para equilibrar el refcount.","source":"nvd"}],"published":"2024-09-04T18:56:47.475Z","modified":"2026-06-17T07:53:20.040Z","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-401"],"affected":[{"ranges":[{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"b7b8d9f5e679af60c94251fd6728dde34be69a71","status":"affected"},{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"c05516c072903f6fb9134b8e7e1ad4bffcdc4819","status":"affected"},{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"7feef10768ea71d468d9bbc1e0d14c461876768c","status":"affected"},{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"a7d2808d67570e6acae45c2a96e0d59986888e4c","status":"affected"},{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"f3d5efe18a11f94150fee8b3fda9d62079af640a","status":"affected"},{"type":"git","introduced":"771089c2a485958e423f305e974303760167b45c","fixed":"e3862093ee93fcfbdadcb7957f5f8974fffa806a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.105","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.46","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.5","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","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":"5.10","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.105"},{"status":"affected","introduced":"6.2","fixed":"6.6.46"},{"status":"affected","introduced":"6.7","fixed":"6.10.5"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b7b8d9f5e679af60c94251fd6728dde34be69a71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c05516c072903f6fb9134b8e7e1ad4bffcdc4819","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7feef10768ea71d468d9bbc1e0d14c461876768c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7d2808d67570e6acae45c2a96e0d59986888e4c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3d5efe18a11f94150fee8b3fda9d62079af640a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3862093ee93fcfbdadcb7957f5f8974fffa806a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:39:14.220Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-44971","url":"https://www.cve.org/CVERecord?id=CVE-2024-44971","licence":"CVE Terms of Use","modified":"2026-05-11T20:32:58.689Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-44971","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-44971","licence":"Public domain","modified":"2026-06-17T07:53:20.040Z"}],"updatedAt":"2026-11-25T22:58:45.081Z","epss":{"score":0.00212,"percentile":0.12215,"date":"2026-12-02T12:00:21.000Z"}}