{"id":"CVE-2025-22107","summary":"net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()\n\nThere are actually 2 problems:\n- deleting the last element doesn't require the memmove of elements\n  [i + 1, end) over it. Actually, element i+1 is out of bounds.\n- The memmove itself should move size - i - 1 elements, because the last\n  element is out of bounds.\n\nThe out-of-bounds element still remains out of bounds after being\naccessed, so the problem is only that we touch it, not that it becomes\nin active use. But I suppose it can lead to issues if the out-of-bounds\nelement is part of an unmapped page.","modified":"2026-04-02T12:45:21.850161Z","published":"2025-04-16T14:12:55.109Z","related":["CGA-pccx-j3mp-5r67","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:01972-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22107.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/031e00249e9e6bee72ba66701c8f83b45fc4b8a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4584486cfcca24b7b586da3377eb3cffd48669ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/59b97641de03c081f26b3a8876628c765b5faa25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f2b28b79d2d1946ee36ad8b3dc0066f73c90481"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b52153da1f42e2f4d6259257a7ba027331671a93"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22107.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22107"},{"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":"6666cebc5e306f49a25bd20aa8c1cb8ef8950df5"},{"fixed":"b52153da1f42e2f4d6259257a7ba027331671a93"},{"fixed":"4584486cfcca24b7b586da3377eb3cffd48669ec"},{"fixed":"031e00249e9e6bee72ba66701c8f83b45fc4b8a2"},{"fixed":"59b97641de03c081f26b3a8876628c765b5faa25"},{"fixed":"5f2b28b79d2d1946ee36ad8b3dc0066f73c90481"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22107.json"}}],"schema_version":"1.7.5"}