CVE-2025-38584

padata: Fix pd UAF once and for all

HIGH 7.0

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: padata: Fix pd UAF once and for all There is a race condition/UAF in padata_reorder that goes back to the initial commit. A reference count is taken at the start of the process in padata_do_parallel, and released at the end in padata_serial_worker. This reference count is (and only is) required for padata_replace to function correctly. If padata_replace is never called then there is no issue. In the function padata_reorder which serves as the core of padata, as soon as padata is added to queue->serial.list, and the associated spin lock released, that padata may be processed and the reference count on pd would go away. Fix this by getting the next padata before the squeue->serial lock is released. In order to make this possible, simplify padata_reorder by only calling it once the next padata arrives.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < a2048e475e22b13dc3e53d485b7e6e11464ed9a6 ; affected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < 73f132e60857038416540c3599b1de6033d7575a ; affected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < 609e59193fc6d9dd323f1c6ae1fdd721f1c79680 ; affected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < a11a12a9880ab37342b73c93cfe1a3ada02ff0db ; affected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < f231d5d001ec75f5886c02d496a4c79edc383d45 ; affected 16295bec6398a3eedc9377e1af6ff4c71b98c300 < dbe3e911a59bda6de96e7cae387ff882c2c177fa
Linux · Linuxaffected 2.6.34 ; unaffected 0 < 2.6.34 ; unaffected 5.10.258 ≤ 5.10.* ; unaffected 5.15.209 ≤ 5.15.* ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.140 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD