CVE
CVE-2022-0367
publishedlibmodbus: Heap-based Buffer Overflow in modbus_reply
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | libmodbusFixed in v3.1.7 | Affected | Not stated | redhat |
| Alpine Linux | edge | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Debian | bullseye | libmodbus | Advisory build | 3.1.6-2+deb11u1 | DLA-4084-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus-develaarch64 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| Alpine Linux | v3.16 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.17 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.18 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.19 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.21 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.22 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.23 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Alpine Linux | v3.24 | libmodbus | Fixed | 3.1.8-r0 | Package fix record |
| Debian | buster | libmodbus | Advisory build | 3.1.4-2+deb10u2 | DLA-3098-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus-develi586 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus-develppc64le | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus-devels390x | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus-develx86_64 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus5aarch64 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus5i586 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus5ppc64le | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus5s390x | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libmodbus5x86_64 | Advisory build | 3.1.6-bp154.2.3.1 | OPENSUSE-SU-2022:10196-1 |
Description
A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | libmodbus | Fixed in v3.1.7 (affected) | redhat · cna |
Weaknesses
1- CWE-119 CWE-119 - Improper Restriction of Operations within the Bounds of a Memory Buffer.
References
5- https://bugzilla.redhat.com/show_bug.cgi?id=2045571
- https://github.com/stephane/libmodbus/commit/b4ef4c17d618eba0adccc4c7d9e9a1ef809fc9b6
- https://github.com/stephane/libmodbus/issues/614
- [debian-lts-announce] 20220904 [SECURITY] [DLA 3098-1] libmodbus security update https://lists.debian.org/debian-lts-announce/2022/09/msg00007.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00010.html
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9048bf2770829cc5d8d1ce6ec4c613d05f8f9cc55ccda1ff997d185e0741df3a
- Ingested
- 23 Sep 2026, 07:57:33 UTC
- Source record
- Official CVE record