{"id":"CVE-2022-50624","aliases":["CVE-2022-50624"],"related":[],"kind":"vulnerability","state":"published","title":"net: netsec: fix error handling in netsec_register_mdio()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: netsec: fix error handling in netsec_register_mdio()\n\nIf phy_device_register() fails, phy_device_free() need be called to\nput refcount, so memory of phy device and device name can be freed\nin callback function.\n\nIf get_phy_device() fails, mdiobus_unregister() need be called,\nor it will cause warning in mdiobus_free() and kobject is leaked.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: netsec: fix error handling in netsec_register_mdio()\n\nIf phy_device_register() fails, phy_device_free() need be called to\nput refcount, so memory of phy device and device name can be freed\nin callback function.\n\nIf get_phy_device() fails, mdiobus_unregister() need be called,\nor it will cause warning in mdiobus_free() and kobject is leaked.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: netsec: corregir el manejo de errores en netsec_register_mdio()\n\nSi phy_device_register() falla, phy_device_free() debe ser llamada para disminuir el contador de referencias, de modo que la memoria del dispositivo phy y el nombre del dispositivo puedan ser liberados en la función de callback.\n\nSi get_phy_device() falla, mdiobus_unregister() debe ser llamada, o causará una advertencia en mdiobus_free() y se producirá una fuga de kobject.","source":"nvd"}],"published":"2025-12-08T01:16:38.357Z","modified":"2026-11-11T23:10:00.263Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"728884b22d83148a330b23f9472f1e118b589211","status":"affected"},{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"fda2d07234a21be4d71ebfe97a45f499726902d6","status":"affected"},{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"62f0a08e82a6312efd7df7f595c0b11d4ffde610","status":"affected"},{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"1e0bee973ef6fc3c1e3acb014515eaea37c8fa17","status":"affected"},{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"846e677daf51220d7975c61a20e440a88473951e","status":"affected"},{"type":"git","introduced":"533dd11a12f698c571a12271b20f235792d3e148","fixed":"94423589689124e8cd145b38a1034be7f25835b2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"4.19.264","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.223","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.153","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.77","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.7","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","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/728884b22d83148a330b23f9472f1e118b589211","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fda2d07234a21be4d71ebfe97a45f499726902d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62f0a08e82a6312efd7df7f595c0b11d4ffde610","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e0bee973ef6fc3c1e3acb014515eaea37c8fa17","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/846e677daf51220d7975c61a20e440a88473951e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94423589689124e8cd145b38a1034be7f25835b2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50624","url":"https://www.cve.org/CVERecord?id=CVE-2022-50624","licence":"CVE Terms of Use","modified":"2026-05-11T19:22:26.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50624","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50624","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:58:21.291Z","epss":{"score":0.00222,"percentile":0.13586,"date":"2026-12-01T12:00:22.000Z"}}