{"id":"CVE-2021-47500","aliases":["CVE-2021-47500"],"related":[],"kind":"vulnerability","state":"published","title":"iio: mma8452: Fix trigger reference couting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: mma8452: corrección del cálculo de referencia del disparador El controlador mma8452 asigna directamente un disparador a la estructura iio_dev. El núcleo de IIO, cuando termine de usar este activador, llamará a `iio_trigger_put()` para reducir el recuento de referencias en 1. Sin el `iio_trigger_get()` coincidente en el controlador, el recuento de referencias puede llegar a 0 demasiado pronto, el activador se libera mientras aún está en se produce un uso y un use-after-free. Solucione este problema obteniendo una referencia al disparador antes de asignarlo al dispositivo IIO.","source":"nvd"}],"published":"2024-05-24T15:01:43.362Z","modified":"2026-08-05T08:48:07.024Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"094d513b78b1714113bc016684b8142382e071ba","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"fb75cc4740d81264cd5bcb0e17d961d018a8be96","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"794c0898f6bf39a458655d5fb4af70ec43a5cfcb","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"f5deab10ced368c807866283f8b79144c4823be8","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"acf0088ac073ca6e7f4cad6acac112177e08df5e","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"db12d95085367de8b0223929d1332731024441f1","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"c43517071dfc9fce34f8f69dbb98a86017f6b739","status":"affected"},{"type":"git","introduced":"ae6d9ce05691bf79694074db7c7da980080548af","fixed":"cd0082235783f814241a1c9483fb89e405f4f892","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"4.4.295","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.293","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.258","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.221","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.165","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.85","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.8","lastAffected":"5.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.4.295"},{"status":"affected","introduced":"4.5","fixed":"4.9.293"},{"status":"affected","introduced":"4.10","fixed":"4.14.258"},{"status":"affected","introduced":"4.15","fixed":"4.19.221"},{"status":"affected","introduced":"4.20","fixed":"5.4.165"},{"status":"affected","introduced":"5.5","fixed":"5.10.85"},{"status":"affected","introduced":"5.11","fixed":"5.15.8"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/094d513b78b1714113bc016684b8142382e071ba","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb75cc4740d81264cd5bcb0e17d961d018a8be96","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/794c0898f6bf39a458655d5fb4af70ec43a5cfcb","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5deab10ced368c807866283f8b79144c4823be8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/acf0088ac073ca6e7f4cad6acac112177e08df5e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db12d95085367de8b0223929d1332731024441f1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c43517071dfc9fce34f8f69dbb98a86017f6b739","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd0082235783f814241a1c9483fb89e405f4f892","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:35:45.977Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47500","url":"https://www.cve.org/CVERecord?id=CVE-2021-47500","licence":"CVE Terms of Use","modified":"2026-08-05T08:48:07.024Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47500","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47500","licence":"Public domain","modified":"2026-08-04T10:17:06.060Z"}],"updatedAt":"2026-11-25T22:58:08.887Z","epss":{"score":0.00242,"percentile":0.16524,"date":"2026-12-01T12:00:22.000Z"}}