{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50185",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-06-18T10:57:27.427Z",
        "datePublished": "2025-06-18T11:03:32.843Z",
        "dateUpdated": "2026-05-11T19:14:26.281Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:14:26.281Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()\n\nThe last case label can write two buffers 'mc_reg_address[j]' and\n'mc_data[j]' with 'j' offset equal to SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE\nsince there are no checks for this value in both case labels after the\nlast 'j++'.\n\nInstead of changing '>' to '>=' there, add the bounds check at the start\nof the second 'case' (the first one already has it).\n\nAlso, remove redundant last checks for 'j' index bigger than array size.\nThe expression is always false. Moreover, before or after the patch\n'table->last' can be equal to SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE and it\nseems it can be a valid value.\n\nDetected using the static analysis tool - Svace."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/radeon/ni_dpm.c"
                    ],
                    "versions": [
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "ea73869df6ef386fc0feeb28ff66742ca835b18f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "1f341053852be76f82610ce47a505d930512f05c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "db1a9add3f90ff1c641974d5bb910c16b87af4ef",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "8508d6d23a247c29792ce2fc0df3f3404d6a6a80",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "deb603c5928e546609c0d5798e231d0205748943",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "782e413e38dffd37cc85b08b1ccb982adb4a93ce",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "9faff03617afeced1c4e5daa89e79b3906374342",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "69e0b57a91adca2e3eb56ed4db39ab90f3ae1043",
                            "lessThan": "136f614931a2bb73616b292cf542da3a18daefd5",
                            "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/gpu/drm/radeon/ni_dpm.c"
                    ],
                    "versions": [
                        {
                            "version": "3.11",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.11",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.291",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.256",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.211",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.137",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.61",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.18",
                            "lessThanOrEqual": "5.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.2",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0",
                            "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.11",
                                    "versionEndExcluding": "4.14.291"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "4.19.256"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "5.4.211"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "5.10.137"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "5.15.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "5.18.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "5.19.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.11",
                                    "versionEndExcluding": "6.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/ea73869df6ef386fc0feeb28ff66742ca835b18f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1f341053852be76f82610ce47a505d930512f05c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/db1a9add3f90ff1c641974d5bb910c16b87af4ef"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8508d6d23a247c29792ce2fc0df3f3404d6a6a80"
                },
                {
                    "url": "https://git.kernel.org/stable/c/deb603c5928e546609c0d5798e231d0205748943"
                },
                {
                    "url": "https://git.kernel.org/stable/c/782e413e38dffd37cc85b08b1ccb982adb4a93ce"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9faff03617afeced1c4e5daa89e79b3906374342"
                },
                {
                    "url": "https://git.kernel.org/stable/c/136f614931a2bb73616b292cf542da3a18daefd5"
                }
            ],
            "title": "drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}