VDB

CVE-2021-47500

CVE-2021-47500 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux5.15.8, 5.10.85, 5.4.165, 4.19.221, 4.14.258, 4.9.293, 4.4.295

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxae6d9ce05691bf79694074db7c7da980080548af, ae6d9ce05691bf79694074db7c7da980080548af, ae6d9ce05691bf79694074db7c7da980080548af
LinuxLinux4.2, 0, 4.4.295
linuxlinux_kernel4.2, 4.2, 4.2
LinuxLinux4.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›