Description
ZBar through 0.23.95 contains an out-of-bounds read vulnerability in _zbar_sq_decode() in zbar/sqcode.c that allows attackers to read heap memory outside the image buffer via crafted SQ code images. Attackers can supply an image with a skewed SQ code finder pattern near the edge, producing unchecked sample coordinates that crash the decoder and leak bytes into output.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mchehab | zbar | ≤ 0.23.95 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | zbar | No fix yet | — |
| Debian 13 | zbar | No fix yet | — |
| Debian 12 | zbar | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | zbar | No fix yet | — |
| Ubuntu 26.04 LTS | zbar | No fix yet | — |
| Ubuntu 24.04 LTS | zbar | No fix yet | — |
| Ubuntu 14.04 LTS | zbar | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | zbar | No fix yet | — |
| Ubuntu Pro 20.04 LTS | zbar | No fix yet | — |
| Ubuntu Pro 18.04 LTS | zbar | No fix yet | — |
| Ubuntu Pro 16.04 LTS | zbar | No fix yet | — |
References
- https://github.com/mchehab/zbar/issues/351 issue-tracking
- https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read third-party-advisory
- https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567 technical-description
- VulnCheck Advisory: ZBar through 0.23.95 Out-of-Bounds Read via _zbar_sq_decode() in sqcode.c third-party-advisory