You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
math/big: Rat.SetString may consume large amount of RAM and crash #50699
Unmarshaling a string into a *Rat may cause resource exhaustion, consuming a huge amount of RAM, which may cause a system to crash or timeout. This is reachable from (*Rat).SetString, (*Rat).UnmarshalText, (*Rat).Scan, and any other function that unmarshals a string into a (*Rat) such as constant.MakeFromLiteral.
Thanks to the OSS-Fuzz project for discovering this issue and to Emmanuel Odeke for reporting it.
Activity
katiehockman commentedon Jan 19, 2022
@gopherbot please backport to 1.17 and 1.16 as this is a security issue.
gopherbot commentedon Jan 19, 2022
Backport issue(s) opened: #50700 (for 1.16), #50701 (for 1.17).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases.
gopherbot commentedon Jan 19, 2022
Change https://golang.org/cl/379537 mentions this issue:
math/big: prevent overflow in (*Rat).SetStringdmitshur commentedon Jan 26, 2022
Ping as a release blocker. Is the CL fixing this issue ready to be submitted?
odeke-em commentedon Jan 26, 2022
@dmitshur thank you for the ping! I've given the CL a +2, I shall wait for @katiehockman and the security team too.
gopherbot commentedon Jan 27, 2022
Change https://golang.org/cl/381336 mentions this issue:
[release-branch.go1.17] math/big: prevent overflow in (*Rat).SetStringgopherbot commentedon Jan 27, 2022
Change https://golang.org/cl/381337 mentions this issue:
[release-branch.go1.16] math/big: prevent overflow in (*Rat).SetString[release-branch.go1.17] math/big: prevent overflow in (*Rat).SetString
[release-branch.go1.16] math/big: prevent overflow in (*Rat).SetString
[release-branch.go1.16] math/big: prevent overflow in (*Rat).SetString
math/big: prevent overflow in (*Rat).SetString
math/big: prevent overflow in (*Rat).SetString
math/big: prevent overflow in (*Rat).SetString