# HSEC-2024-0007: Sign extension error in the AArch64 NCG

- 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: 2025-11-14T18:15:43.302Z

## Description

# Sign extension error in the AArch64 NCG

Arithmetic operations may result in incorrect runtime results on the native aarch64 backend.
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.2.4 before 9.2.5; from 9.4.2 before 9.4.3

## References

- <https://gitlab.haskell.org/ghc/ghc/-/issues/22282> (report)
- <https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9152> (fix)
- <https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9139> (fix)

## Sources

- Haskell Security Advisories: [HSEC-2024-0007](https://osv.dev/vulnerability/HSEC-2024-0007), CC0-1.0, modified 2025-11-14

---

Page: https://cve.day/HSEC-2024-0007 · Whole record: https://cve.day/HSEC-2024-0007.json · Rebuilt by cve.day 2026-11-25T22:56:16.497Z
