GHSA-655h-hg88-5qmf

Suggest an improvement
Source
https://github.com/advisories/GHSA-655h-hg88-5qmf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-655h-hg88-5qmf/GHSA-655h-hg88-5qmf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-655h-hg88-5qmf
Published
2025-08-22T17:34:45Z
Modified
2025-08-22T17:34:45Z
Severity
  • 1.7 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
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.

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.

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-666",
        "CWE-672"
    ],
    "github_reviewed_at": "2025-08-22T17:34:45Z",
    "severity": "LOW"
}
References

Affected packages

crates.io / xcb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.0