CVE-2020-26235 Segmentation fault in Rust time crate
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
In Rust time crate from version 0.2.7 and before version 0.2.23, unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires the user to set any environment variable in a different thread than the affected functions. The affected functions are time::UtcOffset::local_offset_at, time::UtcOffset::try_local_offset_at, time::UtcOffset::current_local_offset, time::UtcOffset::try_current_local_offset, time::OffsetDateTime::now_local and time::OffsetDateTime::try_now_local. Non-Unix targets are unaffected. This includes Windows and wasm. The issue was introduced in version 0.2.7 and fixed in version 0.2.23.
Upgrade path
17 packages: 10 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-time(Ubuntu 20.04) | = 0.1.42-1; All versions | No fix listed | No fix yet |
| ubuntu/rust-time(Ubuntu 22.04) | = 0.1.42-1; = 0.3.5-2; = 0.3.5-3; All versions | No fix listed | No fix yet |
| ubuntu/rust-time(Ubuntu 24.04) | = 0.3.23-2; = 0.3.31-1; = 0.3.31-1ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/rust-time(Ubuntu 25.10) | = 0.3.37-1; = 0.3.39-1; All versions | No fix listed | No fix yet |
| ubuntu/rust-time(Ubuntu 26.04) | = 0.3.39-1; = 0.3.44-1; = 0.3.47-1; All versions | No fix listed | No fix yet |
| ubuntu/rust-time(Ubuntu 26.10) | = 0.3.47-1; = 0.3.54-1; All versions | No fix listed | No fix yet |
| alpine/newsboat(Alpine v3.17) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.18) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.19) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.20) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.21) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.22) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.23) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| alpine/newsboat(Alpine v3.24) | < 2.30.1-r0 | 2.30.1-r0 | Fixed |
| crates.io time(crates.io) | >= 0.0.0-0, < 0.2.0; >= 0.1.0, < 0.2.0; >= 0.1.0, < 0.2.23; >= 0.2.1-0, < 0.2.1 +7 more | 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.23 | Fixed |
| time project time | >= 0.2.7, < 0.2.23 | 0.2.23 | Fixed |
| time-rs time | = >= 0.2.7, <0.2.23 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io time(crates.io) | >= 0.1.0, < 0.2.23 | 0.2.23 |
| crates.io time(crates.io) | >= 0.2.7, < 0.2.23 | 0.2.23 |
| crates.io time(crates.io) | >= 0.0.0-0, < 0.2.0 | 0.2.0 |
| crates.io time(crates.io) | >= 0.2.1-0, < 0.2.1 | 0.2.1 |
| crates.io time(crates.io) | >= 0.2.2-0, < 0.2.2 | 0.2.2 |
| crates.io time(crates.io) | >= 0.2.3-0, < 0.2.3 | 0.2.3 |
| crates.io time(crates.io) | >= 0.2.4-0, < 0.2.4 | 0.2.4 |
| crates.io time(crates.io) | >= 0.2.5-0, < 0.2.5 | 0.2.5 |
| crates.io time(crates.io) | >= 0.2.6-0, < 0.2.6 | 0.2.6 |
| crates.io time(crates.io) | >= 0.2.7-0, < 0.2.23 | 0.2.23 |
| crates.io time(crates.io) | >= 0.1.0, < 0.2.0 | 0.2.0 |
| time project time | >= 0.2.7, < 0.2.23 | 0.2.23 |
| ubuntu/rust-time(Ubuntu:24.04) | All versions | No fix listed |
| alpine/newsboat(Alpine:v3.17) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.18) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.19) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.20) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.21) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.22) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.23) | < 2.30.1-r0 | 2.30.1-r0 |
| alpine/newsboat(Alpine:v3.24) | < 2.30.1-r0 | 2.30.1-r0 |
| time-rs time | = >= 0.2.7, <0.2.23 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-time(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rust-time(Ubuntu:22.04) | All versions | No fix listed |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/rust-time(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/rust-time(Ubuntu:20.04) | = 0.1.42-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:22.04) | = 0.1.42-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:22.04) | = 0.3.5-2 | No fix listed |
| ubuntu/rust-time(Ubuntu:22.04) | = 0.3.5-3 | No fix listed |
| ubuntu/rust-time(Ubuntu:24.04) | = 0.3.23-2 | No fix listed |
| ubuntu/rust-time(Ubuntu:24.04) | = 0.3.31-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:24.04) | = 0.3.31-1ubuntu0.1 | No fix listed |
| ubuntu/rust-time(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/rust-time(Ubuntu:25.10) | = 0.3.37-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:25.10) | = 0.3.39-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.10) | = 0.3.47-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.10) | = 0.3.54-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.04) | = 0.3.39-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.04) | = 0.3.44-1 | No fix listed |
| ubuntu/rust-time(Ubuntu:26.04) | = 0.3.47-1 | No fix listed |
References
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- github.com issue-tracking patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking third-party-advisory
- crates.io release-notes vendor-advisory
- github.com product
- rustsec.org issue-tracking vendor-advisory
- crates.io product
- github.com
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2020-26235 vendor-advisory