Description
In YARA 3.8.1, bytecode in a specially crafted compiled rule can read uninitialized data from VM scratch memory in libyara/exec.c. This can allow attackers to discover addresses in the real stack (not the YARA virtual stack).
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 | yara | 3.8.1-2 | — |
| Debian 13 | yara | 3.8.1-2 | — |
| Debian 12 | yara | 3.8.1-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | yara | 3.7.1-1ubuntu2+esm1 | — |
| Ubuntu Pro 16.04 LTS | yara | 3.4.0+dfsg-2ubuntu0.1~esm1 | — |