CVE-2021-47500
iio: mma8452: Fix trigger reference couting
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba; >= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96; >= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; >= ae6d9ce05691bf79694074db7c7da980080548af, < f5deab10ced368c807866283f8b79144c4823be8; >= ae6d9ce05691bf79694074db7c7da980080548af, < acf0088ac073ca6e7f4cad6acac112177e08df5e; >= ae6d9ce05691bf79694074db7c7da980080548af, < db12d95085367de8b0223929d1332731024441f1; >= ae6d9ce05691bf79694074db7c7da980080548af, < c43517071dfc9fce34f8f69dbb98a86017f6b739; >= ae6d9ce05691bf79694074db7c7da980080548af, < cd0082235783f814241a1c9483fb89e405f4f892
- Anyone running Linux 4.2
Vulnerability facts
- Affected
- Linux >= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba; >= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96; >= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; >= ae6d9ce05691bf79694074db7c7da980080548af, < f5deab10ced368c807866283f8b79144c4823be8; >= ae6d9ce05691bf79694074db7c7da980080548af, < acf0088ac073ca6e7f4cad6acac112177e08df5e; >= ae6d9ce05691bf79694074db7c7da980080548af, < db12d95085367de8b0223929d1332731024441f1; >= ae6d9ce05691bf79694074db7c7da980080548af, < c43517071dfc9fce34f8f69dbb98a86017f6b739; >= ae6d9ce05691bf79694074db7c7da980080548af, < cd0082235783f814241a1c9483fb89e405f4f892; Linux 4.2
- Fixed in
- Linux 094d513b78b1714113bc016684b8142382e071ba, Linux 794c0898f6bf39a458655d5fb4af70ec43a5cfcb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-416
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba; >= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96; >= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; >= ae6d9ce05691bf79694074db7c7da980080548af, < f5deab10ced368c807866283f8b79144c4823be8; >= ae6d9ce05691bf79694074db7c7da980080548af, < acf0088ac073ca6e7f4cad6acac112177e08df5e; >= ae6d9ce05691bf79694074db7c7da980080548af, < db12d95085367de8b0223929d1332731024441f1; >= ae6d9ce05691bf79694074db7c7da980080548af, < c43517071dfc9fce34f8f69dbb98a86017f6b739; >= ae6d9ce05691bf79694074db7c7da980080548af, < cd0082235783f814241a1c9483fb89e405f4f892 | — | cvelist |
| Linux | 4.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47500. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47500.md Affected: Linux >= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba; >= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96; >= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; >= ae6d9ce05691bf79694074d… Fixed in: Linux 094d513b78b1714113bc016684b8142382e071ba, Linux 794c0898f6bf39a458655d5fb4af70ec43a5cfcb Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/094d513b78b1714113bc016684b8142382e071ba
- https://git.kernel.org/stable/c/fb75cc4740d81264cd5bcb0e17d961d018a8be96
- https://git.kernel.org/stable/c/794c0898f6bf39a458655d5fb4af70ec43a5cfcb
- https://git.kernel.org/stable/c/f5deab10ced368c807866283f8b79144c4823be8
- https://git.kernel.org/stable/c/acf0088ac073ca6e7f4cad6acac112177e08df5e
- https://git.kernel.org/stable/c/db12d95085367de8b0223929d1332731024441f1
- https://git.kernel.org/stable/c/c43517071dfc9fce34f8f69dbb98a86017f6b739
- https://git.kernel.org/stable/c/cd0082235783f814241a1c9483fb89e405f4f892
FAQ
Is CVE-2021-47500 being exploited?
There is no confirmed exploitation: CVE-2021-47500 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47500?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47500?
Linux >= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba; >= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96; >= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; >= ae6d9ce05691bf79694074db7c7da980080548af, < f5deab10ced368c807866283f8b79144c4823be8; >= ae6d9ce05691bf79694074db7c7da980080548af, < acf0088ac073ca6e7f4cad6acac112177e08df5e; >= ae6d9ce05691bf79694074db7c7da980080548af, < db12d95085367de8b0223929d1332731024441f1; >= ae6d9ce05691bf79694074db7c7da980080548af, < c43517071dfc9fce34f8f69dbb98a86017f6b739; >= ae6d9ce05691bf79694074db7c7da980080548af, < cd0082235783f814241a1c9483fb89e405f4f892; Linux 4.2.
Is there a fix for CVE-2021-47500?
Yes. Fixed in Linux 094d513b78b1714113bc016684b8142382e071ba, Linux 794c0898f6bf39a458655d5fb4af70ec43a5cfcb. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-47500?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.