UnratedFix available
net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.138, 5.15.63, 5.19.4
- CVEs
- CVE-2022-50040
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 13:42 UTC · Revision 1
Source evidence
net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
core-osv · Original sourcePublished 18 Jun 2025, 11:01 UTC
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.
osv:CVE-2022-50040
Kernel
Fixed versions: 5.10.138, 5.15.63, 5.19.4
Complete source record
{
"id": "f155b4530be4e78aac6c09e8fe0830cb7312c3c34ccaea2e178f5cb131e5ac28",
"url": "https://osv.dev/vulnerability/CVE-2022-50040",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()",
"summary": "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.",
"evidence": "osv:CVE-2022-50040",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.138",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.63",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50040",
"aliases": [
"CVE-2022-50040"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "bf425b82059e0b0752c0026353c1902112200837"
},
{
"fixed": "7983e1e44cb322eba6af84160b6d18df80603fb8"
},
{
"fixed": "e84c6321f3578c38cb3c24258db91a92672b17a8"
},
{
"fixed": "79f86b862416126a2e826cb74224180d6625a32f"
},
{
"fixed": "fd8e899cdb5ecaf8e8ee73854a99e10807eef1de"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50040.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.10.0"
},
{
"fixed": "5.10.138"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.63"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50040.json"
}
}
],
"modified": "2026-10-28T02:30:29.515357969Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/7983e1e44cb322eba6af84160b6d18df80603fb8",
"https://git.kernel.org/stable/c/79f86b862416126a2e826cb74224180d6625a32f",
"https://git.kernel.org/stable/c/e84c6321f3578c38cb3c24258db91a92672b17a8",
"https://git.kernel.org/stable/c/fd8e899cdb5ecaf8e8ee73854a99e10807eef1de",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50040.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50040",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50040.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50040",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 496032,
"published_at": "2025-06-18T11:01:41.42+00:00"
}