CVE-2025-21727: padata: fix UAF in padata_reorder
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.22% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 0ae2f332cfd2d74cf3ce344ec9938cf3e29c3ccd, 573ac9c70bf7885dc85d82fa44550581bfc3b738, 80231f069240d52e98b6a317456c67b2eafd0781; cbl2 kernel 5.15.176.3-3 on CBL Mariner 2.0 5.15.180.1-1.
Low priority for now. Upgrade to Linux Linux 0ae2f332cfd2d74cf3ce344ec9938cf3e29c3ccd, 573ac9c70bf7885dc85d82fa44550581bfc3b738, 80231f069240d52e98b6a317456c67b2eafd0781; cbl2 kernel 5.15.176.3-3 on CBL Mariner 2.0 5.15.180.1-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: padata: fix UAF in padata_reorder A bug was found when run ltp test: BUG: KASAN: slab-use-after-free in padata_find_next+0x29/0x1a0 Read of size 4 at addr ffff88bbfe003524 by task kworker/u113:2/3039206 CPU: 0 PID: 3039206 Comm: kworker/u113:2 Kdump: loaded Not tainted 6.6.0+ Workqueue: pdecrypt_parallel padata_parallel_worker Call Trace: <TASK> dump_stack_lvl+0x32/0x50 print_address_description.constprop.0+0x6b/0x3d0 print_report+0xdd/0x2c0 kasan_report+0xa5/0xd0 padata_find_next+0x29/0x1a0 padata_reorder+0x131/0x220 padata_parallel_worker+0x3d/0xc0 process_one_work+0x2ec/0x5a0 If 'mdelay(10)' is added before calling 'padata_find_next' in the 'padata_reorder' function, this issue could be reproduced easily with ltp test (pcrypt_aead01). This can be explained as bellow: pcrypt_aead_encrypt ... padata_do_parallel refcount_inc(&pd->refcnt); // add refcnt ... padata_do_serial padata_reorder // pd while (1) { padata_find_next(pd, true); // using pd queue_work_on ... padata_serial_worker crypto_del_alg padata_put_pd_cnt // sub refcnt padata_free_shell padata_put_pd(ps->pd); // pd is freed // loop again, but pd is freed // call padata_find_next, UAF } In the padata_reorder function, when it loops in 'while', if the alg is deleted, the refcnt may be decreased to 0 before entering 'padata_find_next', which leads to UAF. As mentioned in [1], do_serial is supposed to be called with BHs disabled and always happen under RCU protection, to address this issue, add synchronize_rcu() in 'padata_free_shell' wait for all _do_serial calls to finish. [1] https://lore.kernel.org/all/20221028160401.cccypv4euxikusiq@parnassus.localdomain/ [2] https://lore.kernel.org/linux-kernel/jfjz5d7zwbytztackem7ibzalm5lnxldi2eofeiczqmqs2m7o6@fq426cwnjtkm/
- BDU:2025-03898
- ALSA-2025:12662
- ALSA-2025:12746
- ALSA-2025:13589
- ALSA-2025:13590
- RHSA-2025:12662
- RHSA-2025:12746
- RHSA-2025:13061
- RHSA-2025:13135
- RHSA-2025:13589
- RHSA-2025:13590
- RHSA-2025:13633
- RHSA-2025:13776
- RHSA-2025:13781
- RHSA-2025:14054
- RHSA-2025:14094
- RHSA-2025:15035
- RLSA-2025:12662
- RLSA-2025:12746
- RLSA-2025:13589
- Published
- Feb 27, 2025
- Updated
- Oct 15, 2026
- EPSS
- 0.2% · 12th percentile
- CWE
- CWE-416
Report tools
Action score
31
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · Linux
- 7.8
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 5.4affected
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before f78170bee51469734b1a306a74fc5f777bb22ba6affected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before f3e0b9f790f8e8065d59e67b565a83154d9f3079affected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before 0ae2f332cfd2d74cf3ce344ec9938cf3e29c3ccdaffected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before bbccae982e9fa1d7abcb23a5ec81cb0ec883f7deaffected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before 573ac9c70bf7885dc85d82fa44550581bfc3b738affected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before 80231f069240d52e98b6a317456c67b2eafd0781affected · git
- b128a30409356df65f1a51cff3eb986cac8cfedc and later · before e01780ea4661172734118d2a5f41bc9720765668affected · git
- before 5.4not affected · semver
- 5.10.235 and later · up to and including 5.10.*not affected · semver
Affected versions · NVD (6)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel5.4 and later · before 5.10.235
- linux linux kernel5.11 and later · before 5.15.179
- linux linux kernel5.16 and later · before 6.1.129
- linux linux kernel6.2 and later · before 6.6.76
- linux linux kernel6.7 and later · before 6.12.13
- linux linux kernel6.13 and later · before 6.13.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | kernel-abi-stablelists | before 6.12.0-55.25.1.el10_0 | 6.12.0-55.25.1.el10_0 |
| AlmaLinux:10 | kernel-doc | before 6.12.0-55.25.1.el10_0 | 6.12.0-55.25.1.el10_0 |
| AlmaLinux:8 | bpftool | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-core | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-debug | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-devel | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-doc | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-headers | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-modules | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | before 4.18.0-553.69.1.el8_10 | 4.18.0-553.69.1.el8_10 |
| AlmaLinux:8 | kernel-rt | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-core | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | before 4.18.0-553.69.1.rt7.410.el8_10 | 4.18.0-553.69.1.rt7.410.el8_10 |
+96
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2025-21725Feb 27, 2025 · smb: client: fix oops due to unset link speed22Monitor
- ← EarlierCVE-2025-21726Feb 27, 2025 · padata: avoid UAF for reorder_work31Monitor
- Later →CVE-2025-21728Feb 27, 2025 · bpf: Send signals asynchronously if !preemptible22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 0ae2f332cfd2d74cf3ce344ec9938cf3e29c3ccd | Vendor (CNA) |
| Linux Linux | 573ac9c70bf7885dc85d82fa44550581bfc3b738 | Vendor (CNA) |
| Linux Linux | 80231f069240d52e98b6a317456c67b2eafd0781 | Vendor (CNA) |
| Linux Linux | bbccae982e9fa1d7abcb23a5ec81cb0ec883f7de | Vendor (CNA) |
| Linux Linux | e01780ea4661172734118d2a5f41bc9720765668 | Vendor (CNA) |
| Linux Linux | f3e0b9f790f8e8065d59e67b565a83154d9f3079 | Vendor (CNA) |
| Linux Linux | f78170bee51469734b1a306a74fc5f777bb22ba6 | Vendor (CNA) |
| cbl2 kernel 5.15.176.3-3 on CBL Mariner 2.0 | 5.15.180.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:kernel | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-devel-matched | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-core | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-64k-debug-modules-extra | 5.14.0-570.32.1.el9_6 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:kernel-abi-stablelists | 6.12.0-55.25.1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:kernel-doc | 6.12.0-55.25.1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| debian:linux | 6.1.129-1 · Debian:12 | Package registry (OSV) |
| red hat:kernel-64k-debug-debuginfo | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debug-devel | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debug-devel-matched | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-debuginfo | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-devel | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-64k-devel-matched | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-debug-devel | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:kernel-debug-devel-matched | 0:6.12.0-55.25.1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
+5
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-416 · Use After FreeCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-secondary
Root cause
After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.
The bug in code
The whole CWE-416 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
free(dev->buf);
/* ... another thread is still running ... */
process(dev->buf);Fixed
lock(&dev->lock);
free(dev->buf);
dev->buf = NULL;
unlock(&dev->lock);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (10 more)Show less
- git.kernel.org/stable/c/573ac9c70bf7885dc85d82fa44550581bfc3b738
- git.kernel.org/stable/c/80231f069240d52e98b6a317456c67b2eafd0781
- git.kernel.org/stable/c/bbccae982e9fa1d7abcb23a5ec81cb0ec883f7de
- git.kernel.org/stable/c/e01780ea4661172734118d2a5f41bc9720765668
- git.kernel.org/stable/c/f3e0b9f790f8e8065d59e67b565a83154d9f3079
- git.kernel.org/stable/c/f78170bee51469734b1a306a74fc5f777bb22ba6
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html
- cert-portal.siemens.com/productcert/html/ssa-265688.html
- cert-portal.siemens.com/productcert/html/ssa-784472.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.