CVE-2023-54065
Last modified
CVE-2023-54065 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= aac94001067da183455d6d37959892744fa01d9d, < cc0f9bb99735d2b68fac68f37b585d615728ce5b; >= aac94001067da183455d6d37959892744fa01d9d, < fe668aa499b4b95425044ba11af9609db6ecf466; >= aac94001067da183455d6d37959892744fa01d9d, < b93eb564869321d0dffaf23fcc5c88112ed62466 |
| Linux | Linux | 5.18 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2023-54065?
How severe is CVE-2023-54065?
How do I fix CVE-2023-54065?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-5406Server communication with a controller can lead to remote co…5.9
- CVE-2023-54060In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2023-54061Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2023-54062In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54063In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54064In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54066In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54067In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54068In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-54069In the Linux kernel, the following vulnerability has been re…
- CVE-2023-5407Controller denial of service due to improper handling of a s…5.9
- CVE-2023-54070In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2023-54065?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
