CVE-2025-51823 Details
Description
libcsp 2.0 is vulnerable to Buffer Overflow in the csp_eth_init() function due to improper handling of the ifname parameter. The function uses strcpy to copy the interface name into a structure member (ctx->name) without validating the input length.
A heap-based buffer overflow vulnerability has been identified in libcsp version 2.0 within the csp_eth_init() function. The issue arises from improper handling of the ifname parameter, where strcpy is used to copy the interface name into a structure member without validating the input length. This oversight allows for writing beyond the bounds of the buffer, leading to a heap overflow.
Users can update to the latest version of libcsp, where this vulnerability has been addressed by replacing the unsafe strcpy call with strncpy, limiting the copy to ensure memory safety.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 11, 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://github.com/libcsp/libcsp/issues/850 | [email protected] | Third Party Advisory |
| https://github.com/libcsp/libcsp/pull/852 | [email protected] | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| libcsp libcsp | 2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | Initial Analysis | [email protected] |
| Aug 11, 2025 | CVE Modified | CISA-ADP |
| Aug 11, 2025 | New CVE Received | [email protected] |