CVE-2022-50185
HighIn 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 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-787CVE-2022-50185 is a Out-of-bounds Write vulnerability
What is Out-of-bounds Write?
The product writes data past the end or before the beginning of the intended buffer. Learn more on MITRE CWE
Affected versions
Linux kernel versions
3.11
and later are affected. Fixed in
4.14.291,
4.19.256,
5.4.211,
5.10.137,
5.15.61,
5.18.18,
5.19.2,
6.0
and their respective stable series.
References
The following references provide additional information about CVE-2022-50185 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/136f614931a2bb73616b292cf542da3a18daefd5
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1f341053852be76f82610ce47a505d930512f05c
-
PatchKernel patch commithttps://git.kernel.org/stable/c/782e413e38dffd37cc85b08b1ccb982adb4a93ce
Frequently asked questions
-
What is CVE-2022-50185?
CVE-2022-50185 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as an Out-of-bounds Write flaw (CWE-787) . It affects Linux kernel versions from 3.11 onward and has been patched in 4.14.291, 4.19.256, 5.4.211 and others. CVE-2022-50185 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-50185?
CVE-2022-50185 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2022-50185?
Yes — CVE-2022-50185 has been patched. Fixed versions include 4.14.291, 4.19.256, 5.4.211 and others. If you are running Linux kernel 3.11 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50185 actively exploited?
No — CVE-2022-50185 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Out-of-bounds Write (CWE-787)?
The product writes data past the end or before the beginning of the intended buffer. View CWE-787 on MITRE CWE →