CVE-2024-50251 netfilter: nft_payload: sanitize offset and length before calling skb_checksum()

Medium 6.2 Published Updated

A flaw in the Linux kernel netfilter payload handling allows attackers to trigger a kernel crash via crafted network packets, causing denial of service.

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

What is CVE-2024-50251?

CVE-2024-50251 is a medium-severity denial of service vulnerability in Linux kernel, published on 9 Nov 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:

netfilter: nft_payload: sanitize offset and length before calling skb_checksum()

If access to offset + length is larger than the skbuff length, then skb_checksum() triggers BUG_ON().

skb_checksum() internally subtracts the length parameter while iterating over skbuff, BUG_ON(len) at the end of it checks that the expected length to be included in the checksum calculation is fully consumed.

Which versions are affected by CVE-2024-50251?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50251?

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-50251 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Linux kernel vulnerabilities

Sources

Also known as AZL-53277, AZL-53328, BELL-CVE-2024-50251, DEBIAN-CVE-2024-50251, GHSA-gmgf-ff9x-r369, UBUNTU-CVE-2024-50251.

Is CVE-2024-50251 in your software?

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

Check your SBOMs for free