{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-42071", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-07-29T15:50:41.168Z", "datePublished": "2024-07-29T15:52:34.714Z", "dateUpdated": "2026-08-05T11:35:29.256Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:35:29.256Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nionic: use dev_consume_skb_any outside of napi\n\nIf we're not in a NAPI softirq context, we need to be careful\nabout how we call napi_consume_skb(), specifically we need to\ncall it with budget==0 to signal to it that we're not in a\nsafe context.\n\nThis was found while running some configuration stress testing\nof traffic and a change queue config loop running, and this\ncurious note popped out:\n\n[ 4371.402645] BUG: using smp_processor_id() in preemptible [00000000] code: ethtool/20545\n[ 4371.402897] caller is napi_skb_cache_put+0x16/0x80\n[ 4371.403120] CPU: 25 PID: 20545 Comm: ethtool Kdump: loaded Tainted: G OE 6.10.0-rc3-netnext+ #8\n[ 4371.403302] Hardware name: HPE ProLiant DL360 Gen10/ProLiant DL360 Gen10, BIOS U32 01/23/2021\n[ 4371.403460] Call Trace:\n[ 4371.403613] \n[ 4371.403758] dump_stack_lvl+0x4f/0x70\n[ 4371.403904] check_preemption_disabled+0xc1/0xe0\n[ 4371.404051] napi_skb_cache_put+0x16/0x80\n[ 4371.404199] ionic_tx_clean+0x18a/0x240 [ionic]\n[ 4371.404354] ionic_tx_cq_service+0xc4/0x200 [ionic]\n[ 4371.404505] ionic_tx_flush+0x15/0x70 [ionic]\n[ 4371.404653] ? ionic_lif_qcq_deinit.isra.23+0x5b/0x70 [ionic]\n[ 4371.404805] ionic_txrx_deinit+0x71/0x190 [ionic]\n[ 4371.404956] ionic_reconfigure_queues+0x5f5/0xff0 [ionic]\n[ 4371.405111] ionic_set_ringparam+0x2e8/0x3e0 [ionic]\n[ 4371.405265] ethnl_set_rings+0x1f1/0x300\n[ 4371.405418] ethnl_default_set_doit+0xbb/0x160\n[ 4371.405571] genl_family_rcv_msg_doit+0xff/0x130\n\t[...]\n\nI found that ionic_tx_clean() calls napi_consume_skb() which calls\nnapi_skb_cache_put(), but before that last call is the note\n /* Zero budget indicate non-NAPI context called us, like netpoll */\nand\n DEBUG_NET_WARN_ON_ONCE(!in_softirq());\n\nThose are pretty big hints that we're doing it wrong. We can pass a\ncontext hint down through the calls to let ionic_tx_clean() know what\nwe're doing so it can call napi_consume_skb() correctly." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "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()`.\nAC: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.\nPR: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.\nUI:N - The attacker performs the queue reconfiguration and traffic generation entirely on their own; no action by any other user or administrator is required.\nS:U - The corruption is confined to kernel per-CPU allocator state within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC: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.\nI: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.\nA: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." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/net/ethernet/pensando/ionic/ionic_dev.h", "drivers/net/ethernet/pensando/ionic/ionic_lif.c", "drivers/net/ethernet/pensando/ionic/ionic_txrx.c" ], "versions": [ { "version": "386e69865311044b576ff536c99c6ee9cc98a228", "lessThan": "ef7646ed49fff962e97b276f4ab91327a67eeb5a", "status": "affected", "versionType": "git" }, { "version": "386e69865311044b576ff536c99c6ee9cc98a228", "lessThan": "84b767f9e34fdb143c09e66a2a20722fc2921821", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/net/ethernet/pensando/ionic/ionic_dev.h", "drivers/net/ethernet/pensando/ionic/ionic_lif.c", "drivers/net/ethernet/pensando/ionic/ionic_txrx.c" ], "versions": [ { "version": "6.9", "status": "affected" }, { "version": "0", "lessThan": "6.9", "status": "unaffected", "versionType": "semver" }, { "version": "6.9.8", "lessThanOrEqual": "6.9.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.10", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "6.9.8" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.9", "versionEndExcluding": "6.10" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/ef7646ed49fff962e97b276f4ab91327a67eeb5a" }, { "url": "https://git.kernel.org/stable/c/84b767f9e34fdb143c09e66a2a20722fc2921821" } ], "title": "ionic: use dev_consume_skb_any outside of napi", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-02T04:54:32.247Z" }, "title": "CVE Program Container", "references": [ { "url": "https://git.kernel.org/stable/c/ef7646ed49fff962e97b276f4ab91327a67eeb5a", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/84b767f9e34fdb143c09e66a2a20722fc2921821", "tags": [ "x_transferred" ] } ] }, { "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-42071", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-09-10T16:19:43.105233Z" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-09-11T17:33:58.060Z" } } ] } }