{"id":"CVE-2025-51823","details":"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-\u003ename) without validating the input length.","modified":"2026-08-12T03:51:09.134370572Z","published":"2025-08-11T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51823.json","cna_assigner":"mitre"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51823.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51823"},{"type":"REPORT","url":"https://github.com/libcsp/libcsp/issues/850"},{"type":"FIX","url":"https://github.com/libcsp/libcsp/pull/852"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libcsp/libcsp","events":[{"introduced":"a29d7cf5570f6da638d012c78676d51df97792c4"},{"last_affected":"a29d7cf5570f6da638d012c78676d51df97792c4"}],"database_specific":{"extracted_events":[{"introduced":"2.0"},{"last_affected":"2.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:libcsp:libcsp:2.0:*:*:*:*:*:*:*"}}],"versions":["2.0","v2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51823.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N"}]}