CVE-2024-10918

NameCVE-2024-10918
DescriptionStack-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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4084-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libmodbus (PTS)bullseye3.1.6-2vulnerable
bullseye (security)3.1.6-2+deb11u1fixed
bookworm3.1.6-2.1vulnerable
sid, trixie3.1.11-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libmodbussourcebullseye3.1.6-2+deb11u1DLA-4084-1
libmodbussource(unstable)3.1.11-1

Notes

[bookworm] - libmodbus <no-dsa> (Minor issue)
https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2024-10918
https://github.com/stephane/libmodbus/commit/df79a02feb253c0a9a009bcdbb21e47581315111 (v3.1.11)
https://github.com/stephane/libmodbus/commit/d8a971e04d52be16bf405b51d934a30b8aa3f2c3 (v3.1.11, follow-up)
https://github.com/stephane/libmodbus/commit/81bf713cf029bfa5b5da87b945c1e8817b4398f9 (v3.1.11, follow-up)

Search for package or bug name: Reporting problems