CVE-2022-50185: drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()
Vulnerability summary
CVE-2022-50185 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in linux. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 21.5% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 7Timeline
- 18-06-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers() The last case label can write two buffers 'mc_reg_address[j]' and 'mc_data[j]' with 'j' offset equal to SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE since there are no checks for this value in both case labels after the last 'j++'. Instead of changing '>' to '>=' there, add the bounds check at the start of the second 'case' (the first one already has it). Also, remove redundant last checks for 'j' index bigger than array size. The expression is always false. Moreover, before or after the patch 'table->last' can be equal to SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE and it seems it can be a valid value. Detected using the static analysis tool - Svace.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu111 products
- linuxAll versions (No fix recorded) | < 4.15.0-197.208 | < 5.4.0-132.148 | < 5.15.0-53.59
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 4.15.0-1143.155 | < 5.4.0-1089.97 | < 5.15.0-1023.27
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < ea73869df6ef386fc0feeb28ff66742ca835b18f | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 1f341053852be76f82610ce47a505d930512f05c | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < db1a9add3f90ff1c641974d5bb910c16b87af4ef | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 8508d6d23a247c29792ce2fc0df3f3404d6a6a80 | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < deb603c5928e546609c0d5798e231d0205748943 | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 782e413e38dffd37cc85b08b1ccb982adb4a93ce | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 9faff03617afeced1c4e5daa89e79b3906374342 | ≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 136f614931a2bb73616b292cf542da3a18daefd5 | 3.11
- linux_kernel≥ 3.11, < 4.14.291 | ≥ 4.15, < 4.19.256 | ≥ 4.20, < 5.4.211 | ≥ 5.5, < 5.10.137 | ≥ 5.11, < 5.15.61 | ≥ 5.16, < 5.18.18 | ≥ 5.19, < 5.19.2
Debian1 product
- linux< 6.0.2-1
3 vendors · 114 products