CVE-2024-36844 Use after free in n/a

High 7.5 Published Updated

Attackers can cause a Denial of Service in libmodbus by sending a crafted message to the unit-test-server, exploiting a use-after-free vulnerability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-36844?

CVE-2024-36844 is a high-severity use after free vulnerability in n/a, published on 31 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

libmodbus v3.1.6 was discovered to contain a use-after-free via the ctx->backend pointer. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted message sent to the unit-test-server.

Weakness: CWE-416

Which versions are affected by CVE-2024-36844?

It affects 1 product.

Products include Libmodbus Libmodbus.

How do I fix CVE-2024-36844?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-36844 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36844 exists.

Sources

Also known as DEBIAN-CVE-2024-36844, GHSA-2625-j643-gg22, JLSEC-2026-1255, UBUNTU-CVE-2024-36844.

Is CVE-2024-36844 in your software?

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

Check your SBOMs for free