Distro News

Ubuntu fixes ICU genrb stack buffer overflow (CVE-2025-5222) in 24.04 LTS and 22.04 LTS

Key Takeaway

A crafted resource bundle file can overflow a fixed-size stack buffer in ICU's genrb tool, and Ubuntu has published patched icu-devtools packages for Noble and Jammy.

Summary

Ubuntu published USN-9210-1 on 1 December 2026 covering a stack buffer overflow in the genrb utility shipped with the International Components for Unicode (ICU) library. The flaw, tracked as CVE-2025-5222, stems from incorrect handling of fixed-size buffers while parsing resource bundle files, so a specially crafted input file can corrupt memory or crash the tool. The advisory covers Ubuntu 24.04 LTS (noble) and 22.04 LTS (jammy), with fixes delivered through updated icu-devtools packages.

The affected component is genrb, the ICU resource bundle compiler used by developers and build systems to turn textual resource files into binary bundles, not the runtime ICU libraries used by most applications. Ubuntu notes that the default compiler options on the affected releases should limit the practical impact to a denial of service rather than reliable code execution. A standard system update installs the corrected packages; no manual mitigation is described beyond applying the update.

What CVE-2025-5222 changes in ICU's genrb

  • Defect class: genrb mishandles fixed-size buffers when parsing resource bundle files, producing a stack buffer overflow that can lead to memory corruption or a denial of service.
  • Attack vector: Exploitation requires the tool to open a specially crafted resource bundle file, so the risk is concentrated in build and packaging workflows that compile untrusted or third-party resource inputs.
  • Mitigation in practice: Ubuntu states that the default compiler options for the affected releases should reduce the vulnerability to a denial of service, limiting the likelihood of memory corruption being turned into control-flow hijacking.
  • Fixed packages: icu-devtools is updated to 74.2-1ubuntu3.2 on Ubuntu 24.04 LTS (noble) and to 70.1-2ubuntu1.1 on Ubuntu 22.04 LTS (jammy).
  • Remediation path: A standard system update applies the fix; the advisory lists no additional configuration workaround.

Why it matters

ICU is a foundational dependency for Unicode handling across Linux desktops and language runtimes, and genrb sits in the toolchain that produces the resource bundles those stacks consume. Distributions and CI pipelines that compile resource files from external sources should pull the updated icu-devtools packages promptly, since the crash risk lands on build infrastructure rather than end-user applications. The advisory also illustrates how compiler hardening defaults can downgrade a memory-corruption bug to a denial of service.

Original reference: ubuntu.com →