Read the docs
TI-2025-43734 Aliases GHSA-655h-hg88-5qmf

Rust XCB `xcb::Connection::connect_to_fd*` functions violate I/O safety

Priority LOW 38CWE-666Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed xcb (crates.io): 1.6.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—xcb (crates.io)before 1.6.01.6.0Patch availableGHSA-655h-hg88-5qmf
  • xcb (crates.io) Vendor— Affected before 1.6.0 Fixed in 1.6.0 Patch available GHSA-655h-hg88-5qmf

Remediation

  • Fix · GHSA-655h-hg88-5qmf xcb (crates.io) Fixed in 1.6.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-655h-hg88-5qmf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences