CVE-2024-35879 of: dynamic: Synchronize of_changeset_destroy() with the devlink removals
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
of: dynamic: Synchronize of_changeset_destroy() with the devlink removals
In the following sequence:
- of_platform_depopulate()
- of_overlay_remove()
During the step 1, devices are destroyed and devlinks are removed.
During the step 2, OF nodes are destroyed but
__of_changeset_entry_destroy() can raise warnings related to missing
of_node_put():
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 of_node) 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, of_node_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 of_node destruction, synchronize the of_changeset_destroy() with the
devlink removals.
Upgrade path
10 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.85-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +16 more | 6.1.85-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| Linux kernel | < 5.10.215; < 5.15.154; < 6.1.85; < 6.6.26 +22 more | 3ee2424107546d882e1ddd75333ca9c32879908c, 5.10.215, 5.13, 5.15.154, 6.1.85, 6.6.26, 6.8.5, 6.9, 7b6df050c45a1ea158fd50bc32a8e1447dd1e951, 801c8b8ec5bfb3519566dff16a5ecd48302fca82, 3127b2ee50c424a96eb3559fbb7b43cf0b111c7a, 8917e7385346bd6584890ed362985c219fe6ae84, ae6d76e4f06c37a623e357e79d49b17411db6f5c | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-116.126 | 5.15.0-116.126 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-38.38 | 6.8.0-38.38 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1007.7 | 6.8.0-1007.7 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.85-1 | 6.1.85-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.9-1 | 6.8.9-1 |
| debian/linux(Debian:14) | < 6.8.9-1 | 6.8.9-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-116.126 | 5.15.0-116.126 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| Linux kernel | >= d007150b4e15bfcb8d36cfd88a5645d42e44d383, < 3127b2ee50c424a96eb3559fbb7b43cf0b111c7a | 3127b2ee50c424a96eb3559fbb7b43cf0b111c7a |
| Linux kernel | >= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 3ee2424107546d882e1ddd75333ca9c32879908c | 3ee2424107546d882e1ddd75333ca9c32879908c |
| Linux kernel | >= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 7b6df050c45a1ea158fd50bc32a8e1447dd1e951 | 7b6df050c45a1ea158fd50bc32a8e1447dd1e951 |
| Linux kernel | >= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 801c8b8ec5bfb3519566dff16a5ecd48302fca82 | 801c8b8ec5bfb3519566dff16a5ecd48302fca82 |
| Linux kernel | >= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < ae6d76e4f06c37a623e357e79d49b17411db6f5c | ae6d76e4f06c37a623e357e79d49b17411db6f5c |
| Linux kernel | >= 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, < 8917e7385346bd6584890ed362985c219fe6ae84 | 8917e7385346bd6584890ed362985c219fe6ae84 |
| Linux kernel | = 252c23915546863685ecc68cb3a39e7e80c6c9d4 | No fix listed |
| Linux kernel | >= 5.10.42, < 5.10.215 | 5.10.215 |
| Linux kernel | >= 5.12.9, < 5.13 | 5.13 |
| Linux kernel | = 5.13 | No fix listed |
| Linux kernel | < 5.10.215 | 5.10.215 |
| Linux kernel | < 5.15.154 | 5.15.154 |
| Linux kernel | < 6.1.85 | 6.1.85 |
| Linux kernel | < 6.6.26 | 6.6.26 |
| Linux kernel | < 6.8.5 | 6.8.5 |
| Linux kernel | < 6.9 | 6.9 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-38.38 | 6.8.0-38.38 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1007.7 | 6.8.0-1007.7 |
| Linux kernel | >= 5.13.1, < 5.15.154 | 5.15.154 |
| Linux kernel | >= 5.16, < 6.1.85 | 6.1.85 |
| Linux kernel | >= 6.2, < 6.6.26 | 6.6.26 |
| Linux kernel | >= 6.7, < 6.8.5 | 6.8.5 |
| Linux kernel | = 5.13-rc4 | No fix listed |
| Linux kernel | = 5.13-rc5 | No fix listed |
| Linux kernel | = 5.13-rc6 | No fix listed |
| Linux kernel | = 5.13-rc7 | No fix listed |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-35879 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6893-1 vendor-advisory
- USN-6898-1 vendor-advisory
- USN-6893-2 vendor-advisory
- USN-6898-2 vendor-advisory
- USN-6898-3 vendor-advisory
- USN-6893-3 vendor-advisory
- USN-6898-4 vendor-advisory
- USN-6917-1 vendor-advisory
- USN-6919-1 vendor-advisory
- USN-6918-1 vendor-advisory
- USN-6927-1 vendor-advisory
- USN-7019-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org third-party-advisory
- ENISA EUVD EUVD-2024-35597 third-party-advisory