{"id":"CVE-2021-47500","published":"2024-05-24T15:01:43Z","modified":"2026-08-05T08:48:07Z","title":"iio: mma8452: Fix trigger reference couting","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: mma8452: Fix trigger reference couting\n\nThe mma8452 driver directly assigns a trigger to the struct iio_dev. The\nIIO core when done using this trigger will call `iio_trigger_put()` to drop\nthe reference count by 1.\n\nWithout the matching `iio_trigger_get()` in the driver the reference count\ncan reach 0 too early, the trigger gets freed while still in use and a\nuse-after-free occurs.\n\nFix this by getting a reference to the trigger before assigning it to the\nIIO device.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00242,"percentile":0.15732,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/094d513b78b1714113bc016684b8142382e071ba","tags":[]},{"url":"https://git.kernel.org/stable/c/fb75cc4740d81264cd5bcb0e17d961d018a8be96","tags":[]},{"url":"https://git.kernel.org/stable/c/794c0898f6bf39a458655d5fb4af70ec43a5cfcb","tags":[]},{"url":"https://git.kernel.org/stable/c/f5deab10ced368c807866283f8b79144c4823be8","tags":[]},{"url":"https://git.kernel.org/stable/c/acf0088ac073ca6e7f4cad6acac112177e08df5e","tags":[]},{"url":"https://git.kernel.org/stable/c/db12d95085367de8b0223929d1332731024441f1","tags":[]},{"url":"https://git.kernel.org/stable/c/c43517071dfc9fce34f8f69dbb98a86017f6b739","tags":[]},{"url":"https://git.kernel.org/stable/c/cd0082235783f814241a1c9483fb89e405f4f892","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.15},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ae6d9ce05691bf79694074db7c7da980080548af, < 094d513b78b1714113bc016684b8142382e071ba",">= ae6d9ce05691bf79694074db7c7da980080548af, < fb75cc4740d81264cd5bcb0e17d961d018a8be96",">= ae6d9ce05691bf79694074db7c7da980080548af, < 794c0898f6bf39a458655d5fb4af70ec43a5cfcb",">= ae6d9ce05691bf79694074db7c7da980080548af, < f5deab10ced368c807866283f8b79144c4823be8",">= ae6d9ce05691bf79694074db7c7da980080548af, < acf0088ac073ca6e7f4cad6acac112177e08df5e",">= ae6d9ce05691bf79694074db7c7da980080548af, < db12d95085367de8b0223929d1332731024441f1",">= ae6d9ce05691bf79694074db7c7da980080548af, < c43517071dfc9fce34f8f69dbb98a86017f6b739",">= ae6d9ce05691bf79694074db7c7da980080548af, < cd0082235783f814241a1c9483fb89e405f4f892"]},{"vendor":"Linux","product":"Linux","versions":["4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:35:45.977945Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34504","exploited":false,"provenance":"source"}}