CVE-2022-50040
net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
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.
INFO
Published Date :
June 18, 2025, 11:15 a.m.
Last Modified :
Nov. 13, 2025, 6:58 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the Linux kernel to a version that includes the fix.
- Verify the patch is applied correctly.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-50040.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-50040 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-50040
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-50040 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-50040 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Nov. 13, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-787 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.63 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 5.19.4 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10 up to (excluding) 5.10.138 Added Reference Type kernel.org: https://git.kernel.org/stable/c/7983e1e44cb322eba6af84160b6d18df80603fb8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/79f86b862416126a2e826cb74224180d6625a32f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e84c6321f3578c38cb3c24258db91a92672b17a8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/fd8e899cdb5ecaf8e8ee73854a99e10807eef1de Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 18, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/7983e1e44cb322eba6af84160b6d18df80603fb8 Added Reference https://git.kernel.org/stable/c/79f86b862416126a2e826cb74224180d6625a32f Added Reference https://git.kernel.org/stable/c/e84c6321f3578c38cb3c24258db91a92672b17a8 Added Reference https://git.kernel.org/stable/c/fd8e899cdb5ecaf8e8ee73854a99e10807eef1de