CVE-2021-47500
iio: mma8452: Fix trigger reference couting
Check your servers for CVE-2021-47500
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-2021-47500 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:
iio: mma8452: Fix trigger reference couting
The mma8452 driver directly assigns a trigger to the struct iio_dev. The IIO core when done using this trigger will call `iio_trigger_put()` to drop the reference count by 1.
Without the matching `iio_trigger_get()` in the driver the reference count can reach 0 too early, the trigger gets freed while still in use and a use-after-free occurs.
Fix this by getting a reference to the trigger before assigning it to the IIO device.
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 16.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 ae6d9ce05691bf79694074db7c7da980080548af, before 094d513b78b1714113bc016684b8142382e071ba affected from ae6d9ce05691bf79694074db7c7da980080548af, before fb75cc4740d81264cd5bcb0e17d961d018a8be96 affected from ae6d9ce05691bf79694074db7c7da980080548af, before 794c0898f6bf39a458655d5fb4af70ec43a5cfcb affected from ae6d9ce05691bf79694074db7c7da980080548af, before f5deab10ced368c807866283f8b79144c4823be8 affected from ae6d9ce05691bf79694074db7c7da980080548af, before acf0088ac073ca6e7f4cad6acac112177e08df5e affected from ae6d9ce05691bf79694074db7c7da980080548af, before db12d95085367de8b0223929d1332731024441f1 affected from ae6d9ce05691bf79694074db7c7da980080548af, before c43517071dfc9fce34f8f69dbb98a86017f6b739 affected from ae6d9ce05691bf79694074db7c7da980080548af, before cd0082235783f814241a1c9483fb89e405f4f892
Other versions: unaffected
|
| Linux |
affected 4.2 unaffected before 4.2 unaffected from 4.4.295 up to and including 4.4.* unaffected from 4.9.293 up to and including 4.9.* unaffected from 4.14.258 up to and including 4.14.* unaffected from 4.19.221 up to and including 4.19.* unaffected from 5.4.165 up to and including 5.4.* unaffected from 5.10.85 up to and including 5.10.* unaffected from 5.15.8 up to and including 5.15.* unaffected 5.16 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-2021-47500 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47500
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-2021-47500
trivy image --scanners vuln IMAGE | grep CVE-2021-47500
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/094d513b78b1714113bc016684b8142382e071ba git.kernel.org
- https://git.kernel.org/stable/c/fb75cc4740d81264cd5bcb0e17d961d018a8be96 git.kernel.org
- https://git.kernel.org/stable/c/794c0898f6bf39a458655d5fb4af70ec43a5cfcb git.kernel.org
- https://git.kernel.org/stable/c/f5deab10ced368c807866283f8b79144c4823be8 git.kernel.org
- https://git.kernel.org/stable/c/acf0088ac073ca6e7f4cad6acac112177e08df5e git.kernel.org
- https://git.kernel.org/stable/c/db12d95085367de8b0223929d1332731024441f1 git.kernel.org
- https://git.kernel.org/stable/c/c43517071dfc9fce34f8f69dbb98a86017f6b739 git.kernel.org
- https://git.kernel.org/stable/c/cd0082235783f814241a1c9483fb89e405f4f892 git.kernel.org
Source: the record CVE-2021-47500 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