# Ubuntu fixes seven NASM assembler flaws, including heap overflows and a use-after-free

> **Key takeaway:** Ubuntu's USN-9451-1 patches NASM across 22.04, 24.04 and 26.04 LTS, with the newest CVEs allowing heap buffer overflow and use-after-free that could lead to arbitrary code execution.

**Published:** 2026-12-02T22:08:23+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-fixes-seven-nasm-assembler-flaws-including-heap-overf 

## Summary
Ubuntu published security notice USN-9451-1 on 2 December 2026, addressing seven vulnerabilities in NASM, the Netwide Assembler. The flaws span object-output backends (IEEE, a.out and OBJ), makefile dependency generation, macro parameter parsing and response-file handling. Depending on the code path, the bugs cause NULL pointer dereferences, heap buffer overflows or a use-after-free, each of which can crash the assembler and, for the overflow and use-after-free cases, potentially allow arbitrary code execution.

The affected releases are Ubuntu 22.04 LTS, 24.04 LTS and 26.04 LTS, with individual CVEs scoped to specific versions: CVE-2020-21528, CVE-2022-44370 and CVE-2022-46457 only affect 22.04 LTS, CVE-2022-44369 affects 22.04 and 24.04 LTS, CVE-2025-8844 only affects 26.04 LTS, while CVE-2026-6067 and CVE-2026-6068 apply across the supported releases. Fixed packages are distributed through Ubuntu Pro ESM Apps, with versions 2.15.05-1ubuntu0.1~esm4 for jammy, 2.16.01-1ubuntu0.1~esm4 for noble and 3.01-1ubuntu0.26.04.1~esm2 for resolute; a standard system update applies them.

## Inside the NASM fixes in USN-9451-1
- **IEEE object output (CVE-2020-21528, CVE-2022-46457):** Incorrect handling of segment definitions and of empty input files leads to NULL pointer dereferences, crashing NASM; both issues are limited to Ubuntu 22.04 LTS.
- **a.out relocations (CVE-2022-44369):** Relocations without a matching symbol are not handled correctly, producing a NULL pointer dereference on Ubuntu 22.04 LTS and 24.04 LTS.
- **Makefile dependency quoting (CVE-2022-44370):** File names are quoted incorrectly when generating dependency output, causing a heap buffer overflow that may permit arbitrary code execution on Ubuntu 22.04 LTS.
- **OBJ GROUP directives (CVE-2026-6067):** Missing bounds checks when processing GROUP directives in OBJ output cause a heap buffer overflow with potential code execution; this affects all three supported LTS releases.
- **Response files and macro radix (CVE-2026-6068, CVE-2025-8844):** Dependency-generation options in response files trigger a use-after-free, while invalid radix specifiers in macro parameters cause a NULL dereference on Ubuntu 26.04 LTS.

## Why it matters
NASM is a build-time dependency for many low-level projects, including bootloaders, firmware and assembly-heavy libraries, so a crash or code-execution bug can be triggered by crafted source or build inputs in CI pipelines and distribution build farms. Because the fixes for 22.04, 24.04 and 26.04 LTS are delivered through Ubuntu Pro ESM Apps, administrators relying on community repositories may wait longer for patched packages and should track whether a public update lands.