Description
A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | libmodbus | Fixed in v3.1.7 | — |
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 | libmodbus | 3.1.6-2.1 | — |
| Debian 13 | libmodbus | 3.1.6-2.1 | — |
| Debian 12 | libmodbus | 3.1.6-2.1 | — |
| Debian 11 | libmodbus | 3.1.6-2+deb11u1 | DLA-4084-1 |
| Debian 10 | libmodbus | 3.1.4-2+deb10u2 | DLA-3098-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libmodbus | No fix yet | — |
| Ubuntu 26.04 LTS | libmodbus | No fix yet | — |
| Ubuntu 25.10 | libmodbus | No fix yet | — |
| Ubuntu 24.04 LTS | libmodbus | No fix yet | — |
| Ubuntu 22.04 LTS | libmodbus | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libmodbus | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libmodbus | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libmodbus | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libmodbus | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP4 | libmodbus | 3.1.6-bp154.2.3.1 | openSUSE-SU-2022:10196-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.4 | libmodbus | 3.1.6-bp154.2.3.1 | openSUSE-SU-2022:10196-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.23 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.22 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.21 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.20 | libmodbus | 3.1.8-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.18 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.17 | libmodbus | 3.1.8-r0 | — |
| Alpine v3.16 | libmodbus | 3.1.8-r0 | — |
Advisories 3
- DLA-4084-1 libmodbus - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3098-1 libmodbus - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2022:10196-1 Security update for libmodbus SUSE / openSUSE Security Updates · Feb 4, 2026