# HSEC-2025-0001: Subword division operations may produce incorrect results

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-11-14T14:45:34.000Z
- Modified: 2026-03-30T10:45:07.658Z

## Description

# Subword division operations may produce incorrect results

Arithmetic operations may produce incorrect results when compiled with optimizations.
For the most part, this bug only causes availability and data integrity issues.
However, in some circumstances, it may result in other, more complicated security related flaws, such as buffer overflow conditions.

(As written by Haskell Security Advisories.)

## Affected

- ghc (GHC): from 9.12.1 before 9.12.2; from 9.12.3 before 9.12.4

## References

- <https://gitlab.haskell.org/ghc/ghc/-/issues/25653> (report)
- <https://discourse.haskell.org/t/psa-correctness-issue-in-ghc-9-12/11204> (report)
- <https://discourse.haskell.org/t/critical-code-generation-bug-with-ghc-9-12-3/13505/2> (report)
- <https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13820> (fix)
- <https://gitlab.haskell.org/ghc/ghc/-/issues/26711> (report)
- <https://gitlab.haskell.org/ghc/ghc/-/issues/26668> (report)

## Sources

- Haskell Security Advisories: [HSEC-2025-0001](https://osv.dev/vulnerability/HSEC-2025-0001), CC0-1.0, modified 2026-03-30

---

Page: https://cve.day/HSEC-2025-0001 · Whole record: https://cve.day/HSEC-2025-0001.json · Rebuilt by cve.day 2026-11-25T22:56:16.498Z
