CVE-2022-50040 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions() If an error occurs in dsa_devlink_region_create(), then 'priv->regions' array will be accessed by negative index '-1'. Found by Linux Verification Center (linuxtesting.org) with SVACE.
A buffer overflow vulnerability has been identified in the Linux kernel's SJA1105 switch driver. The issue arises in the 'sja1105_setup_devlink_regions()' function, where the 'priv->regions' array is accessed using a negative index of '-1' if an error occurs in 'dsa_devlink_region_create()'. This vulnerability was discovered by the Linux Verification Center using SVACE.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/7983e1e44cb322eba6af84160b6d18df80603fb8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/79f86b862416126a2e826cb74224180d6625a32f | kernel.org | Patch |
| https://git.kernel.org/stable/c/e84c6321f3578c38cb3c24258db91a92672b17a8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fd8e899cdb5ecaf8e8ee73854a99e10807eef1de | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.10, < 5.10.138 >= 5.11, < 5.15.63 >= 5.16, < 5.19.4 6.0 rc1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 13, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |