{"id":"CVE-2024-35879","published":"2024-05-19T08:34:36Z","modified":"2026-08-05T11:30:36Z","title":"of: dynamic: Synchronize of_changeset_destroy() with the devlink removals","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00237,"percentile":0.15021,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3127b2ee50c424a96eb3559fbb7b43cf0b111c7a","tags":[]},{"url":"https://git.kernel.org/stable/c/3ee2424107546d882e1ddd75333ca9c32879908c","tags":[]},{"url":"https://git.kernel.org/stable/c/7b6df050c45a1ea158fd50bc32a8e1447dd1e951","tags":[]},{"url":"https://git.kernel.org/stable/c/801c8b8ec5bfb3519566dff16a5ecd48302fca82","tags":[]},{"url":"https://git.kernel.org/stable/c/ae6d76e4f06c37a623e357e79d49b17411db6f5c","tags":[]},{"url":"https://git.kernel.org/stable/c/8917e7385346bd6584890ed362985c219fe6ae84","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.0},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d007150b4e15bfcb8d36cfd88a5645d42e44d383, < 3127b2ee50c424a96eb3559fbb7b43cf0b111c7a",">= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 3ee2424107546d882e1ddd75333ca9c32879908c",">= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 7b6df050c45a1ea158fd50bc32a8e1447dd1e951",">= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 801c8b8ec5bfb3519566dff16a5ecd48302fca82",">= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < ae6d76e4f06c37a623e357e79d49b17411db6f5c",">= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 8917e7385346bd6584890ed362985c219fe6ae84","252c23915546863685ecc68cb3a39e7e80c6c9d4",">= 5.10.42, < 5.10.215",">= 5.12.9, < 5.13"]},{"vendor":"Linux","product":"Linux","versions":["5.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-20T15:13:02.160768Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35597","exploited":false,"provenance":"source"}}