{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-38087", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T04:51:23.982Z", "datePublished": "2025-06-30T07:29:43.325Z", "dateUpdated": "2026-08-05T11:59:24.523Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:59:24.523Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: fix use-after-free in taprio_dev_notifier\n\nSince taprio’s taprio_dev_notifier() isn’t protected by an\nRCU read-side critical section, a race with advance_sched()\ncan lead to a use-after-free.\n\nAdding rcu_read_lock() inside taprio_dev_notifier() prevents this." } ], "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 reached by configuring a taprio qdisc and triggering netdev notifier events via rtnetlink/netlink from the local system. Per kernel guidance, tc/netlink qdisc bugs are Local.\nAC:L - The attacker controls both sides of the race — the schedule cycle time (driving advance_sched()'s call_rcu() free at ~48µs intervals) and the NETDEV_UP/NETDEV_CHANGE events that re-enter the unprotected notifier — and can retry indefinitely, with the window widened further on the PREEMPT/PREEMPT_RT kernels typical of TSN deployments.\nPR:L - Only CAP_NET_ADMIN within a network namespace is needed, which any unprivileged user obtains via `unshare -Urn` since rtnetlink uses namespace-scoped netlink_net_capable(); the required multiqueue device is created as a veth with IFLA_NUM_TX_QUEUES.\nUI:N - The attacker performs all steps — qdisc creation, schedule replacement, and link state changes — entirely on their own. No victim action is involved.\nS:U - The corruption is confined to kernel heap memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The use-after-free reads max_open_gate_duration[] and cycle_time from a freed, attacker-sprayable kmalloc-512 object, and with heap grooming a UAF of this kind yields an arbitrary kernel memory read primitive.\nI:H - taprio_update_queue_max_sdu() writes 32 attacker-influenced u32 values (derived from the user-supplied TCA_TAPRIO_TC_ENTRY_MAX_SDU) into fixed offsets 128–255 of the freed object, giving a controlled-value write into a reclaimed general-purpose slab object that is exploitable for control-flow hijacking.\nA:H - The use-after-free corrupts arbitrary reclaimed kernel objects and reliably causes oops/panic, and the race can be re-triggered in a loop for repeated crashes." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/sched/sch_taprio.c" ], "versions": [ { "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6", "lessThan": "8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c", "status": "affected", "versionType": "git" }, { "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6", "lessThan": "8a008c89e5e5c5332e4c0a33d707db9ddd529f8a", "status": "affected", "versionType": "git" }, { "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6", "lessThan": "b1547d28ba468bc3b88764efd13e4319bab63be8", "status": "affected", "versionType": "git" }, { "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6", "lessThan": "b160766e26d4e2e2d6fe2294e0b02f92baefcec5", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/sched/sch_taprio.c" ], "versions": [ { "version": "6.3", "status": "affected" }, { "version": "0", "lessThan": "6.3", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.95", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.35", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15.4", "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": "6.3", "versionEndExcluding": "6.6.95" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.12.35" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.15.4" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.3", "versionEndExcluding": "6.16" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c" }, { "url": "https://git.kernel.org/stable/c/8a008c89e5e5c5332e4c0a33d707db9ddd529f8a" }, { "url": "https://git.kernel.org/stable/c/b1547d28ba468bc3b88764efd13e4319bab63be8" }, { "url": "https://git.kernel.org/stable/c/b160766e26d4e2e2d6fe2294e0b02f92baefcec5" } ], "title": "net/sched: fix use-after-free in taprio_dev_notifier", "x_generator": { "engine": "bippy-1.2.0" } } } }