{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49254","id":"CVE-2022-49254","title":"media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()\n\nIn cal_ctx_v4l2_init_formats(), devm_kzalloc() is assigned to\nctx->active_fmt and there is a dereference of it after that, which could\nlead to NULL pointer dereference on failure of devm_kzalloc().\n\nFix this bug by adding a NULL check of ctx->activ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()\n\nIn cal_ctx_v4l2_init_formats(), devm_kzalloc() is assigned to\nctx->active_fmt and there is a dereference of it after that, which could\nlead to NULL pointer dereference on failure of devm_kzalloc().\n\nFix this bug by adding a NULL check of ctx->active_fmt.\n\nThis bug was found by a static analyzer.\n\nBuilds with 'make allyesconfig' show no new warnings, and our static\nanalyzer no longer warns about this code.","published":"2025-02-26T01:56:09.619Z","updated":"2026-10-28T02:31:01.706755968Z","reserved":"2025-02-26T01:49:39.295Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"aa613ac270292e102503e9767882e39200efe608","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"91e2805579ab0783eed53acc2bf9fb553e939004","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"1381f1a629a090c251965edb56f849ad648414a4","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"abd77889851d2ead0d0c9c4d29f1808801477b00","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.15.33","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.19","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17.2","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49254.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49254","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00268,"epssPercentile":0.19263,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49254","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49254","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49254","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49254","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}