CVE-2024-45010 mptcp: pm: only mark 'subflow' endp as available

Medium 5.5 Published Updated

A logic error in the Linux kernel MPTCP path manager incorrectly decrements a counter, potentially leading to resource exhaustion or denial of service.

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-45010?

CVE-2024-45010 is a medium-severity denial of service vulnerability in Linux kernel, published on 11 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: only mark 'subflow' endp as available

Adding the following warning ...

WARN_ON_ONCE(msk->pm.local_addr_used == 0)

... before decrementing the local_addr_used counter helped to find a bug when running the "remove single address" subtest from the mptcp_join.sh selftests.

Removing a 'signal' endpoint will trigger the removal of all subflows linked to this endpoint via mptcp_pm_nl_rm_addr_or_subflow() with rm_type == MPTCP_MIB_RMSUBFLOW. This will decrement the local_addr_used counter, which is wrong in this case because this counter is linked to 'subflow' endpoints, and here it is a 'signal' endpoint that is being removed.

Now, the counter is decremented, only if the ID is being used outside of mptcp_pm_nl_rm_addr_or_subflow(), only for 'subflow' endpoints, and if the ID is not 0 -- local_addr_used is not taking into account these ones. This marking of the ID as being available, and the decrement is done no matter if a subflow using this ID is currently available, because the subflow could have been closed before.

Which versions are affected by CVE-2024-45010?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-45010?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-45010 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49182, AZL-49263, BELL-CVE-2024-45010, DEBIAN-CVE-2024-45010, GHSA-mfw6-959v-265j, ROOT-OS-UBUNTU-2204-CVE-2024-45010 and 1 more.

Is CVE-2024-45010 in your software?

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

Check your SBOMs for free