{
  "id": "CVE-2025-21726",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21726",
  "published_at": "2025-02-27T02:07:32.861Z",
  "title": "padata: avoid UAF for reorder_work",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "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\npadata: avoid UAF for reorder_work\n\nAlthough the previous patch can avoid ps and ps UAF for _do_serial, it\ncan not avoid potential UAF issue for reorder_work. This issue can\nhappen just as below:\n\ncrypto_request\t\t\tcrypto_request\t\tcrypto_del_alg\npadata_do_serial\n  ...\n  padata_reorder\n    // processes all remaining\n    // requests then breaks\n    while (1) {\n      if (!padata)\n        break;\n      ...\n    }\n\n\t\t\t\tpadata_do_serial\n\t\t\t\t  // new request added\n\t\t\t\t  list_add\n    // sees the new request\n    queue_work(reorder_work)\n\t\t\t\t  padata_reorder\n\t\t\t\t    queue_work_on(squeue-\u003ework)\n...\n\n\t\t\t\t\u003ckworker context\u003e\n\t\t\t\tpadata_serial_worker\n\t\t\t\t// completes new request,\n\t\t\t\t// no more outstanding\n\t\t\t\t// requests\n\n\t\t\t\t\t\t\tcrypto_del_alg\n\t\t\t\t\t\t\t  // free pd\n\n\u003ckworker context\u003e\ninvoke_padata_reorder\n  // UAF of pd\n\nTo avoid UAF for 'reorder_work', get 'pd' ref before put 'reorder_work'\ninto the 'serial_wq' and put 'pd' ref until the 'serial_wq' finish.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c 4c6209efea2208597dbd3e52dc87a0d1a8f2dbe1",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c 7000507bb0d2ceb545c0a690e0c707c897d102c2",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c 6f45ef616775b0ce7889b0f6077fc8d681ab30bc",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c 8ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c a54091c24220a4cd847d5b4f36d678edacddbaf0",
          "\u003e= bbefa1dd6a6d53537c11624752219e39959d04fb, \u003c dd7d37ccf6b11f3d95e797ebe4e9e886d0332600",
          "b4c8ed0bf977760a206997b6429a7ac91978f440",
          "e43d65719527043f1ef79ecba9d4ede58cbc7ffe",
          "\u003e= 5.4.19, \u003c 5.5",
          "\u003e= 5.5.3, \u003c 5.6"
        ],
        "fixed_in": [
          "f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0",
          "4c6209efea2208597dbd3e52dc87a0d1a8f2dbe1",
          "7000507bb0d2ceb545c0a690e0c707c897d102c2",
          "6f45ef616775b0ce7889b0f6077fc8d681ab30bc",
          "8ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac",
          "a54091c24220a4cd847d5b4f36d678edacddbaf0",
          "dd7d37ccf6b11f3d95e797ebe4e9e886d0332600",
          "5.5",
          "5.6"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.6"
        ],
        "fixed_in": [
          "0",
          "5.10.235",
          "5.15.179",
          "6.1.129",
          "6.6.76",
          "6.12.13",
          "6.13.2",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0 or 4c6209efea2208597dbd3e52dc87a0d1a8f2dbe1 or 7000507bb0d2ceb545c0a690e0c707c897d102c2 or 6f45ef616775b0ce7889b0f6077fc8d681ab30bc or 8ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac or a54091c24220a4cd847d5b4f36d678edacddbaf0 or dd7d37ccf6b11f3d95e797ebe4e9e886d0332600 or 5.5 or 5.6 or later.",
      "Upgrade Linux to 0 or 5.10.235 or 5.15.179 or 6.1.129 or 6.6.76 or 6.12.13 or 6.13.2 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
