CVE-2022-0367 Memory corruption in libmodbus

High 7.8 Published Updated

A heap-based buffer overflow in libmodbus allows attackers to execute arbitrary code or cause a denial of service via crafted Modbus replies.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-0367?

CVE-2022-0367 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 29 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2022-0367?

It affects 4 products.

Linux distribution packages (2)
libmodbus SUSE:Package Hub 15 SP4All versions3.1.6-bp154.2.3.1
libmodbus openSUSE:Leap 15.4All versions3.1.6-bp154.2.3.1

Products include Debian Debian Linux, Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Libmodbus Libmodbus.

How do I fix CVE-2022-0367?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-0367 being exploited?

There is no known exploitation of CVE-2022-0367 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-0367, DLA-3098-1, GHSA-w46r-g3fx-q46r, JLSEC-2026-1250, UBUNTU-CVE-2022-0367, openSUSE-SU-2022:10196-1.

Is CVE-2022-0367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free