Bugzilla – Bug 1225828
VUL-0: CVE-2024-36844: libmodbus: use-after-free via the ctx->backend pointer in modbus.c
Last modified: 2024-06-11 19:54:34 UTC
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. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36844 https://www.cve.org/CVERecord?id=CVE-2024-36844 https://github.com/stephane/libmodbus/issues/749 https://bugzilla.redhat.com/show_bug.cgi?id=2284255
Checking the upstream, there is no fix. The upstream issue has no progress. Redhat Bugzilla has no progress yet. The crash of use after free affects at least debug mode, but the problem could be deeper in the library. (The memory is freed earlier, and the crash appears in a moment when the freed contents is used.) Is it serious enough to start a research? Note that we have no Modbus testing hardware.