Description
Stack-based Buffer Overflow vulnerability in libmodbus v3.1.10 allows to overflow the buffer allocated for the Modbus response if the function tries to reply to a Modbus request with an
unexpected length.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libmodbus | libmodbus | ≤ 3.1.10 | — |
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.11-1 | — |
| Debian 13 | libmodbus | 3.1.11-1 | — |
| Debian 12 | libmodbus | 3.1.6-2.1+deb12u1 | — |
| Debian 11 | libmodbus | 3.1.6-2+deb11u1 | DLA-4084-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | libmodbus | No fix yet | — |
| Ubuntu 22.04 LTS | libmodbus | No fix yet | — |
| Ubuntu 20.04 LTS | libmodbus | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Advisories 2
- DLA-4084-1 libmodbus - security update Debian Security (DSA / DLA) · Mar 9, 2026
- VDE-2025-053 Phoenix Contact: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · Jul 8, 2025