{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50509",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-10-04T15:39:19.466Z",
        "datePublished": "2025-10-07T15:19:06.661Z",
        "dateUpdated": "2026-05-11T19:20:48.461Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:20:48.461Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: coda: Add check for kmalloc\n\nAs the kmalloc may return NULL pointer,\nit should be better to check the return value\nin order to avoid NULL poineter dereference,\nsame as the others."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/media/platform/chips-media/coda-bit.c"
                    ],
                    "versions": [
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "d308c4a035b636756786af91e5f39f9d92d7d42a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "11e32126b3e56c3156fb610d793732acd2bdac4f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "ba9cc9e2035f7a45f5222543265daf7cd51f2530",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "7a2c66429b04e85fee44d6d9f455327bf23cf49c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "d9b37ea8869e4e6da90c07a310d819a78cbd23d2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "441c05485cf1a29eef05c1fd8281716815283315",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "aa17a252dbde432095e390e2092205d4debb12e1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "0209e70ad496c1fcd85c2ec70e6736fd09f95d14",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cb1d3a336371e35c3920cc50a701c5403c255644",
                            "lessThan": "6e5e5defdb8b0186312c2f855ace175aee6daf9b",
                            "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/chips-media/coda-bit.c"
                    ],
                    "versions": [
                        {
                            "version": "3.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.19",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.337",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.303",
                            "lessThanOrEqual": "4.14.*",
                            "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.86",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.16",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.2",
                            "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.19",
                                    "versionEndExcluding": "4.9.337"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "4.14.303"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "4.19.270"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "5.4.229"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "5.10.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "5.15.86"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "6.0.16"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "6.1.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/d308c4a035b636756786af91e5f39f9d92d7d42a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/11e32126b3e56c3156fb610d793732acd2bdac4f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ba9cc9e2035f7a45f5222543265daf7cd51f2530"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7a2c66429b04e85fee44d6d9f455327bf23cf49c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d9b37ea8869e4e6da90c07a310d819a78cbd23d2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/441c05485cf1a29eef05c1fd8281716815283315"
                },
                {
                    "url": "https://git.kernel.org/stable/c/aa17a252dbde432095e390e2092205d4debb12e1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0209e70ad496c1fcd85c2ec70e6736fd09f95d14"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6e5e5defdb8b0186312c2f855ace175aee6daf9b"
                }
            ],
            "title": "media: coda: Add check for kmalloc",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}