# CVE-2025-51823: libcsp 2.0 is vulnerable to Buffer Overflow in the cspethinit() function due to improper handling of the ifname parameter.

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-08-11T00:00:00.000Z
- Modified: 2026-06-17T09:35:50.667Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libcsp libcsp: 2.0

## References

- <https://github.com/libcsp/libcsp/issues/850> (third-party-advisory)
- <https://github.com/libcsp/libcsp/pull/852> (patch)

## Sources

- CVE List: [CVE-2025-51823](https://www.cve.org/CVERecord?id=CVE-2025-51823), CVE Terms of Use, modified 2025-08-11
- NVD: [CVE-2025-51823](https://nvd.nist.gov/vuln/detail/CVE-2025-51823), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-51823 · Whole record: https://cve.day/CVE-2025-51823.json · Rebuilt by cve.day 2026-11-25T22:59:02.278Z
