CVE-2026-121942
zbar: zbar: Denial of Service via crafted SQ code image
Overview
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.
Source: OX vulnerability database
Severity
6.1 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Weakness: CWE-125
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 5 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | zbar | affected |
| 12 | zbar | affected |
| 13 | zbar | affected |
| 14 | zbar | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| zbar | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-121942
- github.com https://github.com/mchehab/zbar/blob/0.23.95/zbar/sqcode.c#L529-L567
- github.com https://github.com/mchehab/zbar/issues/351
- hackmd.io https://hackmd.io/@haindpwn/cve-2026-121942-zbar-sqcode-sampling-oob-read
- hackmd.io https://hackmd.io/@haindpwn/zbar-sqcode-sampling-oob-read
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-121942
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-121942
- www.vulncheck.com https://www.vulncheck.com/advisories/zbar-through-0.23.95-out-of-bounds-read-via-zbar-sq-decode-in-sqcode-c
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.