Buffer overflow in Libcsp
CVE-2025-51823
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N.
EPSS exploit prediction
EPSS 0.003, 23.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libcsp — versions 2.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, Reodus/SecurityReports). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/libcsp/libcsp/issues/850 (Third Party Advisory)
- github.com/libcsp/libcsp/pull/852 (Patch)