GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-38087 (GCVE-0-2025-38087)

Vulnerability from cvelistv5 – Published: 2025-06-30 07:29 – Updated: 2026-08-05 11:59
VLAI
Title
net/sched: fix use-after-free in taprio_dev_notifier
Summary
In the Linux kernel, the following vulnerability has been resolved: net/sched: fix use-after-free in taprio_dev_notifier Since taprio’s taprio_dev_notifier() isn’t protected by an RCU read-side critical section, a race with advance_sched() can lead to a use-after-free. Adding rcu_read_lock() inside taprio_dev_notifier() prevents this.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 , < 8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c (git)
Affected: fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 , < 8a008c89e5e5c5332e4c0a33d707db9ddd529f8a (git)
Affected: fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 , < b1547d28ba468bc3b88764efd13e4319bab63be8 (git)
Affected: fed87cc6718ad5f80aa739fee3c5979a8b09d3a6 , < b160766e26d4e2e2d6fe2294e0b02f92baefcec5 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.3
Unaffected: 0 , < 6.3 (semver)
Unaffected: 6.6.95 , ≤ 6.6.* (semver)
Unaffected: 6.12.35 , ≤ 6.12.* (semver)
Unaffected: 6.15.4 , ≤ 6.15.* (semver)
Unaffected: 6.16 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/sched/sch_taprio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c",
              "status": "affected",
              "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6",
              "versionType": "git"
            },
            {
              "lessThan": "8a008c89e5e5c5332e4c0a33d707db9ddd529f8a",
              "status": "affected",
              "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6",
              "versionType": "git"
            },
            {
              "lessThan": "b1547d28ba468bc3b88764efd13e4319bab63be8",
              "status": "affected",
              "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6",
              "versionType": "git"
            },
            {
              "lessThan": "b160766e26d4e2e2d6fe2294e0b02f92baefcec5",
              "status": "affected",
              "version": "fed87cc6718ad5f80aa739fee3c5979a8b09d3a6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/sched/sch_taprio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.3"
            },
            {
              "lessThan": "6.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.95",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.35",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.15.*",
              "status": "unaffected",
              "version": "6.15.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.95",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.35",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15.4",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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\u2019s taprio_dev_notifier() isn\u2019t 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": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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 \u2014 the schedule cycle time (driving advance_sched()\u0027s call_rcu() free at ~48\u00b5s intervals) and the NETDEV_UP/NETDEV_CHANGE events that re-enter the unprotected notifier \u2014 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 \u2014 qdisc creation, schedule replacement, and link state changes \u2014 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\u2013255 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:59:24.523Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38087",
    "datePublished": "2025-06-30T07:29:43.325Z",
    "dateReserved": "2025-04-16T04:51:23.982Z",
    "dateUpdated": "2026-08-05T11:59:24.523Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-38087",
      "date": "2026-09-15",
      "epss": "0.00152",
      "percentile": "0.04726"
    },
    "microsoft_vex": {
      "current_release_date": "2026-02-18T01:16:48.000Z",
      "cve": "CVE-2025-38087",
      "id": "msrc_CVE-2025-38087",
      "initial_release_date": "2025-06-02T00:00:00.000Z",
      "product_status:fixed": "2",
      "product_status:known_affected": "2",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "net/sched: fix use-after-free in taprio_dev_notifier",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-38087.json",
      "version": "2"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38087\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-30T08:15:22.607\",\"lastModified\":\"2026-07-30T06:22:49.897\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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\u2019s taprio_dev_notifier() isn\u2019t 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.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/sched: correcci\u00f3n del use-after-free en taprio_dev_notifier. Dado que taprio_dev_notifier() de taprio no est\u00e1 protegido por una secci\u00f3n cr\u00edtica de lectura de RCU, una ejecuci\u00f3n con advance_sched() puede provocar un use-after-free. A\u00f1adir rcu_read_lock() dentro de taprio_dev_notifier() evita esto.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"net/sched/sch_taprio.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"fed87cc6718ad5f80aa739fee3c5979a8b09d3a6\",\"lessThan\":\"8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fed87cc6718ad5f80aa739fee3c5979a8b09d3a6\",\"lessThan\":\"8a008c89e5e5c5332e4c0a33d707db9ddd529f8a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fed87cc6718ad5f80aa739fee3c5979a8b09d3a6\",\"lessThan\":\"b1547d28ba468bc3b88764efd13e4319bab63be8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"fed87cc6718ad5f80aa739fee3c5979a8b09d3a6\",\"lessThan\":\"b160766e26d4e2e2d6fe2294e0b02f92baefcec5\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"net/sched/sch_taprio.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.3\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.3\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.95\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.35\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.15.4\",\"lessThanOrEqual\":\"6.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.16\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"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\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"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\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.3\",\"versionEndExcluding\":\"6.6.95\",\"matchCriteriaId\":\"1C7D3F86-080A-4F34-855C-33AACBE752AC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.12.35\",\"matchCriteriaId\":\"E569FD34-0076-4428-BE17-EECCF867611C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.15.4\",\"matchCriteriaId\":\"DFD174C5-1AA2-4671-BDDC-1A9FCC753655\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"6D4894DB-CCFE-4602-B1BF-3960B2E19A01\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"09709862-E348-4378-8632-5A7813EDDC86\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/8a008c89e5e5c5332e4c0a33d707db9ddd529f8a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8c5713ce1ced75f9e9ed5c642ea3d2ba06ead69c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b1547d28ba468bc3b88764efd13e4319bab63be8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b160766e26d4e2e2d6fe2294e0b02f92baefcec5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-07-30T09:22:33+00:00",
      "cve": "CVE-2025-38087",
      "id": "CVE-2025-38087",
      "initial_release_date": "2025-06-30T00:00:00+00:00",
      "product_status:fixed": "891",
      "product_status:known_affected": "22",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net/sched: fix use-after-free in taprio_dev_notifier",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-38087.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-09-05T00:39:22Z",
      "cve": "CVE-2025-38087",
      "id": "CVE-2025-38087",
      "initial_release_date": "2025-06-30T23:30:57Z",
      "product_status:first_fixed": "2",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "442",
      "product_status:recommended": "569",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-38087",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-38087.json",
      "version": "58"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…