# CVE-2024-42082: xdp: Remove WARN() from \_\_xdp\_reg\_mem\_model()

> 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.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2024-07-29T15:52:43.989Z
- **Modified:** 2026-10-15T01:18:42.560Z

## Who should check

- Anyone running Linux \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 14e51ea78b4ccacb7acb1346b9241bb790a2054c; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< f92298b0467fd77edc4c1a2c3e48833e69840ec4; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 7e9f79428372c6eab92271390851be34ab26bfb4
- Anyone running Linux 4.18

## Description

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

xdp: Remove WARN() from \_\_xdp\_reg\_mem\_model()

syzkaller reports a warning in \_\_xdp\_reg\_mem\_model().

The warning occurs only if \_\_mem\_id\_init\_hash\_table() returns an error. It
returns the error in two cases:

  1. memory allocation fails;
  2. rhashtable\_init() fails when some fields of rhashtable\_params
     struct are not initialized properly.

The second case cannot happen since there is a static const rhashtable\_params
struct with valid fields. So, warning is only triggered when there is a
problem with memory allocation.

Thus, there is no sense in using WARN() to handle this error and it can be
safely removed.

WARNING: CPU: 0 PID: 5065 at net/core/xdp.c:299 \_\_xdp\_reg\_mem\_model+0x2d9/0x650 net/core/xdp.c:299

CPU: 0 PID: 5065 Comm: syz-executor883 Not tainted 6.8.0-syzkaller-05271-gf99c5f563c17 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:\_\_xdp\_reg\_mem\_model+0x2d9/0x650 net/core/xdp.c:299

Call Trace:
 xdp\_reg\_mem\_model+0x22/0x40 net/core/xdp.c:344
 xdp\_test\_run\_setup net/bpf/test\_run.c:188 \[inline\]
 bpf\_test\_run\_xdp\_live+0x365/0x1e90 net/bpf/test\_run.c:377
 bpf\_prog\_test\_run\_xdp+0x813/0x11b0 net/bpf/test\_run.c:1267
 bpf\_prog\_test\_run+0x33a/0x3b0 kernel/bpf/syscall.c:4240
 \_\_sys\_bpf+0x48d/0x810 kernel/bpf/syscall.c:5649
 \_\_do\_sys\_bpf kernel/bpf/syscall.c:5738 \[inline\]
 \_\_se\_sys\_bpf kernel/bpf/syscall.c:5736 \[inline\]
 \_\_x64\_sys\_bpf+0x7c/0x90 kernel/bpf/syscall.c:5736
 do\_syscall\_64+0xfb/0x240
 entry\_SYSCALL\_64\_after\_hwframe+0x6d/0x75

Found by Linux Verification Center (linuxtesting.org) with syzkaller.

## Affected and fixed versions

- Linux: \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 14e51ea78b4ccacb7acb1346b9241bb790a2054c; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< f92298b0467fd77edc4c1a2c3e48833e69840ec4; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 7e9f79428372c6eab92271390851be34ab26bfb4 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 7e9f79428372c6eab92271390851be34ab26bfb4 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-42082. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42082.md
Affected: Linux >= 8d5d88527587516bd58ff0f3810f07c38e65e2be, < 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0; >= 8d5d88527587516bd58ff0f3810f07c38e65e2be, < 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54; >= 8d5d88527587516bd58ff0f3810f07c38e65e2be, < 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2; >= 8d5d88527587516bd58ff0f…
Fixed in: Linux 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0, Linux 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54, Linux 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2, Linux 14e51ea78b4ccacb7acb1346b9241bb790a2054c, Linux 7e9f79428372c6eab92271390851be34ab26bfb4

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

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

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

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

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

Linux \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 14e51ea78b4ccacb7acb1346b9241bb790a2054c; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< f92298b0467fd77edc4c1a2c3e48833e69840ec4; \>= 8d5d88527587516bd58ff0f3810f07c38e65e2be, \< 7e9f79428372c6eab92271390851be34ab26bfb4; Linux 4.18.

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

Yes. Fixed in Linux 1095b8efbb13a6a5fa583ed373ee1ccab29da2d0, Linux 1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54, Linux 4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2, Linux 14e51ea78b4ccacb7acb1346b9241bb790a2054c, Linux 7e9f79428372c6eab92271390851be34ab26bfb4. Upgrade Linux to 7e9f79428372c6eab92271390851be34ab26bfb4 or later.

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

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/1095b8efbb13a6a5fa583ed373ee1ccab29da2d0>
- patch: <https://git.kernel.org/stable/c/1d3e3b3aa2cbe9bc7db9a7f8673a9fa6d2990d54>
- patch: <https://git.kernel.org/stable/c/4e0c539ee265d5c6e7fa7d229cd4aa7bc01816e2>
- patch: <https://git.kernel.org/stable/c/14e51ea78b4ccacb7acb1346b9241bb790a2054c>
- patch: <https://git.kernel.org/stable/c/f92298b0467fd77edc4c1a2c3e48833e69840ec4>
- patch: <https://git.kernel.org/stable/c/7e9f79428372c6eab92271390851be34ab26bfb4>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## 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-42082>

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