CVE-2024-39293 Revert "xsk: Support redirect to any socket bound to the same umem"

Critical 9.8 Published Updated

A race condition in the Linux kernel's AF_XDP implementation allows concurrent access to Rx rings, leading to state corruption and kernel crashes.

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

What is CVE-2024-39293?

CVE-2024-39293 is a critical vulnerability in Linux kernel, published on 25 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Revert "xsk: Support redirect to any socket bound to the same umem"

This reverts commit 2863d665ea41282379f108e4da6c8a2366ba66db.

This patch introduced a potential kernel crash when multiple napi instances redirect to the same AF_XDP socket. By removing the queue_index check, it is possible for multiple napi instances to access the Rx ring at the same time, which will result in a corrupted ring state which can lead to a crash when flushing the rings in __xsk_flush(). This can happen when the linked list of sockets to flush gets corrupted by concurrent accesses. A quick and small fix is not possible, so let us revert this for now.

Weakness: CWE-362

Which versions are affected by CVE-2024-39293?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-39293?

Apply the vendor's patch.

Is CVE-2024-39293 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-39293, DEBIAN-CVE-2024-39293, GHSA-vhxr-pcmq-x8rc, ROOT-OS-UBUNTU-2204-CVE-2024-39293, ROOT-OS-UBUNTU-2404-CVE-2024-39293, UBUNTU-CVE-2024-39293.

Is CVE-2024-39293 in your software?

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

Check your SBOMs for free