Debian dla-4084 : libmodbus-dev - security update

high Nessus Plugin ID 232625

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-4084 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-4084-1 [email protected] https://www.debian.org/lts/security/ Andreas Henriksson March 11, 2025 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : libmodbus Version : 3.1.6-2+deb11u1 CVE ID : CVE-2022-0367 CVE-2024-10918 CVE-2024-36843 CVE-2024-36844 CVE-2024-36845 Debian Bug : 1074422

Two separate issues where identified and have now been adressed in libmodbus.
For one of the problems multiple CVE identifiers have been allocated to the same issue and all of them are mentioned below.

CVE-2022-0367

A heap-based buffer overflow flaw was found in libmodbus in function modbus_reply() in src/modbus.c.

CVE-2024-10918

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.

CVE-2024-36843

This is a duplicate of CVE-2022-0367

CVE-2024-36844

This is a duplicate of CVE-2022-0367

CVE-2024-36845

This is a duplicate of CVE-2022-0367

For Debian 11 bullseye, these problems have been fixed in version 3.1.6-2+deb11u1.

We recommend that you upgrade your libmodbus packages.

For the detailed security status of libmodbus please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/libmodbus

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS Attachment:
signature.asc Description: PGP signature

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the libmodbus-dev packages.

See Also

https://security-tracker.debian.org/tracker/source-package/libmodbus

https://security-tracker.debian.org/tracker/CVE-2022-0367

https://security-tracker.debian.org/tracker/CVE-2024-36843

https://security-tracker.debian.org/tracker/CVE-2024-36844

https://security-tracker.debian.org/tracker/CVE-2024-36845

https://security-tracker.debian.org/tracker/CVE-2024-10918

https://packages.debian.org/source/bullseye/libmodbus

Plugin Details

Severity: High

ID: 232625

File Name: debian_DLA-4084.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/11/2025

Updated: 3/11/2025

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-0367

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:libmodbus-dev, p-cpe:/a:debian:debian_linux:libmodbus5

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/11/2025

Vulnerability Publication Date: 8/29/2022

Reference Information

CVE: CVE-2022-0367, CVE-2024-10918, CVE-2024-36843, CVE-2024-36844, CVE-2024-36845