PT-2025-35525 · Crates.Io · Xcb
Published
2025-08-22
·
Updated
2025-08-22
CVSS v4.0
1.7
Low
| Vector | AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U |
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.Starting 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.Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Xcb