{"id":"GHSA-655h-hg88-5qmf","aliases":["RUSTSEC-2025-0051"],"url":"https://o3.security/vulnerability/GHSA-655h-hg88-5qmf","summary":"Rust XCB `xcb::Connection::connect_to_fd*` functions violate I/O safety","details":"The API of `xcb::Connection` has constructors which allow an arbitrary `RawFd` to be used as a socket connection. On either failure of these constructors or on the drop of `Connection`, it closes the associated file descriptor. Thus, a program which uses an `OwnedFd` (such as a `UnixStream`) as the file descriptor can close the file descriptor and continue to attempt using it or close an already-closed file descriptor, violating I/O safety.\n\nStarting in version 1.6.0, `xcb` provides `Connection::connect_with_fd` and `Connection::connect_with_fd_and_extensions` as safe alternatives and deprecates the problematic functions.","published":"2025-08-22T17:34:45Z","modified":"2025-10-28T06:29:23.247912Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"xcb","fixedVersion":"1.6.0"}],"fix":{"url":"https://github.com/rust-x-bindings/rust-xcb/pull/283","label":"rust-x-bindings/rust-xcb#283"},"references":[{"type":"WEB","url":"https://github.com/rust-x-bindings/rust-xcb/issues/167"},{"type":"WEB","url":"https://github.com/rust-x-bindings/rust-xcb/issues/282"},{"type":"WEB","url":"https://github.com/rust-x-bindings/rust-xcb/pull/283"},{"type":"WEB","url":"https://github.com/rustsec/advisory-db/pull/2355"},{"type":"WEB","url":"https://github.com/rust-x-bindings/rust-xcb/commit/da830976870c1174e3b33eb0643177be3991c002"},{"type":"PACKAGE","url":"https://github.com/rust-x-bindings/rust-xcb"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0051.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-10-28T06:29:23.247912Z"}}