Skip to content

Withdraw RUSTSEC-2020-0159: unsound localtime_r call in chrono #1241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2022

Conversation

tarcieri
Copy link
Member

Per #1190, it would be good to move to a policy where we don't file advisories against crates which perform unsynchronized reads from the process environment, and instead focus only on crates which modify the process environment in an unsynchronized manner.

Per #1190, it would be good to move to a policy where
we don't file advisories against crates which perform unsynchronized
reads from the process environment, and instead focus only on crates
which modify the process environment in an unsynchronized manner.
@tarcieri tarcieri force-pushed the yank-RUSTSEC-2020-0159 branch from bb2516e to d3cf0ba Compare May 12, 2022 15:38
@@ -7,6 +7,8 @@ url = "https://github.com/chronotope/chrono/issues/499"
categories = ["code-execution", "memory-corruption"]
keywords = ["segfault"]
related = ["CVE-2020-26235", "RUSTSEC-2020-0071"]
withdrawn = "2022-05-12" # see rustsec/advisory-db#1190
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should move the rationale for yanking to the Markdown part, so that it shows up in exported data as well (OSV, GHSA etc)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That'd be a good idea, but it seems this feature is still halfway migrated from a boolean yanked = true flag to withdrawn = with the date.

So we'd need to get support into the next rustsec crate release, wait for everyone to upgrade, then start using it after the next release.

Maybe open a tracking ticket for this on https://github.com/rustsec/rustsec ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the comment: # see rustsec/advisory-db#1190

Also, I thought I've migrated the rustsec crate to dates, and left the yanked = true in the advisories for backwards compatibility... if that's not the case, I should add that to my TODO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I understand what you're saying. I'm just saying this field is already in flux, and we'd need to add another forward-compatible change to the code first before we could modify the database.

@tarcieri tarcieri changed the title Yank RUSTSEC-2020-0159: unsound localtime_r call in chrono Withdraw RUSTSEC-2020-0159: unsound localtime_r call in chrono May 12, 2022
@tarcieri tarcieri merged commit ca1383b into main May 12, 2022
@tarcieri tarcieri deleted the yank-RUSTSEC-2020-0159 branch May 12, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants