7.8

CVE-2022-50185: drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()

Analyzed
AliasesUBUNTU-CVE-2022-50185DEBIAN-CVE-2022-50185
Published 18-06-2025Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.29%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 9 · Related 7

Timeline

  1. 18-06-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

11 links
Show all 11 references