Description
An issue was discovered in the xcb crate through 2020-12-10 for Rust. base::Error does not have soundness. Because of the public ptr field, a use-after-free or double-free can occur.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-xcb | 1.1.1-1 | — |
| Debian 13 | rust-xcb | 1.1.1-1 | — |
| Debian 12 | rust-xcb | 1.1.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | rust-xcb | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | xcb | < 1.0.0 | 1.0.0 | GHSA-c8hq-x4mm-p6q6 |
| crates.io | xcb | >= 0.0.0-0, < 1.0.0 | 1.0.0 | RUSTSEC-2020-0097 |