CVE-2024-35879

Source
https://cve.org/CVERecord?id=CVE-2024-35879
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35879.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35879
Downstream
Related
Published
2024-05-19T08:34:36.450Z
Modified
2026-03-14T12:34:03.957364Z
Summary
of: dynamic: Synchronize of_changeset_destroy() with the devlink removals
Details

In the Linux kernel, the following vulnerability has been resolved:

of: dynamic: Synchronize ofchangesetdestroy() with the devlink removals

In the following sequence: 1) ofplatformdepopulate() 2) ofoverlayremove()

During the step 1, devices are destroyed and devlinks are removed. During the step 2, OF nodes are destroyed but _ofchangesetentrydestroy() can raise warnings related to missing ofnodeput(): ERROR: memory leak, expected refcount 1 instead of 2 ...

Indeed, during the devlink removals performed at step 1, the removal itself releasing the device (and the attached ofnode) is done by a job queued in a workqueue and so, it is done asynchronously with respect to function calls. When the warning is present, ofnode_put() will be called but wrongly too late from the workqueue job.

In order to be sure that any ongoing devlink removals are done before the ofnode destruction, synchronize the ofchangeset_destroy() with the devlink removals.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35879.json"
}
References

Affected packages

Git / 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 Unknown introduced commit / All previous commits are affected
Last affected
252c23915546863685ecc68cb3a39e7e80c6c9d4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35879.json"