{"id":"CVE-2021-47280","aliases":["CVE-2021-47280"],"related":[],"kind":"vulnerability","state":"published","title":"drm: Fix use-after-free read in drm_getunique()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: Fix use-after-free read in drm_getunique()\n\nThere is a time-of-check-to-time-of-use error in drm_getunique() due\nto retrieving file_priv->master prior to locking the device's master\nmutex.\n\nAn example can be seen in the crash report of the use-after-free error\nfound by Syzbot:\nhttps://syzkaller.appspot.com/bug?id=148d2f1dfac64af52ffd27b661981a540724f803\n\nIn the report, the master pointer was used after being freed. This is\nbecause another process had acquired the device's master mutex in\ndrm_setmaster_ioctl(), then overwrote fpriv->master in\ndrm_new_set_master(). The old value of fpriv->master was subsequently\nfreed before the mutex was unlocked.\n\nTo fix this, we lock the device's master mutex before retrieving the\npointer from from fpriv->master. This patch passes the Syzbot\nreproducer test.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm: Fix use-after-free read in drm_getunique()\n\nThere is a time-of-check-to-time-of-use error in drm_getunique() due\nto retrieving file_priv->master prior to locking the device's master\nmutex.\n\nAn example can be seen in the crash report of the use-after-free error\nfound by Syzbot:\nhttps://syzkaller.appspot.com/bug?id=148d2f1dfac64af52ffd27b661981a540724f803\n\nIn the report, the master pointer was used after being freed. This is\nbecause another process had acquired the device's master mutex in\ndrm_setmaster_ioctl(), then overwrote fpriv->master in\ndrm_new_set_master(). The old value of fpriv->master was subsequently\nfreed before the mutex was unlocked.\n\nTo fix this, we lock the device's master mutex before retrieving the\npointer from from fpriv->master. This patch passes the Syzbot\nreproducer test.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm: corrige la lectura de use after free en drm_getunique(). Hay un error de tiempo de verificación a tiempo de uso en drm_getunique() debido a la recuperación de file_priv. -&gt;master antes de bloquear el mutex maestro del dispositivo. Se puede ver un ejemplo en el informe de fallo del error de use after free encontrado por Syzbot: https://syzkaller.appspot.com/bug?id=148d2f1dfac64af52ffd27b661981a540724f803 En el informe, el puntero maestro se utilizó después de ser liberado. Esto se debe a que otro proceso adquirió el mutex maestro del dispositivo en drm_setmaster_ioctl() y luego sobrescribió fpriv-&gt;master en drm_new_set_master(). El antiguo valor de fpriv-&gt;master se liberó posteriormente antes de que se desbloqueara el mutex. Para solucionar este problema, bloqueamos el mutex maestro del dispositivo antes de recuperar el puntero desde fpriv-&gt;master. Este parche pasa la prueba del reproductor Syzbot.","source":"nvd"}],"published":"2024-05-21T14:20:06.852Z","modified":"2026-06-17T04:17:05.557Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-367","CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"17dab9326ff263c62dab1dbac4492e2938a049e4","status":"affected"},{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"7d233ba700ceb593905ea82b42dadb4ec8ef85e9","status":"affected"},{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"b246b4c70c1250e7814f409b243000f9c0bf79a3","status":"affected"},{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"491d52e0078860b33b6c14f0a7ac74ca1b603bd6","status":"affected"},{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"f773f8cccac13c7e7bbd9182e7996c727742488e","status":"affected"},{"type":"git","introduced":"5acc614ac47465fee6375a9af4740f618830762d","fixed":"b436acd1cf7fac0ba987abd22955d98025c80c2b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"4.14.237","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.195","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.126","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.44","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.11","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","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","fixed":"4.14.237"},{"status":"affected","introduced":"4.15","fixed":"4.19.195"},{"status":"affected","introduced":"4.20","fixed":"5.4.126"},{"status":"affected","introduced":"5.5","fixed":"5.10.44"},{"status":"affected","introduced":"5.11","fixed":"5.12.11"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/17dab9326ff263c62dab1dbac4492e2938a049e4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d233ba700ceb593905ea82b42dadb4ec8ef85e9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b246b4c70c1250e7814f409b243000f9c0bf79a3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/491d52e0078860b33b6c14f0a7ac74ca1b603bd6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f773f8cccac13c7e7bbd9182e7996c727742488e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b436acd1cf7fac0ba987abd22955d98025c80c2b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:39:32.193Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47280","url":"https://www.cve.org/CVERecord?id=CVE-2021-47280","licence":"CVE Terms of Use","modified":"2026-05-11T13:51:27.366Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47280","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47280","licence":"Public domain","modified":"2026-06-17T04:17:05.557Z"}],"updatedAt":"2026-11-25T22:58:08.774Z","epss":{"score":0.00184,"percentile":0.08382,"date":"2026-12-01T12:00:22.000Z"}}