CVE-2023-54065 Details
Description
In the Linux kernel, the following vulnerability has been resolved: net: dsa: realtek: fix out-of-bounds access The probe function sets priv->chip_data to (void *)priv + sizeof(*priv) with the expectation that priv has enough trailing space. However, only realtek-smi actually allocated this chip_data space. Do likewise in realtek-mdio to fix out-of-bounds accesses. These accesses likely went unnoticed so far, because of an (unused) buf[4096] member in struct realtek_priv, which caused kmalloc to round up the allocated buffer to a big enough size, so nothing of value was overwritten. With a different allocator (like in the barebox bootloader port of the driver) or with KASAN, the memory corruption becomes quickly apparent.
A vulnerability allowing out-of-bounds memory access has been identified in the Linux kernel's Realtek DSA (Distributed Switch Architecture) driver, specifically within the 'realtek-mdio' interface. This issue arises because the probe function incorrectly assumes that the 'priv' structure has sufficient trailing space to accommodate additional chip data. While the 'realtek-smi' interface properly allocates this space, 'realtek-mdio' does not, leading to potential memory corruption. This flaw has likely gone unnoticed due to an unused buffer in the 'realtek_priv' structure, which inadvertently masked the issue. However, under different memory allocation conditions or with the Kernel Address Sanitizer (KASAN) tool, the corruption becomes evident.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that resolves this issue is 'b93eb564869321d0dffaf23fcc5c88112ed62466', which is included in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/b93eb564869321d0dffaf23fcc5c88112ed62466 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/cc0f9bb99735d2b68fac68f37b585d615728ce5b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/fe668aa499b4b95425044ba11af9609db6ecf466 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 24, 2025 | New CVE Received | kernel.org |
Volerion