{"id":"CVE-2024-35879","summary":"of: dynamic: Synchronize of_changeset_destroy() with the devlink removals","details":"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.","modified":"2026-04-02T11:51:39.779035Z","published":"2024-05-19T08:34:36.450Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35879.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3127b2ee50c424a96eb3559fbb7b43cf0b111c7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ee2424107546d882e1ddd75333ca9c32879908c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b6df050c45a1ea158fd50bc32a8e1447dd1e951"},{"type":"WEB","url":"https://git.kernel.org/stable/c/801c8b8ec5bfb3519566dff16a5ecd48302fca82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8917e7385346bd6584890ed362985c219fe6ae84"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae6d76e4f06c37a623e357e79d49b17411db6f5c"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35879.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35879"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d007150b4e15bfcb8d36cfd88a5645d42e44d383"},{"fixed":"3127b2ee50c424a96eb3559fbb7b43cf0b111c7a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f"},{"fixed":"3ee2424107546d882e1ddd75333ca9c32879908c"},{"fixed":"7b6df050c45a1ea158fd50bc32a8e1447dd1e951"},{"fixed":"801c8b8ec5bfb3519566dff16a5ecd48302fca82"},{"fixed":"ae6d76e4f06c37a623e357e79d49b17411db6f5c"},{"fixed":"8917e7385346bd6584890ed362985c219fe6ae84"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"252c23915546863685ecc68cb3a39e7e80c6c9d4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35879.json"}}],"schema_version":"1.7.5"}