{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-38127", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T04:51:23.986Z", "datePublished": "2025-07-03T08:35:32.453Z", "dateUpdated": "2026-08-05T11:59:46.950Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:59:46.950Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nice: fix Tx scheduler error handling in XDP callback\n\nWhen the XDP program is loaded, the XDP callback adds new Tx queues.\nThis means that the callback must update the Tx scheduler with the new\nqueue number. In the event of a Tx scheduler failure, the XDP callback\nshould also fail and roll back any changes previously made for XDP\npreparation.\n\nThe previous implementation had a bug that not all changes made by the\nXDP callback were rolled back. This caused the crash with the following\ncall trace:\n\n[ +9.549584] ice 0000:ca:00.0: Failed VSI LAN queue config for XDP, error: -5\n[ +0.382335] Oops: general protection fault, probably for non-canonical address 0x50a2250a90495525: 0000 [#1] SMP NOPTI\n[ +0.010710] CPU: 103 UID: 0 PID: 0 Comm: swapper/103 Not tainted 6.14.0-net-next-mar-31+ #14 PREEMPT(voluntary)\n[ +0.010175] Hardware name: Intel Corporation M50CYP2SBSTD/M50CYP2SBSTD, BIOS SE5C620.86B.01.01.0005.2202160810 02/16/2022\n[ +0.010946] RIP: 0010:__ice_update_sample+0x39/0xe0 [ice]\n\n[...]\n\n[ +0.002715] Call Trace:\n[ +0.002452] \n[ +0.002021] ? __die_body.cold+0x19/0x29\n[ +0.003922] ? die_addr+0x3c/0x60\n[ +0.003319] ? exc_general_protection+0x17c/0x400\n[ +0.004707] ? asm_exc_general_protection+0x26/0x30\n[ +0.004879] ? __ice_update_sample+0x39/0xe0 [ice]\n[ +0.004835] ice_napi_poll+0x665/0x680 [ice]\n[ +0.004320] __napi_poll+0x28/0x190\n[ +0.003500] net_rx_action+0x198/0x360\n[ +0.003752] ? update_rq_clock+0x39/0x220\n[ +0.004013] handle_softirqs+0xf1/0x340\n[ +0.003840] ? sched_clock_cpu+0xf/0x1f0\n[ +0.003925] __irq_exit_rcu+0xc2/0xe0\n[ +0.003665] common_interrupt+0x85/0xa0\n[ +0.003839] \n[ +0.002098] \n[ +0.002106] asm_common_interrupt+0x26/0x40\n[ +0.004184] RIP: 0010:cpuidle_enter_state+0xd3/0x690\n\nFix this by performing the missing unmapping of XDP queues from\nq_vectors and setting the XDP rings pointer back to NULL after all those\nqueues are released.\nAlso, add an immediate exit from the XDP callback in case of ring\npreparation failure." } ], "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 entered only through local syscalls — `bpf(BPF_PROG_LOAD)` followed by an `RTM_SETLINK`/`IFLA_XDP_FD` netlink message (or `BPF_LINK_CREATE`) reaching `ice_xdp()`. No remote packet or peer data can trigger the XDP setup callback.\nAC:L - The attacker controls the conditions that make `ice_cfg_vsi_lan()` fail — Tx scheduler nodes are never released once allocated, so repeated queue-count growth via `ethtool -L`, TC/ADQ channels, or VF/SF creation deterministically exhausts the scheduler layer, and the attach can simply be retried until it fails. Once the rings are freed the dangling `q_vector->tx.tx_ring` list is dereferenced on every NAPI poll with no race to win and an unbounded grooming window.\nPR:L - Attaching the XDP program requires only CAP_NET_ADMIN scoped to the network namespace owning the netdev (`netlink_net_capable`), which an unprivileged user holds inside `unshare -Urn`; `ice_xdp()` explicitly accepts subfunction (`ICE_VSI_SF`) VSIs, which are routinely delegated into container namespaces for XDP workloads.\nUI:N - The attacker performs the XDP attach and generates the traffic that drives NAPI polling entirely on their own; no action by any other user or administrator is needed.\nS:U - The freed `ice_tx_ring` objects and the corrupted state are all kernel-resident within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - The use-after-free lets a groomed slab object supply attacker-controlled `next`, `ring_stats`, `desc`, and `xsk_pool` pointers that the driver dereferences in softirq context, yielding an arbitrary kernel-memory read primitive rather than a bounded leak.\nI:H - `ice_clean_tx_irq()` and `ice_xmit_zc()` write through the freed ring (`next_to_clean`, `next_to_use`, descriptor memory) and call `dev_kfree_skb_any()` on attacker-supplied `tx_buf` pointers, providing arbitrary-write and arbitrary-free primitives usable for control-flow hijack.\nA:H - The commit documents an immediate general protection fault in `__ice_update_sample()` from softirq/NAPI context, which panics the machine and takes down the network interface for every user of the host." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/net/ethernet/intel/ice/ice_main.c" ], "versions": [ { "version": "efc2214b6047b6f5b4ca53151eba62521b9452d6", "lessThan": "1d3c5d0dec6797eca3a861dab0816fa9505d9c3e", "status": "affected", "versionType": "git" }, { "version": "efc2214b6047b6f5b4ca53151eba62521b9452d6", "lessThan": "276849954d7cbe6eec827b21fe2df43f9bf07011", "status": "affected", "versionType": "git" }, { "version": "efc2214b6047b6f5b4ca53151eba62521b9452d6", "lessThan": "0e061abaad1498c5b76c10c594d4359ceb6b9145", "status": "affected", "versionType": "git" }, { "version": "efc2214b6047b6f5b4ca53151eba62521b9452d6", "lessThan": "0153f36041b8e52019ebfa8629c13bf8f9b0a951", "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/intel/ice/ice_main.c" ], "versions": [ { "version": "5.5", "status": "affected" }, { "version": "0", "lessThan": "5.5", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.94", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.34", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15.3", "lessThanOrEqual": "6.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.16", "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": "5.5", "versionEndExcluding": "6.6.94" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "6.12.34" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "6.15.3" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "6.16" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/1d3c5d0dec6797eca3a861dab0816fa9505d9c3e" }, { "url": "https://git.kernel.org/stable/c/276849954d7cbe6eec827b21fe2df43f9bf07011" }, { "url": "https://git.kernel.org/stable/c/0e061abaad1498c5b76c10c594d4359ceb6b9145" }, { "url": "https://git.kernel.org/stable/c/0153f36041b8e52019ebfa8629c13bf8f9b0a951" } ], "title": "ice: fix Tx scheduler error handling in XDP callback", "x_generator": { "engine": "bippy-1.2.0" } } } }