{"id":"CVE-2022-48434","details":"libavcodec/pthread_frame.c in FFmpeg before 5.1.2, as used in VLC and other products, leaves stale hwaccel state in worker threads, which allows attackers to trigger a use-after-free and execute arbitrary code in some circumstances (e.g., hardware re-initialization upon a mid-video SPS change when Direct3D11 is used).","modified":"2026-08-18T16:22:48.764007Z","published":"2023-03-29T00:00:00Z","related":["SUSE-SU-2023:2087-1","SUSE-SU-2023:2108-1","SUSE-SU-2023:2115-1","SUSE-SU-2025:0958-1","openSUSE-SU-2025:14880-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48434.json"},"references":[{"type":"WEB","url":"https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/cc867f2c09d2b69cee8a0eccd62aff002cbbfe11"},{"type":"WEB","url":"https://news.ycombinator.com/item?id=35356201"},{"type":"WEB","url":"https://wrv.github.io/h26forge.pdf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48434.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KOMB6WRUC55VWV25IKJTV22KARBUGWGQ/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PQHNSWXFUN3VJ3AO2AEJUK3BURSGM5G2/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48434"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202312-14"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.ffmpeg.org/ffmpeg.git","events":[{"introduced":"0"},{"fixed":"eacfcbae690f914a4b1b4ad06999f138540cc3d8"},{"fixed":"cc867f2c09d2b69cee8a0eccd62aff002cbbfe11"}],"database_specific":{"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.1.2"}],"source":["CPE_RANGE","REFERENCES"]}},{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"eacfcbae690f914a4b1b4ad06999f138540cc3d8"}],"database_specific":{"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"5.1.2"}],"source":"CPE_RANGE"}}],"versions":["n5.1.1","n5.1","n5.2-dev","n5.1-dev","n4.5-dev","n4.4-dev","n4.3-dev","n4.2-dev","n4.1-dev","n3.5-dev","n3.4-dev","n3.3-dev","n3.2-dev","n3.1-dev","n2.9-dev","n2.8-dev","n2.7-dev","n2.6-dev","n2.5-dev","n2.4-dev","n2.3-dev","n2.2-dev","n2.0","n2.1-dev","n1.3-dev","n1.2-dev","n1.1-dev","n0.12-dev","n0.11-dev","n0.8","N"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48434.json","vanir_signatures_modified":"2026-08-18T16:22:48Z","vanir_signatures":[{"deprecated":false,"digest":{"function_hash":"129623800253803408896070870341619755653","length":1451},"id":"CVE-2022-48434-0a5117d8","signature_type":"Function","signature_version":"v1","source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c","function":"frame_worker_thread"}},{"deprecated":false,"digest":{"line_hashes":["10528239171176857531244770271589686750","200952194589098679218100629860777261364","183596369220543626372731844533854912227","40878650793718169052229253133314659424","141816448151988664049077428994140543136","308935141285297908795429293018059980205","305277641468479702889952897166077112426","248449386797319150559230977554150083881","118361872703906114047508651935894343732","182137308607633458906003548249233147789","240729860733113551922739522172313303052","330608845552226468538357521197813536003","204084279799101720832800276567378312439","37491653631610964812830354522817576343","52930837125030539118730059783389706997","135155602467713780565307010894133569176","247282265368582515419288975884907276843","51501267889168396676326743607689212172","309425206741646289179387222475327089235","163442030280977845222227321483562812527","58085087838425428456392300210096748576","35523639368041555532541514702651331913","49777271737872188553664355611642237821","10316650006725128014936197141972570491","2169764106105830351939816767444678532","37784288186604690606498702761303757372","114675202774787927327191834999130129567","66490225704219299671123223182927820527","294663297926941279147674144760158668260","186316542344749875716652606314120628179","46389039076894716658872232113284945667","137811159900953494420711103808855550690","314250663821599437208245173098463544689","239210614520203872747395221322135795498","250953138865452428612926066109296422674","127657791217020131398804478907926425022","117829752412492083574966176563400947771","130951031736595567917994456234941444115"],"threshold":0.9},"id":"CVE-2022-48434-2448d62a","signature_type":"Line","signature_version":"v1","source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c"}},{"signature_type":"Function","signature_version":"v1","source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c","function":"update_context_from_thread"},"deprecated":false,"digest":{"length":2573,"function_hash":"56560963278836157912698965188787693020"},"id":"CVE-2022-48434-2c020064"},{"signature_type":"Function","signature_version":"v1","source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c","function":"ff_thread_finish_setup"},"deprecated":false,"digest":{"function_hash":"38764958891191645412957657079237587570","length":765},"id":"CVE-2022-48434-5c4a95e5"},{"source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c","function":"submit_packet"},"deprecated":false,"digest":{"length":2488,"function_hash":"74810039545652250206519946322870728568"},"id":"CVE-2022-48434-840b4d6b","signature_type":"Function","signature_version":"v1"},{"signature_type":"Function","signature_version":"v1","source":"https://git.ffmpeg.org/ffmpeg.git@cc867f2c09d2b69cee8a0eccd62aff002cbbfe11","target":{"file":"libavcodec/pthread_frame.c","function":"ff_frame_thread_free"},"deprecated":false,"digest":{"function_hash":"272777994590002823373779363685401584243","length":1625},"id":"CVE-2022-48434-91bbed82"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}