{"id":"CVE-2025-21726","published":"2025-02-27T02:07:32Z","modified":"2026-10-15T01:03:46Z","title":"padata: avoid UAF for reorder_work","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->work)\n...\n\n\t\t\t\t<kworker context>\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<kworker context>\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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00236,"percentile":0.14833,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0","tags":[]},{"url":"https://git.kernel.org/stable/c/4c6209efea2208597dbd3e52dc87a0d1a8f2dbe1","tags":[]},{"url":"https://git.kernel.org/stable/c/7000507bb0d2ceb545c0a690e0c707c897d102c2","tags":[]},{"url":"https://git.kernel.org/stable/c/6f45ef616775b0ce7889b0f6077fc8d681ab30bc","tags":[]},{"url":"https://git.kernel.org/stable/c/8ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac","tags":[]},{"url":"https://git.kernel.org/stable/c/a54091c24220a4cd847d5b4f36d678edacddbaf0","tags":[]},{"url":"https://git.kernel.org/stable/c/dd7d37ccf6b11f3d95e797ebe4e9e886d0332600","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.97},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bbefa1dd6a6d53537c11624752219e39959d04fb, < f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < 4c6209efea2208597dbd3e52dc87a0d1a8f2dbe1",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < 7000507bb0d2ceb545c0a690e0c707c897d102c2",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < 6f45ef616775b0ce7889b0f6077fc8d681ab30bc",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < 8ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < a54091c24220a4cd847d5b4f36d678edacddbaf0",">= bbefa1dd6a6d53537c11624752219e39959d04fb, < dd7d37ccf6b11f3d95e797ebe4e9e886d0332600","b4c8ed0bf977760a206997b6429a7ac91978f440","e43d65719527043f1ef79ecba9d4ede58cbc7ffe",">= 5.4.19, < 5.5"]},{"vendor":"Linux","product":"Linux","versions":["5.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T17:58:10.478288Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5234","exploited":false,"provenance":"source"}}