CVE-2022-42705 Use after free in n/a

Medium 6.5 Published Updated

A remote authenticated attacker can crash the Asterisk PBX server by triggering a use-after-free condition during concurrent subscription activities.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-42705?

CVE-2022-42705 is a medium-severity use after free vulnerability in n/a, published on 5 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A use-after-free in res_pjsip_pubsub.c in Sangoma Asterisk 16.28, 18.14, 19.6, and certified/18.9-cert2 may allow a remote authenticated attacker to crash Asterisk (denial of service) by performing activity on a subscription via a reliable transport at the same time that Asterisk is also performing activity on that subscription.

Weakness: CWE-416

Which versions are affected by CVE-2022-42705?

It affects 2 products.

Products include Sangoma Asterisk, Sangoma Certified Asterisk.

How do I fix CVE-2022-42705?

Apply the vendor's patch.

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-2022-42705 being exploited?

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

Sources

Also known as ALPINE-CVE-2022-42705, DEBIAN-CVE-2022-42705, GHSA-89gw-96wv-f4r4, UBUNTU-CVE-2022-42705.

Is CVE-2022-42705 in your software?

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

Check your SBOMs for free