Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-42071

published high CVSS 3.1 · 7.8

ionic: use dev_consume_skb_any outside of napi

Published
29 Jul 2024, 15:52:34 UTC
Updated
05 Aug 2026, 11:35:29 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux386e69865311044b576ff536c99c6ee9cc98a228 to < ef7646ed49fff962e97b276f4ab91327a67eeb5a · 386e69865311044b576ff536c99c6ee9cc98a228 to < 84b767f9e34fdb143c09e66a2a20722fc2921821 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.8 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: ionic: use dev_consume_skb_any outside of napi If we're not in a NAPI softirq context, we need to be careful about how we call napi_consume_skb(), specifically we need to call it with budget==0 to signal to it that we're not in a safe context. This was found while running some configuration stress testing of traffic and a change queue config loop running, and this curious note popped out: [ 4371.402645] BUG: using smp_processor_id() in preemptible [00000000] code: ethtool/20545 [ 4371.402897] caller is napi_skb_cache_put+0x16/0x80 [ 4371.403120] CPU: 25 PID: 20545 Comm: ethtool Kdump: loaded Tainted: G OE 6.10.0-rc3-netnext+ #8 [ 4371.403302] Hardware name: HPE ProLiant DL360 Gen10/ProLiant DL360 Gen10, BIOS U32 01/23/2021 [ 4371.403460] Call Trace: [ 4371.403613] <TASK> [ 4371.403758] dump_stack_lvl+0x4f/0x70 [ 4371.403904] check_preemption_disabled+0xc1/0xe0 [ 4371.404051] napi_skb_cache_put+0x16/0x80 [ 4371.404199] ionic_tx_clean+0x18a/0x240 [ionic] [ 4371.404354] ionic_tx_cq_service+0xc4/0x200 [ionic] [ 4371.404505] ionic_tx_flush+0x15/0x70 [ionic] [ 4371.404653] ? ionic_lif_qcq_deinit.isra.23+0x5b/0x70 [ionic] [ 4371.404805] ionic_txrx_deinit+0x71/0x190 [ionic] [ 4371.404956] ionic_reconfigure_queues+0x5f5/0xff0 [ionic] [ 4371.405111] ionic_set_ringparam+0x2e8/0x3e0 [ionic] [ 4371.405265] ethnl_set_rings+0x1f1/0x300 [ 4371.405418] ethnl_default_set_doit+0xbb/0x160 [ 4371.405571] genl_family_rcv_msg_doit+0xff/0x130 [...] I found that ionic_tx_clean() calls napi_consume_skb() which calls napi_skb_cache_put(), but before that last call is the note /* Zero budget indicate non-NAPI context called us, like netpoll */ and DEBUG_NET_WARN_ON_ONCE(!in_softirq()); Those are pretty big hints that we're doing it wrong. We can pass a context hint down through the calls to let ionic_tx_clean() know what we're doing so it can call napi_consume_skb() correctly.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is only reached through local administrative netdev operations — ethtool netlink/ioctl (`ETHTOOL_MSG_RINGS_SET`, `ETHTOOL_MSG_CHANNELS_SET`), `ip link set down`, or MTU/XDP changes — all issued from the local system. Remote packets cannot invoke `ionic_txrx_deinit()`. AC:L - The attacker controls both sides of the race: they generate the TX traffic that leaves skbs pending on the queue and the softirq load on the CPU, and they issue the reconfiguration/down operations in a loop (exactly the "traffic plus queue-config loop" stress the reporter used). The path can be retriggered indefinitely with no attacker-uncontrollable precondition. PR:L - The gates are `GENL_UNS_ADMIN_PERM` / `ns_capable(net->user_ns, CAP_NET_ADMIN)`, which are namespace-scoped rather than requiring real root — an unprivileged user with CAP_NET_ADMIN in a user namespace owning a netns that holds an ionic SR-IOV VF (a common SmartNIC container/Kubernetes deployment) can reach it. Per kernel scoring guidance, namespace-reachable CAP_NET_ADMIN is Low, not High. UI:N - The attacker performs the queue reconfiguration and traffic generation entirely on their own; no action by any other user or administrator is required. S:U - The corruption is confined to kernel per-CPU allocator state within the same security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Corrupting the unlocked per-CPU `napi_alloc_cache` lets a stale or duplicated `sk_buff` pointer be reissued by `napi_skb_cache_get()`, producing a use-after-free on an object whose contents are attacker-controlled network data — a reliable kernel memory disclosure primitive. I:H - The same race yields either a double-free/UAF of `sk_buff` objects or, when the `skb_count == NAPI_SKB_CACHE_SIZE` equality check is stepped over, out-of-bounds pointer writes past the end of `skb_cache[]` into adjacent per-CPU data — both are established arbitrary-write/control-flow-hijack primitives. A:H - Handing an already-freed or garbage skb pointer back into the network stack, or freeing pointers via `kmem_cache_free_bulk()` from a corrupted array, reliably oopses or panics the kernel; with `panic_on_warn` the accompanying `DEBUG_NET_WARN_ON_ONCE(!in_softirq())` splat alone halts the machine.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 386e69865311044b576ff536c99c6ee9cc98a228 to < ef7646ed49fff962e97b276f4ab91327a67eeb5a (affected · git)386e69865311044b576ff536c99c6ee9cc98a228 to < 84b767f9e34fdb143c09e66a2a20722fc2921821 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.8 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

ionic: use dev_consume_skb_any outside of napi

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
4cff9a4721f49cf9a541097b25786b24d691b290df1e9ecc2be846b5103c9a8d
Ingested
23 Sep 2026, 08:26:31 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected