Bug 2360200 (CVE-2025-22107) - CVE-2025-22107 kernel: net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()
Summary: CVE-2025-22107 kernel: net: dsa: sja1105: fix kasan out-of-bounds warning in ...
Keywords:
Status: NEW
Alias: CVE-2025-22107
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:02 UTC by OSIDB Bzimport
Modified: 2025-04-18 03:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:02:14 UTC
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.

Comment 1 Avinash Hanwate 2025-04-17 15:40:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041623-CVE-2025-22107-1266@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.