Affected versions
Ubuntu16.04:LTS/nifticlib
- Affected versions
- * || =2.0.0-2
- Fixed version
- Not reported
Ubuntu18.04:LTS/nifticlib
- Affected versions
- * || =2.0.0-2 || =2.0.0-2build1
- Fixed version
- Not reported
Ubuntu20.04:LTS/nifticlib
- Affected versions
- * || =2.0.0-3 || =2.0.0-3ubuntu1
- Fixed version
- Not reported
Ubuntu22.04:LTS/nifticlib
- Affected versions
- * || =3.0.1-8
- Fixed version
- Not reported
Ubuntu24.04:LTS/nifticlib
- Affected versions
- * || =3.0.1-9 || =3.0.1-9.1 || =3.0.1-9.1build1 || =3.0.1-9.1ubuntu2
- Fixed version
- Not reported
Ubuntu26.04:LTS/nifticlib
- Affected versions
- * || =3.0.1-9.1ubuntu2 || =3.0.1-9.1ubuntu3
- Fixed version
- Not reported
Ubuntu26.10/nifticlib
- Affected versions
- * || =3.0.1-9.1ubuntu3
- Fixed version
- Not reported
Description
nifti_clib through 3.0.1 contains a stack-based out-of-bounds read and write vulnerability in nifti_convert_n2hdr2nim() because the NIfTI-2 dim[0] value is never range-checked. Attackers can supply a crafted 540-byte NIfTI-2 header read via nifti_image_read() to crash applications or corrupt stack memory.
Links
- https://github.com/NIFTI-Imaging/nifti_clib
- https://github.com/NIFTI-Imaging/nifti_clib/blob/96b9954fafcf3bd69a4ee2091b0d707ed2077697/nifti2/nifti2_io.c#L4985-L5026
- https://github.com/NIFTI-Imaging/nifti_clib/issues/195
- https://github.com/NIFTI-Imaging/nifti_clib/pull/197
- https://hackmd.io/@haind-pwn/nifticlib-nifti2-dim0-oob
- https://ubuntu.com/security/CVE-2026-111275
- https://www.cve.org/CVERecord?id=CVE-2026-111275
- https://www.vulncheck.com/advisories/nifti-clib-through-3.0.1-stack-out-of-bounds-access-via-nifti-convert-n2hdr2nim

