# CVE-2021-47500: iio: mma8452: Fix trigger reference couting

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2024-05-24T15:01:43.362Z
- **Modified:** 2026-08-05T08:48:07.024Z

## 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

## 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

- Linux: \>= ae6d9ce05691bf79694074db7c7da980080548af, \< 094d513b78b1714113bc016684b8142382e071ba; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< fb75cc4740d81264cd5bcb0e17d961d018a8be96; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< 794c0898f6bf39a458655d5fb4af70ec43a5cfcb; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< f5deab10ced368c807866283f8b79144c4823be8; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< acf0088ac073ca6e7f4cad6acac112177e08df5e; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< db12d95085367de8b0223929d1332731024441f1; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< c43517071dfc9fce34f8f69dbb98a86017f6b739; \>= ae6d9ce05691bf79694074db7c7da980080548af, \< cd0082235783f814241a1c9483fb89e405f4f892 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- patch: <https://git.kernel.org/stable/c/094d513b78b1714113bc016684b8142382e071ba>
- patch: <https://git.kernel.org/stable/c/fb75cc4740d81264cd5bcb0e17d961d018a8be96>
- patch: <https://git.kernel.org/stable/c/794c0898f6bf39a458655d5fb4af70ec43a5cfcb>
- patch: <https://git.kernel.org/stable/c/f5deab10ced368c807866283f8b79144c4823be8>
- patch: <https://git.kernel.org/stable/c/acf0088ac073ca6e7f4cad6acac112177e08df5e>
- patch: <https://git.kernel.org/stable/c/db12d95085367de8b0223929d1332731024441f1>
- patch: <https://git.kernel.org/stable/c/c43517071dfc9fce34f8f69dbb98a86017f6b739>
- patch: <https://git.kernel.org/stable/c/cd0082235783f814241a1c9483fb89e405f4f892>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47500>

HTML: <https://flawdb.com/CVE-2021-47500> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47500>
