# CVE-2024-36937: xdp: use flags field to disambiguate broadcast redirect

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-30T15:29:26.353Z
- **Modified:** 2026-06-17T07:37:24.210Z

## Who should check

- Anyone running Linux \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 12481f30128fbebc2eeb55eb2d56390fdfa30c5e; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 272bfb019f3cc018f654b992115774e77b4f3ffc; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< e22e25820fa04ea5eaac4ef7ee200e9923f466a4; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 6fd81f9d333e7b3532036577b1beb74ba1323553; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 5bcf0dcbf9066348058b88a510c57f70f384c92c
- Anyone running Linux 5.14

## Description

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

xdp: use flags field to disambiguate broadcast redirect

When redirecting a packet using XDP, the bpf\_redirect\_map() helper will set
up the redirect destination information in struct bpf\_redirect\_info (using
the \_\_bpf\_xdp\_redirect\_map() helper function), and the xdp\_do\_redirect()
function will read this information after the XDP program returns and pass
the frame on to the right redirect destination.

When using the BPF\_F\_BROADCAST flag to do multicast redirect to a whole
map, \_\_bpf\_xdp\_redirect\_map() sets the 'map' pointer in struct
bpf\_redirect\_info to point to the destination map to be broadcast. And
xdp\_do\_redirect() reacts to the value of this map pointer to decide whether
it's dealing with a broadcast or a single-value redirect. However, if the
destination map is being destroyed before xdp\_do\_redirect() is called, the
map pointer will be cleared out (by bpf\_clear\_redirect\_map()) without
waiting for any XDP programs to stop running. This causes xdp\_do\_redirect()
to think that the redirect was to a single target, but the target pointer
is also NULL (since broadcast redirects don't have a single target), so
this causes a crash when a NULL pointer is passed to dev\_map\_enqueue().

To fix this, change xdp\_do\_redirect() to react directly to the presence of
the BPF\_F\_BROADCAST flag in the 'flags' value in struct bpf\_redirect\_info
to disambiguate between a single-target and a broadcast redirect. And only
read the 'map' pointer if the broadcast flag is set, aborting if that has
been cleared out in the meantime. This prevents the crash, while keeping
the atomic (cmpxchg-based) clearing of the map pointer itself, and without
adding any more checks in the non-broadcast fast path.

## Affected and fixed versions

- Linux: \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 12481f30128fbebc2eeb55eb2d56390fdfa30c5e; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 272bfb019f3cc018f654b992115774e77b4f3ffc; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< e22e25820fa04ea5eaac4ef7ee200e9923f466a4; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 6fd81f9d333e7b3532036577b1beb74ba1323553; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 5bcf0dcbf9066348058b88a510c57f70f384c92c (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 5bcf0dcbf9066348058b88a510c57f70f384c92c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36937. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36937.md
Affected: Linux >= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 12481f30128fbebc2eeb55eb2d56390fdfa30c5e; >= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < 272bfb019f3cc018f654b992115774e77b4f3ffc; >= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, < e22e25820fa04ea5eaac4ef7ee200e9923f466a4; >= e624d4ed4aa8cc3c69d1359…
Fixed in: Linux 12481f30128fbebc2eeb55eb2d56390fdfa30c5e, Linux 272bfb019f3cc018f654b992115774e77b4f3ffc, Linux 6fd81f9d333e7b3532036577b1beb74ba1323553, Linux 5bcf0dcbf9066348058b88a510c57f70f384c92c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36937 being exploited?

There is no confirmed exploitation: CVE-2024-36937 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36937?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36937?

Linux \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 12481f30128fbebc2eeb55eb2d56390fdfa30c5e; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 272bfb019f3cc018f654b992115774e77b4f3ffc; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< e22e25820fa04ea5eaac4ef7ee200e9923f466a4; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 6fd81f9d333e7b3532036577b1beb74ba1323553; \>= e624d4ed4aa8cc3c69d1359b0aaea539203ed266, \< 5bcf0dcbf9066348058b88a510c57f70f384c92c; Linux 5.14.

### Is there a fix for CVE-2024-36937?

Yes. Fixed in Linux 12481f30128fbebc2eeb55eb2d56390fdfa30c5e, Linux 272bfb019f3cc018f654b992115774e77b4f3ffc, Linux 6fd81f9d333e7b3532036577b1beb74ba1323553, Linux 5bcf0dcbf9066348058b88a510c57f70f384c92c. Upgrade Linux to 5bcf0dcbf9066348058b88a510c57f70f384c92c or later.

### How do I check if I'm affected by CVE-2024-36937?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/12481f30128fbebc2eeb55eb2d56390fdfa30c5e>
- patch: <https://git.kernel.org/stable/c/272bfb019f3cc018f654b992115774e77b4f3ffc>
- patch: <https://git.kernel.org/stable/c/e22e25820fa04ea5eaac4ef7ee200e9923f466a4>
- patch: <https://git.kernel.org/stable/c/6fd81f9d333e7b3532036577b1beb74ba1323553>
- patch: <https://git.kernel.org/stable/c/5bcf0dcbf9066348058b88a510c57f70f384c92c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36937>

HTML: <https://flawdb.com/CVE-2024-36937> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36937>
