CVE-2021-47500
iio: mma8452: Fix trigger reference couting
Reported by linux · Published May 24, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 5.15.8, 5.10.85, 5.4.165, 4.19.221, 4.14.258, 4.9.293, 4.4.295 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ae6d9ce05691bf79694074db7c7da980080548af, ae6d9ce05691bf79694074db7c7da980080548af, ae6d9ce05691bf79694074db7c7da980080548af |
| Linux | Linux | 4.2, 0, 4.4.295 |
| linux | linux_kernel | 4.2, 4.2, 4.2 |
| Linux | Linux | 4.2, 0, 4.4.295 |
Timeline
- May 24, 2024 CVE Published
- May 25, 2024 EPSS Score (30 in total, the first dated here)
- Jul 13, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch (61 in total, the first dated here)
- Aug 10, 2026 Security Advisory (81 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-47500
vulnetix vdb fixes CVE-2021-47500
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-47500/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart