CVE-2025-21726CWE-416

CVE-2025-21726

High · published February 27, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
13.7
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

padata: avoid UAF for reorder_work

Although the previous patch can avoid ps and ps UAF for _do_serial, it

can not avoid potential UAF issue for reorder_work. This issue can

happen just as below:

crypto_request crypto_request crypto_del_alg

padata_do_serial

...

padata_reorder

// processes all remaining

// requests then breaks

while (1) {

if (!padata)

break;

...

}

padata_do_serial

// new request added

list_add

// sees the new request

queue_work(reorder_work)

padata_reorder

queue_work_on(squeue->work)

...

<kworker context>

padata_serial_worker

// completes new request,

// no more outstanding

// requests

crypto_del_alg

// free pd

<kworker context>

invoke_padata_reorder

// UAF of pd

To avoid UAF for 'reorder_work', get 'pd' ref before put 'reorder_work'

into the 'serial_wq' and put 'pd' ref until the 'serial_wq' finish.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00236 · 13.7th percentile
Weakness
CWE-416 · Use After Free
Published
2025-02-27T07:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 5.4.19, < 5.55.5
linux/linux_kernel≥ 5.5.3, < 5.10.2355.10.235
linux/linux_kernel≥ 5.11, < 5.15.795.15.79
linux/linux_kernel≥ 5.16, < 6.1.1296.1.129
linux/linux_kernel≥ 6.2, < 6.6.766.6.76
linux/linux_kernel≥ 6.7, < 6.12.136.12.13
linux/linux_kernel≥ 6.13, < 6.13.26.13.2
References (11)
EPSS history
Timeline
  • 27 FEB 02:07Z
    padata: avoid UAF for reorder_work
    cvelistv5