CVE-2024-35879
of: dynamic: Synchronize of_changeset_destroy() with the devlink removals
Check your servers for CVE-2024-35879
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35879 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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: 1) of_platform_depopulate() 2) 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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 20 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d007150b4e15bfcb8d36cfd88a5645d42e44d383, before 3127b2ee50c424a96eb3559fbb7b43cf0b111c7a affected from 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, before 3ee2424107546d882e1ddd75333ca9c32879908c affected from 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, before 7b6df050c45a1ea158fd50bc32a8e1447dd1e951 affected from 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, before 801c8b8ec5bfb3519566dff16a5ecd48302fca82 affected from 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, before ae6d76e4f06c37a623e357e79d49b17411db6f5c affected from 80dd33cf72d1ab4f0af303f1fa242c6d6c8d328f, before 8917e7385346bd6584890ed362985c219fe6ae84 affected 252c23915546863685ecc68cb3a39e7e80c6c9d4 affected from 5.10.42, before 5.10.215 affected from 5.12.9, before 5.13
Other versions: unaffected
|
| Linux |
affected 5.13 unaffected before 5.13 unaffected from 5.10.215 up to and including 5.10.* unaffected from 5.15.154 up to and including 5.15.* unaffected from 6.1.85 up to and including 6.1.* unaffected from 6.6.26 up to and including 6.6.* unaffected from 6.8.5 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35879 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35879
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-35879
trivy image --scanners vuln IMAGE | grep CVE-2024-35879
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3127b2ee50c424a96eb3559fbb7b43cf0b111c7a git.kernel.org
- https://git.kernel.org/stable/c/3ee2424107546d882e1ddd75333ca9c32879908c git.kernel.org
- https://git.kernel.org/stable/c/7b6df050c45a1ea158fd50bc32a8e1447dd1e951 git.kernel.org
- https://git.kernel.org/stable/c/801c8b8ec5bfb3519566dff16a5ecd48302fca82 git.kernel.org
- https://git.kernel.org/stable/c/ae6d76e4f06c37a623e357e79d49b17411db6f5c git.kernel.org
- https://git.kernel.org/stable/c/8917e7385346bd6584890ed362985c219fe6ae84 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
Source: the record CVE-2024-35879 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse