Skip to main content
Network Thinking Solutions Logo

CVE-2022-50185

Linux kernel: drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()

All CVEs
CVE-2022-50185Published 6/18/2025

Linux kernel: drm/radeon: fix potential buffer overflow in ni_set_mc_special_registers()

Vendor advisory
CVSS7.8High

Overview

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.

Published
6/18/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 3.11, < 4.14.291

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.256

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.211

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.137

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.61

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 5.18.18

Verify advisory

Source
linux kernel
linux
≥ 5.19, < 5.19.2

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < ea73869df6ef386fc0feeb28ff66742ca835b18f

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 1f341053852be76f82610ce47a505d930512f05c

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < db1a9add3f90ff1c641974d5bb910c16b87af4ef

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 8508d6d23a247c29792ce2fc0df3f3404d6a6a80

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < deb603c5928e546609c0d5798e231d0205748943

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 782e413e38dffd37cc85b08b1ccb982adb4a93ce

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 9faff03617afeced1c4e5daa89e79b3906374342

Verify advisory

Source
Linux
Linux
≥ 69e0b57a91adca2e3eb56ed4db39ab90f3ae1043, < 136f614931a2bb73616b292cf542da3a18daefd5

Verify advisory

Source
Linux
Linux
3.11

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.