CVE-2024-44974 mptcp: pm: avoid possible UaF when selecting endp

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel MPTCP path manager allows attackers to potentially execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-44974?

CVE-2024-44974 is a high-severity use after free vulnerability in Debian Debian Linux, published on 4 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

mptcp: pm: avoid possible UaF when selecting endp

select_local_address() and select_signal_address() both select an endpoint entry from the list inside an RCU protected section, but return a reference to it, to be read later on. If the entry is dereferenced after the RCU unlock, reading info could cause a Use-after-Free.

A simple solution is to copy the required info while inside the RCU protected section to avoid any risk of UaF later. The address ID might need to be modified later to handle the ID0 case later, so a copy seems OK to deal with.

Weakness: CWE-416

Which versions are affected by CVE-2024-44974?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-44974?

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-2024-44974 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-48657, AZL-48675, BELL-CVE-2024-44974, DEBIAN-CVE-2024-44974, GHSA-mgf7-9fq3-64j5, UBUNTU-CVE-2024-44974.

Is CVE-2024-44974 in your software?

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

Check your SBOMs for free