{"id":"UBUNTU-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-04-22T16:04:23.463090Z","published":"2025-08-11T19:15:00Z","upstream":["CVE-2025-51823"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-51823"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-51823"},{"type":"REPORT","url":"https://github.com/libcsp/libcsp/issues/850"},{"type":"REPORT","url":"https://github.com/libcsp/libcsp/pull/852"}],"affected":[{"package":{"name":"libcsp","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libcsp@1.4+fdd49b7+dfsg-3build1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4+fdd49b7+dfsg-3","1.4+fdd49b7+dfsg-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcsp-source","binary_version":"1.4+fdd49b7+dfsg-3build1"},{"binary_name":"libcsp1","binary_version":"1.4+fdd49b7+dfsg-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51823.json"}},{"package":{"name":"libcsp","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libcsp@1.4+fdd49b7+dfsg-3build1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4+fdd49b7+dfsg-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcsp-source","binary_version":"1.4+fdd49b7+dfsg-3build1"},{"binary_name":"libcsp1","binary_version":"1.4+fdd49b7+dfsg-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-51823.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}