{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50786",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-24T13:02:21.548Z",
        "datePublished": "2025-12-30T12:03:22.909Z",
        "dateUpdated": "2026-05-11T19:25:31.010Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:25:31.010Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: s5p-mfc: Clear workbit to handle error condition\n\nDuring error on CLOSE_INSTANCE command, ctx_work_bits was not getting\ncleared. During consequent mfc execution NULL pointer dereferencing of\nthis context led to kernel panic. This patch fixes this issue by making\nsure to clear ctx_work_bits always."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c"
                    ],
                    "versions": [
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "12242bd13ce68acd571b2cce6ab302e154e8a4ee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "640075400c7c577b0f5369b935e22a588773fafa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "8ff64edf9d16e8c277dcc8189794763624e6b4b8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "ff27800c0a6d81571671b33f696109804d015409",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "09c1fbbe532758e4046c20829f4c0c50b99332dc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "bd1b72f0c39a0d791a087b4e643701a48328ba8e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "818cd91ab8c6e42c2658c8e61f8462637c6f586b",
                            "lessThan": "d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c"
                    ],
                    "versions": [
                        {
                            "version": "3.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.270",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.229",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.163",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.87",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.18",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.4",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "4.19.270"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.4.229"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.10.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.15.87"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.0.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.1.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/12242bd13ce68acd571b2cce6ab302e154e8a4ee"
                },
                {
                    "url": "https://git.kernel.org/stable/c/640075400c7c577b0f5369b935e22a588773fafa"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8ff64edf9d16e8c277dcc8189794763624e6b4b8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ff27800c0a6d81571671b33f696109804d015409"
                },
                {
                    "url": "https://git.kernel.org/stable/c/09c1fbbe532758e4046c20829f4c0c50b99332dc"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bd1b72f0c39a0d791a087b4e643701a48328ba8e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d3f3c2fe54e30b0636496d842ffbb5ad3a547f9b"
                }
            ],
            "title": "media: s5p-mfc: Clear workbit to handle error condition",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}