{"id":"CVE-2024-35879","aliases":["CVE-2024-35879"],"related":[],"kind":"vulnerability","state":"published","title":"of: dynamic: Synchronize of_changeset_destroy() with the devlink removals","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: dynamic: Synchronize of_changeset_destroy() with the devlink removals\n\nIn the following sequence:\n  1) of_platform_depopulate()\n  2) of_overlay_remove()\n\nDuring the step 1, devices are destroyed and devlinks are removed.\nDuring the step 2, OF nodes are destroyed but\n__of_changeset_entry_destroy() can raise warnings related to missing\nof_node_put():\n  ERROR: memory leak, expected refcount 1 instead of 2 ...\n\nIndeed, during the devlink removals performed at step 1, the removal\nitself releasing the device (and the attached of_node) is done by a job\nqueued in a workqueue and so, it is done asynchronously with respect to\nfunction calls.\nWhen the warning is present, of_node_put() will be called but wrongly\ntoo late from the workqueue job.\n\nIn order to be sure that any ongoing devlink removals are done before\nthe of_node destruction, synchronize the of_changeset_destroy() with the\ndevlink removals.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: dynamic: Synchronize of_changeset_destroy() with the devlink removals\n\nIn the following sequence:\n  1) of_platform_depopulate()\n  2) of_overlay_remove()\n\nDuring the step 1, devices are destroyed and devlinks are removed.\nDuring the step 2, OF nodes are destroyed but\n__of_changeset_entry_destroy() can raise warnings related to missing\nof_node_put():\n  ERROR: memory leak, expected refcount 1 instead of 2 ...\n\nIndeed, during the devlink removals performed at step 1, the removal\nitself releasing the device (and the attached of_node) is done by a job\nqueued in a workqueue and so, it is done asynchronously with respect to\nfunction calls.\nWhen the warning is present, of_node_put() will be called but wrongly\ntoo late from the workqueue job.\n\nIn order to be sure that any ongoing devlink removals are done before\nthe of_node destruction, synchronize the of_changeset_destroy() with the\ndevlink removals.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: of:dynamic: Sincronizar of_changeset_destroy() con las eliminaciones de devlink En la siguiente secuencia: 1) of_platform_depopulate() 2) of_overlay_remove() Durante el paso 1, los dispositivos se destruyen y los devlinks son remoto. Durante el paso 2, los nodos OF se destruyen, pero __of_changeset_entry_destroy() puede generar advertencias relacionadas con la falta de of_node_put(): ERROR: pérdida de memoria, recuento esperado 1 en lugar de 2... De hecho, durante las eliminaciones de devlink realizadas en el paso 1, la eliminación La liberación del dispositivo (y el of_node adjunto) se realiza mediante un trabajo en cola en una cola de trabajo y, por lo tanto, se realiza de forma asincrónica con respecto a las llamadas a funciones. Cuando la advertencia está presente, se llamará a of_node_put() pero erróneamente demasiado tarde desde el trabajo de la cola de trabajo. Para asegurarse de que cualquier eliminación de devlink en curso se realice antes de la destrucción de of_node, sincronice of_changeset_destroy() con las eliminaciones de devlink.","source":"nvd"}],"published":"2024-05-19T08:34:36.450Z","modified":"2026-08-05T11:30:36.996Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"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":"d007150b4e15bfcb8d36cfd88a5645d42e44d383","fixed":"3127b2ee50c424a96eb3559fbb7b43cf0b111c7a","status":"affected"},{"type":"git","introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f","fixed":"3ee2424107546d882e1ddd75333ca9c32879908c","status":"affected"},{"type":"git","introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f","fixed":"7b6df050c45a1ea158fd50bc32a8e1447dd1e951","status":"affected"},{"type":"git","introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f","fixed":"801c8b8ec5bfb3519566dff16a5ecd48302fca82","status":"affected"},{"type":"git","introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f","fixed":"ae6d76e4f06c37a623e357e79d49b17411db6f5c","status":"affected"},{"type":"git","introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f","fixed":"8917e7385346bd6584890ed362985c219fe6ae84","status":"affected"},{"type":"git","version":"252c23915546863685ecc68cb3a39e7e80c6c9d4","status":"affected"},{"type":"semver","introduced":"5.10.42","fixed":"5.10.215","status":"affected"},{"type":"semver","introduced":"5.12.9","fixed":"5.13","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.10.215","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.154","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.85","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.26","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.5","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","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.42","fixed":"5.10.215"},{"status":"affected","introduced":"5.12.9","fixed":"5.13"},{"status":"affected","introduced":"5.13.1","fixed":"5.15.154"},{"status":"affected","introduced":"5.16","fixed":"6.1.85"},{"status":"affected","introduced":"6.2","fixed":"6.6.26"},{"status":"affected","introduced":"6.7","fixed":"6.8.5"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"6.9"},{"status":"affected","version":"6.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3127b2ee50c424a96eb3559fbb7b43cf0b111c7a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ee2424107546d882e1ddd75333ca9c32879908c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7b6df050c45a1ea158fd50bc32a8e1447dd1e951","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/801c8b8ec5bfb3519566dff16a5ecd48302fca82","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae6d76e4f06c37a623e357e79d49b17411db6f5c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8917e7385346bd6584890ed362985c219fe6ae84","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-20T15:13:02.160Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35879","url":"https://www.cve.org/CVERecord?id=CVE-2024-35879","licence":"CVE Terms of Use","modified":"2026-08-05T11:30:36.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35879","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35879","licence":"Public domain","modified":"2026-08-04T11:18:04.680Z"}],"updatedAt":"2026-11-25T22:58:40.579Z","epss":{"score":0.00237,"percentile":0.15768,"date":"2026-12-01T12:00:22.000Z"}}