OSV-2021-1568 Heap-use-after-free in MqttDecode_Props

Not scored Published

A heap-use-after-free vulnerability in the MQTT client library allows attackers to cause denial of service or potentially execute code via crafted packets.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is OSV-2021-1568?

OSV-2021-1568 is an use after free vulnerability in wolfmqtt, published on 12 Nov 2021. It can be exploited over the network, with no action from the victim.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40904

Crash type: Heap-use-after-free READ 1
Crash state:
MqttDecode_Props
MqttDecode_Disconnect
MqttClient_DecodePacket

Which versions are affected by OSV-2021-1568?

1 open source package ship an affected version, including wolfmqtt.

PackageAffectedFixed in
wolfmqtt OSS-FuzzAll versionsNone

How do I fix OSV-2021-1568?

No fix has been published for OSV-2021-1568 yet. Limit exposure of the affected software until one is available.

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 OSV-2021-1568 being exploited?

There is no known exploitation of OSV-2021-1568 in the wild and no public exploit code.

Sources

Is OSV-2021-1568 in your software?

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

Check your SBOMs for free