A null pointer dereference issue was discovered in 'FFmpeg' in decodemainheader() function of libavformat/nutdec.c file. The flaw occurs because the function lacks check of the return value of avformatnewstream() and triggers the null pointer dereference error, causing an application to crash.
{
"cwe_ids": [
"CWE-476"
],
"cna_assigner": "fedora",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3341.json"
}{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "5.0.3"
}
]
}
{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "5.0.3"
}
]
}
[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-3341-7bd7d9b3",
"digest": {
"function_hash": "212714700687714782806110927416798275156",
"length": 1304.0
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
"target": {
"file": "libavformat/nutdec.c",
"function": "nut_read_header"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-3341-80733c23",
"digest": {
"line_hashes": [
"12906491528301950330056808785355663414",
"76424333453171500676199213834035246984",
"203494022266310686971057352550723705016",
"13052012182376853825858264053725079068",
"131228061223871305456284901214847639250",
"333372060833506373861945745183155683304",
"60434264573278572591382653163519097041",
"68123171997916593828225792216335267989",
"305721504112645504358781934941290050116",
"227041948220225308580425041563422634931",
"288431581750765352076620402669156110371",
"317019860032823344116413789327366253880",
"138144405539726247412790470779925534392",
"176278491276011713736716859563389188667",
"190890976758392512353778965706686771850",
"110797133720430837899212760794560089640",
"205461340203508466923070600963970238796",
"43296001175390136536001579821771425024"
],
"threshold": 0.9
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
"target": {
"file": "libavformat/nutdec.c"
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-3341-ae77536c",
"digest": {
"function_hash": "161495002188957486527608985501524411437",
"length": 4733.0
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/9cf652cef49d74afe3d454f27d49eb1a1394951e",
"target": {
"file": "libavformat/nutdec.c",
"function": "decode_main_header"
},
"signature_type": "Function"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-3341.json"
"2026-08-12T12:51:54Z"