security-advisories
security-advisories copied to clipboard
GHC 9.0.1 Natural conversion bug
Mandatory information:
- Package : ghc
- cvss:
?
- affected versions: 9.0.1
Optional:
- cve:
?
- keywords:
?
- aliases:
?
- related:
?
- affected OSes: all
- affected architecture: all
- declarations:
?
- Long description:
?
GHC 9.0.1's optimization of Natural numbers can't be trusted because of a bogus rewrite rule. See https://gitlab.haskell.org/ghc/ghc/-/issues/19345, https://gitlab.haskell.org/ghc/ghc/-/issues/20066, https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4980, and https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6109.
Not exactly sure how it might be used for an attack but we quickly discussed this issue at the HF workshop and concluded it was worth reporting anyway.