CVE-2025-22107 net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()
An out-of-bounds memory access in the sja1105 DSA driver can cause a kernel crash, requiring a patch to prevent denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22107?
CVE-2025-22107 is a high-severity memory corruption vulnerability in Linux kernel, published on 16 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()
There are actually 2 problems: - deleting the last element doesn't require the memmove of elements [i + 1, end) over it. Actually, element i+1 is out of bounds. - The memmove itself should move size - i - 1 elements, because the last element is out of bounds.
The out-of-bounds element still remains out of bounds after being accessed, so the problem is only that we touch it, not that it becomes in active use. But I suppose it can lead to issues if the out-of-bounds element is part of an unmapped page.
Weakness: CWE-125
Which versions are affected by CVE-2025-22107?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22107?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-22107 being exploited?
There is no known exploitation of CVE-2025-22107 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-62507, AZL-69596, BELL-CVE-2025-22107, DEBIAN-CVE-2025-22107, GHSA-v43g-xqqr-j4r8, ROOT-OS-DEBIAN-11-CVE-2025-22107 and 5 more.