Nixpkgs security tracker

Login with GitHub

Details of issue NIXPKGS-2026-0235

NIXPKGS-2026-0235
published 6 months, 2 weeks ago
updated 6 months, 2 weeks ago by @LeSuisse Activity log
  • Created suggestion
  • @LeSuisse accepted
  • @LeSuisse published on GitHub
libjxl: Out-of-bounds write in grayscale color transformation when using LCMS2

A specially-crafted file can cause libjxl's decoder to write pixel data to uninitialized unallocated memory. Soon after that data from another uninitialized unallocated region is copied to pixel data. This can be done by requesting color transformation of grayscale images to another grayscale color space. Buffers allocated for 1-float-per-pixel are used as if they are allocated for 3-float-per-pixel. That happens only if LCMS2 is used as CMS engine. There is another CMS engine available (selected by build flags).

Affected products

libjxl
  • =<0.11.1

Matching in nixpkgs

pkgs.libjxl

JPEG XL image format reference implementation

Package maintainers

Upstream issue: https://github.com/libjxl/libjxl/issues/4549
Upstream patch: https://github.com/libjxl/libjxl/commit/aa66d5b12322f6c326aa7a826db9451170956fa0