{"id":"UBUNTU-CVE-2026-41898","details":"rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, the FFI trampolines behind SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb forwarded the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] that was handed to the closure. This can lead to buffer overflows and other unintended consequences. This vulnerability is fixed in 0.10.78.","modified":"2026-07-17T14:31:07.434159082Z","published":"2026-04-24T18:16:00Z","upstream":["CVE-2026-41898"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41898"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41898"},{"type":"REPORT","url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3"},{"type":"REPORT","url":"https://github.com/rust-openssl/rust-openssl/pull/2607"},{"type":"REPORT","url":"https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c"}],"affected":[{"package":{"name":"rust-openssl","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.23-1","0.10.23-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-openssl-dev","binary_version":"0.10.23-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41898.json"}},{"package":{"name":"rust-openssl","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.29-1","0.10.36-1","0.10.36-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-openssl-dev","binary_version":"0.10.36-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41898.json"}},{"package":{"name":"rust-openssl","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.45-1","0.10.57-1","0.10.57-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.57-1ubuntu0.1~esm1","binary_name":"librust-openssl-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41898.json"}},{"package":{"name":"rust-openssl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-openssl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.70-1","0.10.72-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-openssl-dev","binary_version":"0.10.72-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41898.json"}},{"package":{"name":"rust-openssl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-openssl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.72-1","0.10.73-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.73-1","binary_name":"librust-openssl-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41898.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}