# CVE-2025-22107: net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105\_table\_delete\_entry()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-04-16T14:12:55.109Z
- **Modified:** 2026-11-10T13:17:42.700Z

## Who should check

- Anyone running Linux \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f85b9bfb08ba2b642d1810c6c4ae1e7b46f1776a; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f117d0467215d7f1d445ae16d2c799637e63dc6c; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< b52153da1f42e2f4d6259257a7ba027331671a93; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 4584486cfcca24b7b586da3377eb3cffd48669ec; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 031e00249e9e6bee72ba66701c8f83b45fc4b8a2; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 59b97641de03c081f26b3a8876628c765b5faa25; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481
- Anyone running Linux 5.2

## 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.

## Affected and fixed versions

- Linux: \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f85b9bfb08ba2b642d1810c6c4ae1e7b46f1776a; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f117d0467215d7f1d445ae16d2c799637e63dc6c; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< b52153da1f42e2f4d6259257a7ba027331671a93; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 4584486cfcca24b7b586da3377eb3cffd48669ec; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 031e00249e9e6bee72ba66701c8f83b45fc4b8a2; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 59b97641de03c081f26b3a8876628c765b5faa25; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22107. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22107.md
Affected: Linux >= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, < f85b9bfb08ba2b642d1810c6c4ae1e7b46f1776a; >= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, < f117d0467215d7f1d445ae16d2c799637e63dc6c; >= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, < b52153da1f42e2f4d6259257a7ba027331671a93; >= 6666cebc5e306f49a25bd20…
Fixed in: Linux 4584486cfcca24b7b586da3377eb3cffd48669ec, Linux 031e00249e9e6bee72ba66701c8f83b45fc4b8a2, Linux 59b97641de03c081f26b3a8876628c765b5faa25, Linux 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22107 being exploited?

There is no confirmed exploitation: CVE-2025-22107 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22107?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-22107?

Linux \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f85b9bfb08ba2b642d1810c6c4ae1e7b46f1776a; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< f117d0467215d7f1d445ae16d2c799637e63dc6c; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< b52153da1f42e2f4d6259257a7ba027331671a93; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 4584486cfcca24b7b586da3377eb3cffd48669ec; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 031e00249e9e6bee72ba66701c8f83b45fc4b8a2; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 59b97641de03c081f26b3a8876628c765b5faa25; \>= 6666cebc5e306f49a25bd20aa8c1cb8ef8950df5, \< 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481; Linux 5.2.

### Is there a fix for CVE-2025-22107?

Yes. Fixed in Linux 4584486cfcca24b7b586da3377eb3cffd48669ec, Linux 031e00249e9e6bee72ba66701c8f83b45fc4b8a2, Linux 59b97641de03c081f26b3a8876628c765b5faa25, Linux 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481. Upgrade Linux to 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481 or later.

### How do I check if I'm affected by CVE-2025-22107?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/59b97641de03c081f26b3a8876628c765b5faa25>
- patch: <https://git.kernel.org/stable/c/5f2b28b79d2d1946ee36ad8b3dc0066f73c90481>
- other: <https://git.kernel.org/stable/c/f85b9bfb08ba2b642d1810c6c4ae1e7b46f1776a>
- other: <https://git.kernel.org/stable/c/f117d0467215d7f1d445ae16d2c799637e63dc6c>
- other: <https://git.kernel.org/stable/c/b52153da1f42e2f4d6259257a7ba027331671a93>
- other: <https://git.kernel.org/stable/c/4584486cfcca24b7b586da3377eb3cffd48669ec>
- other: <https://git.kernel.org/stable/c/031e00249e9e6bee72ba66701c8f83b45fc4b8a2>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22107>

HTML: <https://flawdb.com/CVE-2025-22107> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22107>
