Description
An issue has been found in third-party PNM decoding associated with libpng 1.6.35. It is a stack-based buffer overflow in the function get_token in pnm2png.c in pnm2png.
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 | libpng1.6 | 1.6.37-1 | — |
| Debian 13 | libpng1.6 | 1.6.37-1 | — |
| Debian 12 | libpng1.6 | 1.6.37-1 | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libpng | 1.6.37-r0 | — |
| Alpine v3.23 | libpng | 1.6.37-r0 | — |
| Alpine v3.22 | libpng | 1.6.37-r0 | — |
| Alpine v3.21 | libpng | 1.6.37-r0 | — |
| Alpine v3.20 | libpng | 1.6.37-r0 | — |
Show 14 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libpng | 1.6.37-r0 | — |
| Alpine v3.18 | libpng | 1.6.37-r0 | — |
| Alpine v3.17 | libpng | 1.6.37-r0 | — |
| Alpine v3.16 | libpng | 1.6.37-r0 | — |
| Alpine v3.15 | libpng | 1.6.37-r0 | — |
| Alpine v3.14 | libpng | 1.6.37-r0 | — |
| Alpine v3.13 | libpng | 1.6.37-r0 | — |
| Alpine v3.12 | libpng | 1.6.37-r0 | — |
| Alpine v3.11 | libpng | 1.6.37-r0 | — |
| Alpine v3.10 | libpng | 1.6.37-r0 | — |
| Alpine v3.9 | libpng | 1.6.37-r0 | — |
| Alpine v3.8 | libpng | 1.6.37-r0 | — |
| Alpine v3.7 | libpng | 1.6.37-r0 | — |
| Alpine v3.6 | libpng | 1.6.37-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libpng15 | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | libpng15 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | libpng | < 1.6.37 | 1.6.37 | GHSA-qwwr-qc2p-6283 |
References
- GLSA-201908-02 vendor-advisory
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://github.com/glennrp/libpng/issues/246
- https://github.com/fouzhe/security/tree/master/libpng#stack-buffer-overflow-in-png2pnm-in-function-get_token
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20221028-0001/