# CVE-2024-43834: xdp: fix invalid wait context of page\_pool\_destroy()

> 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.31% (percentile 17, 2026-11-26)
- **Published:** 2024-08-17T09:21:51.583Z
- **Modified:** 2026-10-15T01:18:47.720Z

## Who should check

- Anyone running Linux \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< be9d08ff102df3ac4f66e826ea935cf3af63a4bd; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 3fc1be360b99baeea15cdee3cf94252cd3a72d26; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< bf0ce5aa5f2525ed1b921ba36de96e458e77f482; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 12144069209eec7f2090ce9afa15acdcc2c2a537; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 59a931c5b732ca5fc2ca727f5a72aeabaafa85ec; bf22306d92ca59c59dc4aa3bab14768948193d56; 05f646cb2174d1a4e032b60b99097f5c4b522616; \>= 5.3.18, \< 5.4; \>= 5.4.5, \< 5.5
- Anyone running Linux 5.5

## Description

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

xdp: fix invalid wait context of page\_pool\_destroy()

If the driver uses a page pool, it creates a page pool with
page\_pool\_create().
The reference count of page pool is 1 as default.
A page pool will be destroyed only when a reference count reaches 0.
page\_pool\_destroy() is used to destroy page pool, it decreases a
reference count.
When a page pool is destroyed, -\>disconnect() is called, which is
mem\_allocator\_disconnect().
This function internally acquires mutex\_lock().

If the driver uses XDP, it registers a memory model with
xdp\_rxq\_info\_reg\_mem\_model().
The xdp\_rxq\_info\_reg\_mem\_model() internally increases a page pool
reference count if a memory model is a page pool.
Now the reference count is 2.

To destroy a page pool, the driver should call both page\_pool\_destroy()
and xdp\_unreg\_mem\_model().
The xdp\_unreg\_mem\_model() internally calls page\_pool\_destroy().
Only page\_pool\_destroy() decreases a reference count.

If a driver calls page\_pool\_destroy() then xdp\_unreg\_mem\_model(), we
will face an invalid wait context warning.
Because xdp\_unreg\_mem\_model() calls page\_pool\_destroy() with
rcu\_read\_lock().
The page\_pool\_destroy() internally acquires mutex\_lock().

Splat looks like:
=============================
\[ BUG: Invalid wait context \]
6.10.0-rc6+ \#4 Tainted: G W
-----------------------------
ethtool/1806 is trying to lock:
ffffffff90387b90 (mem\_id\_lock){+.+.}-{4:4}, at: mem\_allocator\_disconnect+0x73/0x150
other info that might help us debug this:
context-{5:5}
3 locks held by ethtool/1806:
stack backtrace:
CPU: 0 PID: 1806 Comm: ethtool Tainted: G W 6.10.0-rc6+ \#4 f916f41f172891c800f2fed
Hardware name: ASUS System Product Name/PRIME Z690-P D4, BIOS 0603 11/01/2021
Call Trace:
\<TASK\>
dump\_stack\_lvl+0x7e/0xc0
\_\_lock\_acquire+0x1681/0x4de0
? \_printk+0x64/0xe0
? \_\_pfx\_mark\_lock.part.0+0x10/0x10
? \_\_pfx\_\_\_lock\_acquire+0x10/0x10
lock\_acquire+0x1b3/0x580
? mem\_allocator\_disconnect+0x73/0x150
? \_\_wake\_up\_klogd.part.0+0x16/0xc0
? \_\_pfx\_lock\_acquire+0x10/0x10
? dump\_stack\_lvl+0x91/0xc0
\_\_mutex\_lock+0x15c/0x1690
? mem\_allocator\_disconnect+0x73/0x150
? \_\_pfx\_prb\_read\_valid+0x10/0x10
? mem\_allocator\_disconnect+0x73/0x150
? \_\_pfx\_llist\_add\_batch+0x10/0x10
? console\_unlock+0x193/0x1b0
? lockdep\_hardirqs\_on+0xbe/0x140
? \_\_pfx\_\_\_mutex\_lock+0x10/0x10
? tick\_nohz\_tick\_stopped+0x16/0x90
? \_\_irq\_work\_queue\_local+0x1e5/0x330
? irq\_work\_queue+0x39/0x50
? \_\_wake\_up\_klogd.part.0+0x79/0xc0
? mem\_allocator\_disconnect+0x73/0x150
mem\_allocator\_disconnect+0x73/0x150
? \_\_pfx\_mem\_allocator\_disconnect+0x10/0x10
? mark\_held\_locks+0xa5/0xf0
? rcu\_is\_watching+0x11/0xb0
page\_pool\_release+0x36e/0x6d0
page\_pool\_destroy+0xd7/0x440
xdp\_unreg\_mem\_model+0x1a7/0x2a0
? \_\_pfx\_xdp\_unreg\_mem\_model+0x10/0x10
? kfree+0x125/0x370
? bnxt\_free\_ring.isra.0+0x2eb/0x500
? bnxt\_free\_mem+0x5ac/0x2500
xdp\_rxq\_info\_unreg+0x4a/0xd0
bnxt\_free\_mem+0x1356/0x2500
bnxt\_close\_nic+0xf0/0x3b0
? \_\_pfx\_bnxt\_close\_nic+0x10/0x10
? ethnl\_parse\_bit+0x2c6/0x6d0
? \_\_pfx\_\_\_nla\_validate\_parse+0x10/0x10
? \_\_pfx\_ethnl\_parse\_bit+0x10/0x10
bnxt\_set\_features+0x2a8/0x3e0
\_\_netdev\_update\_features+0x4dc/0x1370
? ethnl\_parse\_bitset+0x4ff/0x750
? \_\_pfx\_ethnl\_parse\_bitset+0x10/0x10
? \_\_pfx\_\_\_netdev\_update\_features+0x10/0x10
? mark\_held\_locks+0xa5/0xf0
? \_raw\_spin\_unlock\_irqrestore+0x42/0x70
? \_\_pm\_runtime\_resume+0x7d/0x110
ethnl\_set\_features+0x32d/0xa20

To fix this problem, it uses rhashtable\_lookup\_fast() instead of
rhashtable\_lookup() with rcu\_read\_lock().
Using xa without rcu\_read\_lock() here is safe.
xa is freed by \_\_xdp\_mem\_allocator\_rcu\_free() and this is called by
call\_rcu() of mem\_xa\_remove().
The mem\_xa\_remove() is called by page\_pool\_destroy() if a reference
count reaches 0.
The xa is already protected by the reference count mechanism well in the
control plane.
So removing rcu\_read\_lock() for page\_pool\_destroy() is safe.

## Affected and fixed versions

- Linux: \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< be9d08ff102df3ac4f66e826ea935cf3af63a4bd; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 3fc1be360b99baeea15cdee3cf94252cd3a72d26; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< bf0ce5aa5f2525ed1b921ba36de96e458e77f482; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 12144069209eec7f2090ce9afa15acdcc2c2a537; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 59a931c5b732ca5fc2ca727f5a72aeabaafa85ec; bf22306d92ca59c59dc4aa3bab14768948193d56; 05f646cb2174d1a4e032b60b99097f5c4b522616; \>= 5.3.18, \< 5.4; \>= 5.4.5, \< 5.5 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-43834.md
Affected: Linux >= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, < be9d08ff102df3ac4f66e826ea935cf3af63a4bd; >= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, < 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a; >= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, < 3fc1be360b99baeea15cdee3cf94252cd3a72d26; >= c3f812cea0d7006469d1cf3…
Fixed in: Linux 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a, Linux 3fc1be360b99baeea15cdee3cf94252cd3a72d26, Linux 12144069209eec7f2090ce9afa15acdcc2c2a537, Linux 59a931c5b732ca5fc2ca727f5a72aeabaafa85ec, Linux 5.4, Linux 5.5

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

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

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

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

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

Linux \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< be9d08ff102df3ac4f66e826ea935cf3af63a4bd; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 3fc1be360b99baeea15cdee3cf94252cd3a72d26; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< bf0ce5aa5f2525ed1b921ba36de96e458e77f482; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 12144069209eec7f2090ce9afa15acdcc2c2a537; \>= c3f812cea0d7006469d1cf33a4a9f0a12bb4b3a3, \< 59a931c5b732ca5fc2ca727f5a72aeabaafa85ec; bf22306d92ca59c59dc4aa3bab14768948193d56; 05f646cb2174d1a4e032b60b99097f5c4b522616; \>= 5.3.18, \< 5.4; \>= 5.4.5, \< 5.5; Linux 5.5.

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

Yes. Fixed in Linux 6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a, Linux 3fc1be360b99baeea15cdee3cf94252cd3a72d26, Linux 12144069209eec7f2090ce9afa15acdcc2c2a537, Linux 59a931c5b732ca5fc2ca727f5a72aeabaafa85ec, Linux 5.4, Linux 5.5. Upgrade Linux to 5.5 or later.

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

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/be9d08ff102df3ac4f66e826ea935cf3af63a4bd>
- patch: <https://git.kernel.org/stable/c/6c390ef198aa69795427a5cb5fd7cb4bc7e6cd7a>
- patch: <https://git.kernel.org/stable/c/3fc1be360b99baeea15cdee3cf94252cd3a72d26>
- patch: <https://git.kernel.org/stable/c/bf0ce5aa5f2525ed1b921ba36de96e458e77f482>
- patch: <https://git.kernel.org/stable/c/12144069209eec7f2090ce9afa15acdcc2c2a537>
- patch: <https://git.kernel.org/stable/c/59a931c5b732ca5fc2ca727f5a72aeabaafa85ec>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-43834>

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