CVE-2025-68341
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn the Linux kernel, the following vulnerability has been resolved: veth: reduce XDP no_direct return section to fix race As explain in commit fa349e396e48 ("veth: Fix race with AF_XDP exposing old or uninitialized descriptors") for veth there is a chance after napi_complete_done() that another CPU can manage start another NAPI instance running veth_pool(). For NAPI this is correctly handled as the napi_schedule_prep() check will prevent multiple instances from getting scheduled, but for the remaining code in veth_pool() this can run concurrent with the newly started NAPI instance. The problem/race is that xdp_clear_return_frame_no_direct() isn't designed to be nested. Prior to commit 401cb7dae813 ("net: Reference bpf_redirect_info via task_struct on PREEMPT_RT.") the temporary BPF net context bpf_redirect_info was stored per CPU, where this wasn't an issue. Since this commit the BPF context is stored in 'current' task_struct. When running veth in threaded-NAPI mode, then the kthread becomes the storage area. Now a race exists between two concurrent veth_pool() function calls one exiting NAPI and one running new NAPI, both using the same BPF net context. Race is when another CPU gets within the xdp_set_return_frame_no_direct() section before exiting veth_pool() calls the clear-function xdp_clear_return_frame_no_direct().
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA race condition exists in the Linux kernel's veth driver when running in threaded-NAPI mode with XDP. The issue stems from xdp_clear_return_frame_no_direct() not being designed for nested calls - when one veth_pool() instance exits NAPI while another starts, both concurrent calls share the same BPF net context stored in the task_struct, causing the race condition where xdp_set_return_frame_no_direct() can be entered before the clear-function executes.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify veth interfaces in useRun 'ip link show' or 'ls /sys/class/net/' to list network interfaces, then filter for veth* entries. Also check 'cat /sys/class/net/veth*/type' to confirm device type 1 (ethernet).Affected if No veth interfaces exist - the system is not affected.
-
Check if threaded-NAPI mode is enabled for vethExamine '/sys/class/net/<veth>/threaded' for each veth interface. If the file exists and contains '1', threaded-NAPI is enabled. Alternatively, check 'ethtool -k <veth>' for napi-threaded or similar flags.Affected if Threaded-NAPI mode is disabled (value is 0 or file does not exist) - the race condition cannot trigger.
-
Verify if XDP is attached to veth interfacesCheck for XDP programs using 'ip link show <veth>' looking for 'xdp' in the output, or inspect '/sys/class/net/<veth>/xdp' which shows attached XDP programs when XDP is active.Affected if No XDP programs are attached to veth interfaces - the vulnerability is not exploitable.
-
Confirm kernel version and patch statusRun 'uname -r' to get the running kernel version. Compare against the kernel version that includes the fix for this race condition. Check if the specific patch commit for CVE-2025-68341 is present in the kernel source if accessible.Affected if Kernel version is older than the fixed version and the patch is not applied.
A system is affected only if it runs a vulnerable kernel version, uses veth interfaces with threaded-NAPI mode enabled, and has XDP programs attached to those veth interfaces - all three conditions must be true for the race condition to be exploitable.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataApply the kernel patch that reduces the XDP no_direct return section to prevent the race. Until the kernel is updated, avoid running veth interfaces with XDP in threaded-NAPI mode or implement temporary workarounds such as disabling threaded-NAPI for affected veth devices.
- Consultation2.0 h
- Implementation1.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,464.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-68341 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-68341 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data