{"id":"CVE-2025-38584","aliases":["CVE-2025-38584"],"related":[],"kind":"vulnerability","state":"published","title":"padata: Fix pd UAF once and for all","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npadata: Fix pd UAF once and for all\n\nThere is a race condition/UAF in padata_reorder that goes back\nto the initial commit.  A reference count is taken at the start\nof the process in padata_do_parallel, and released at the end in\npadata_serial_worker.\n\nThis reference count is (and only is) required for padata_replace\nto function correctly.  If padata_replace is never called then\nthere is no issue.\n\nIn the function padata_reorder which serves as the core of padata,\nas soon as padata is added to queue->serial.list, and the associated\nspin lock released, that padata may be processed and the reference\ncount on pd would go away.\n\nFix this by getting the next padata before the squeue->serial lock\nis released.\n\nIn order to make this possible, simplify padata_reorder by only\ncalling it once the next padata arrives.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npadata: Fix pd UAF once and for all\n\nThere is a race condition/UAF in padata_reorder that goes back\nto the initial commit.  A reference count is taken at the start\nof the process in padata_do_parallel, and released at the end in\npadata_serial_worker.\n\nThis reference count is (and only is) required for padata_replace\nto function correctly.  If padata_replace is never called then\nthere is no issue.\n\nIn the function padata_reorder which serves as the core of padata,\nas soon as padata is added to queue->serial.list, and the associated\nspin lock released, that padata may be processed and the reference\ncount on pd would go away.\n\nFix this by getting the next padata before the squeue->serial lock\nis released.\n\nIn order to make this possible, simplify padata_reorder by only\ncalling it once the next padata arrives.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: padata: Arregla pd UAF de una vez por todas Hay una condición de ejecución/UAF en padata_reorder que se remonta a la confirmación inicial. Se toma un recuento de referencias al inicio del proceso en padata_do_parallel y se libera al final en padata_serial_worker. Este recuento de referencias es (y solo es) necesario para que padata_replace funcione correctamente. Si nunca se llama a padata_replace, no hay problema. En la función padata_reorder que sirve como núcleo de padata, tan pronto como padata se agrega a queue-&gt;serial.list y se libera el bloqueo de giro asociado, ese padata puede procesarse y el recuento de referencias en pd desaparecería. Arregla esto obteniendo el siguiente padata antes de que se libere el bloqueo squeue-&gt;serial. Para que esto sea posible, simplifica padata_reorder llamándolo solo una vez que llega el siguiente padata.","source":"nvd"}],"published":"2025-08-19T17:03:06.172Z","modified":"2026-10-15T22:18:46.183Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"a2048e475e22b13dc3e53d485b7e6e11464ed9a6","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"73f132e60857038416540c3599b1de6033d7575a","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"609e59193fc6d9dd323f1c6ae1fdd721f1c79680","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"a11a12a9880ab37342b73c93cfe1a3ada02ff0db","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"f231d5d001ec75f5886c02d496a4c79edc383d45","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"dbe3e911a59bda6de96e7cae387ff882c2c177fa","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"cdf79bd2e1ecb3cc75631c73d8f4149be6019a52","status":"affected"},{"type":"git","introduced":"16295bec6398a3eedc9377e1af6ff4c71b98c300","fixed":"71203f68c7749609d7fc8ae6ad054bdedeb24f91","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.34","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.34","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.140","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.10","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.1","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.34","fixed":"6.15.10"},{"status":"affected","introduced":"6.16","fixed":"6.16.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a2048e475e22b13dc3e53d485b7e6e11464ed9a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73f132e60857038416540c3599b1de6033d7575a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/609e59193fc6d9dd323f1c6ae1fdd721f1c79680","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a11a12a9880ab37342b73c93cfe1a3ada02ff0db","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f231d5d001ec75f5886c02d496a4c79edc383d45","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbe3e911a59bda6de96e7cae387ff882c2c177fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cdf79bd2e1ecb3cc75631c73d8f4149be6019a52","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71203f68c7749609d7fc8ae6ad054bdedeb24f91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:51:57.371Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38584","url":"https://www.cve.org/CVERecord?id=CVE-2025-38584","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:26.071Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38584","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38584","licence":"Public domain","modified":"2026-10-15T22:18:46.183Z"}],"updatedAt":"2026-11-25T22:59:02.730Z","epss":{"score":0.00208,"percentile":0.11543,"date":"2026-12-01T12:00:22.000Z"}}