CVE-2024-45402 Picotls double free

High 8.6 Published Updated

A double free in picotls during TLS handshake parsing can lead to use-after-free, potentially allowing arbitrary code execution or denial of service.

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

What is CVE-2024-45402?

CVE-2024-45402 is a high-severity use after free vulnerability in h2o picotls, published on 11 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Picotls is a TLS protocol library that allows users select different crypto backends based on their use case. When parsing a spoofed TLS handshake message, picotls (specifically, bindings within picotls that call the crypto libraries) may attempt to free the same memory twice. This double free occurs during the disposal of multiple objects without any intervening calls to malloc Typically, this triggers the malloc implementation to detect the error and abort the process. However, depending on the internals of malloc and the crypto backend being used, the flaw could potentially lead to a use-after-free scenario, which might allow for arbitrary code execution. The vulnerability is addressed with commit 9b88159ce763d680e4a13b6e8f3171ae923a535d.

Weakness: CWE-415

Which versions are affected by CVE-2024-45402?

It affects 1 product.

Products include Dena Picotls.

How do I fix CVE-2024-45402?

No fix has been published for CVE-2024-45402 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 CVE-2024-45402 being exploited?

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

Sources

Also known as GHSA-w7c8-wjx9-vvvv.

Is CVE-2024-45402 in your software?

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

Check your SBOMs for free