{"id":"CVE-2023-52847","aliases":["CVE-2023-52847"],"related":[],"kind":"vulnerability","state":"published","title":"media: bttv: fix use after free error due to btv->timeout timer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: bttv: fix use after free error due to btv->timeout timer\n\nThere may be some a race condition between timer function\nbttv_irq_timeout and bttv_remove. The timer is setup in\nprobe and there is no timer_delete operation in remove\nfunction. When it hit kfree btv, the function might still be\ninvoked, which will cause use after free bug.\n\nThis bug is found by static analysis, it may be false positive.\n\nFix it by adding del_timer_sync invoking to the remove function.\n\ncpu0                cpu1\n                  bttv_probe\n                    ->timer_setup\n                      ->bttv_set_dma\n                        ->mod_timer;\nbttv_remove\n  ->kfree(btv);\n                  ->bttv_irq_timeout\n                    ->USE btv","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: bttv: fix use after free error due to btv->timeout timer\n\nThere may be some a race condition between timer function\nbttv_irq_timeout and bttv_remove. The timer is setup in\nprobe and there is no timer_delete operation in remove\nfunction. When it hit kfree btv, the function might still be\ninvoked, which will cause use after free bug.\n\nThis bug is found by static analysis, it may be false positive.\n\nFix it by adding del_timer_sync invoking to the remove function.\n\ncpu0                cpu1\n                  bttv_probe\n                    ->timer_setup\n                      ->bttv_set_dma\n                        ->mod_timer;\nbttv_remove\n  ->kfree(btv);\n                  ->bttv_irq_timeout\n                    ->USE btv","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: medio: bttv: corrección de uso después de error gratuito debido a btv-&gt;timeout timer. Puede haber alguna condición de ejecución entre la función del temporizador bttv_irq_timeout y bttv_remove. El temporizador está configurado en la sonda y no hay ninguna operación timer_delete en la función de eliminación. Cuando llega a kfree btv, es posible que la función aún se invoque, lo que provocará un error de use after free. Este error se encuentra mediante análisis estático y puede ser un falso positivo. Solucionelo agregando del_timer_sync invocando a la función de eliminación. cpu0 cpu1 bttv_probe -&gt;timer_setup -&gt;bttv_set_dma -&gt;mod_timer; bttv_remove -&gt;kfree(btv); -&gt;bttv_irq_timeout -&gt;USE btv","source":"nvd"}],"published":"2024-05-21T15:31:44.513Z","modified":"2026-08-05T09:11:40.867Z","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:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-362","CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"b35fdade92c5058a5e727e233fe263b828de2c9a","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"2f3d9198cdae1cb079ec8652f4defacd481eab2b","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"51c94256a83fe4e17406c66ff3e1ad7d242d8574","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"20568d06f6069cb835e05eed432edf962645d226","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"1871014d6ef4812ad11ef7d838d73ce09d632267","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"847599fffa528b2cdec4e21b6bf7586dad982132","status":"affected"},{"type":"git","introduced":"162e6376ac58440beb6a2d2ee294f5d88ea58dd1","fixed":"bd5b50b329e850d467e7bcc07b2b6bde3752fbda","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.299","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.261","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.201","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.139","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.63","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.12","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.2","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","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.15","fixed":"4.19.299"},{"status":"affected","introduced":"4.20","fixed":"5.4.261"},{"status":"affected","introduced":"5.5","fixed":"5.10.201"},{"status":"affected","introduced":"5.11","fixed":"5.15.139"},{"status":"affected","introduced":"5.16","fixed":"6.1.63"},{"status":"affected","introduced":"6.2","fixed":"6.5.12"},{"status":"affected","introduced":"6.6","fixed":"6.6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bbc3b8dd2cb7817e703f112d988e4f4728f0f2a9","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b35fdade92c5058a5e727e233fe263b828de2c9a","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f3d9198cdae1cb079ec8652f4defacd481eab2b","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51c94256a83fe4e17406c66ff3e1ad7d242d8574","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/20568d06f6069cb835e05eed432edf962645d226","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1871014d6ef4812ad11ef7d838d73ce09d632267","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/847599fffa528b2cdec4e21b6bf7586dad982132","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd5b50b329e850d467e7bcc07b2b6bde3752fbda","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-10T19:17:00.085Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52847","url":"https://www.cve.org/CVERecord?id=CVE-2023-52847","licence":"CVE Terms of Use","modified":"2026-08-05T09:11:40.867Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52847","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52847","licence":"Public domain","modified":"2026-08-04T10:18:45.987Z"}],"updatedAt":"2026-11-25T22:58:34.052Z","epss":{"score":0.00188,"percentile":0.08728,"date":"2026-12-02T12:00:21.000Z"}}