{"id":"CVE-2022-50040","summary":"net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()\n\nIf an error occurs in dsa_devlink_region_create(), then 'priv-\u003eregions'\narray will be accessed by negative index '-1'.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","modified":"2026-04-03T13:14:26.705480900Z","published":"2025-06-18T11:01:41.420Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50040.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7983e1e44cb322eba6af84160b6d18df80603fb8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79f86b862416126a2e826cb74224180d6625a32f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e84c6321f3578c38cb3c24258db91a92672b17a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd8e899cdb5ecaf8e8ee73854a99e10807eef1de"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50040.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50040"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.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"}}],"schema_version":"1.7.5"}