{
  "id": "CVE-2025-38477",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38477",
  "published_at": "2025-07-28T11:21:38.319Z",
  "title": "net/sched: sch_qfq: Fix race condition on qfq_aggregate",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_qfq: Fix race condition on qfq_aggregate\n\nA race condition can occur when 'agg' is modified in qfq_change_agg\n(called during qfq_enqueue) while other threads access it\nconcurrently. For example, qfq_dump_class may trigger a NULL\ndereference, and qfq_delete_class may cause a use-after-free.\n\nThis patch addresses the issue by:\n\n1. Moved qfq_destroy_class into the critical section.\n\n2. Added sch_tree_lock protection to qfq_dump_class and\nqfq_dump_class_stats.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c aa7a22c4d678bf649fd3a1d27debec583563414d",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c d841aa5518508ab195b6781ad0d73ee378d713dd",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c c6df794000147a3a02f79984aada4ce83f8d0a1e",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c 466e10194ab81caa2ee6a332d33ba16bcceeeba6",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c fbe48f06e64134dfeafa89ad23387f66ebca3527",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c a6d735100f602c830c16d69fb6d780eebd8c9ae1",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c c000a3a330d97f6c073ace5aa5faf94b9adb4b79",
          "\u003e= 462dbc9101acd38e92eda93c0726857517a24bbd, \u003c 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64"
        ],
        "fixed_in": [
          "aa7a22c4d678bf649fd3a1d27debec583563414d",
          "d841aa5518508ab195b6781ad0d73ee378d713dd",
          "c6df794000147a3a02f79984aada4ce83f8d0a1e",
          "466e10194ab81caa2ee6a332d33ba16bcceeeba6",
          "fbe48f06e64134dfeafa89ad23387f66ebca3527",
          "a6d735100f602c830c16d69fb6d780eebd8c9ae1",
          "c000a3a330d97f6c073ace5aa5faf94b9adb4b79",
          "5e28d5a3f774f118896aec17a3a20a9c5c9dfc64"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.8"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.147",
          "6.6.100",
          "6.12.40",
          "6.15.8",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to aa7a22c4d678bf649fd3a1d27debec583563414d or d841aa5518508ab195b6781ad0d73ee378d713dd or c6df794000147a3a02f79984aada4ce83f8d0a1e or 466e10194ab81caa2ee6a332d33ba16bcceeeba6 or fbe48f06e64134dfeafa89ad23387f66ebca3527 or a6d735100f602c830c16d69fb6d780eebd8c9ae1 or c000a3a330d97f6c073ace5aa5faf94b9adb4b79 or 5e28d5a3f774f118896aec17a3a20a9c5c9dfc64 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.147 or 6.6.100 or 6.12.40 or 6.15.8 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
