cve.bz

CVE-2025-21727 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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/

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21727 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21727?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21727?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21727 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.4 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.235
Linux5.155.15.179
Linux6.16.1.129
Linux6.66.6.76
Linux6.126.12.13
Linux6.136.13.2
Linuxlater releases6.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.237-1DLA-4178-1
Debian11linux-6.16.1.129-1~deb11u1DLA-4102-1
Debian12linux6.1.129-1DEBIAN-CVE-2025-21727
Debian13, 14linux6.12.13-1DEBIAN-CVE-2025-21727
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-21727
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-21727
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1084.91~20.04.1UBUNTU-CVE-2025-21727 USN-7510-8
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1089.98~20.04.1UBUNTU-CVE-2025-21727 USN-7510-3
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1083.92~20.04.1UBUNTU-CVE-2025-21727 USN-7512-1
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-21727
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1076.79~20.04.1UBUNTU-CVE-2025-21727 USN-7510-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1079.85~20.04.1UBUNTU-CVE-2025-21727 USN-7510-7
Ubuntu20.04:LTSlinux-lowlatency-hwe-5.155.15.0-140.150~20.04.1UBUNTU-CVE-2025-21727 USN-7510-1
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1081.87~20.04.1UBUNTU-CVE-2025-21727 USN-7510-1
Ubuntu20.04:LTSlinux-riscv-5.155.15.0-1079.83~20.04.1UBUNTU-CVE-2025-21727
Ubuntu22.04:LTSlinux, linux-lowlatency5.15.0-140.150UBUNTU-CVE-2025-21727 USN-7510-1
143 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-240.el8RHSA-2020:4431
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.69.1.el8_10RHSA-2025:13589
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-240.el8RHSA-2020:4431
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.69.1.el8_10RHSA-2025:13589
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.69.1.rt7.410.el8_10RHSA-2025:13590
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.69.1.rt7.410.el8_10RHSA-2025:13590
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.32.1.el9_6RHSA-2025:12746
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.32.1.el9_6RHSA-2025:12746
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.32.1.el9_6RHSA-2025:12746
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
28 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_101-150600.1.5.1SUSE-SU-2025:1178-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_101-150600.13.5.1SUSE-SU-2025:1180-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-64kb, kernel-source, kernel-default and 1 more6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-default-base6.4.0-150600.23.47.2.150600.12.20.2SUSE-SU-2025:1180-1
SUSELinux Enterprise Module for Confidential Computing Technical Preview 15 SP6kernel-coco, kernel-syms-coco, kernel-coco_debug and 1 more6.4.0-15061.21.coco15sp6.1SUSE-SU-2025:01919-1
SUSELinux Enterprise Module for Development Tools 15 SP6kernel-docs, kernel-syms, kernel-obs-build6.4.0-150600.23.47.1SUSE-SU-2025:1180-1
SUSELinux Enterprise Module for Development Tools 15 SP6kernel-source6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
SUSELinux Enterprise Module for Public Cloud 15 SP6kernel-azure, kernel-source-azure6.4.0-150600.8.34.2SUSE-SU-2025:1177-1
SUSELinux Enterprise Module for Public Cloud 15 SP6kernel-syms-azure6.4.0-150600.8.34.1SUSE-SU-2025:1177-1
SUSELinux Micro 6.0kernel-default-base6.4.0-28.1.21.6SUSE-SU-2025:20192-1
SUSELinux Micro 6.0kernel-livepatch-MICRO-6-0-RT_Update_61-3.1SUSE-SU-2025:20190-1
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-docs, kernel-syms and 2 more6.4.0-150600.23.47.1SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-64kb, kernel-debug, kernel-source and 3 more6.4.0-150600.23.47.2SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-azure, kernel-source-azure6.4.0-150600.8.34.2SUSE-SU-2025:1177-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.47.2.150600.12.20.2SUSE-SU-2025:1180-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.34.1SUSE-SU-2025:1178-1
openSUSELeap 15.6kernel-syms-azure6.4.0-150600.8.34.1SUSE-SU-2025:1177-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.69.1.rt7.410.el8_10ALSA-2025:13590
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.69.1.el8_10ALSA-2025:13589
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.32.1.el9_6ALSA-2025:12746
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-55.25.1.el10_0ALSA-2025:12662
Rocky Linux8kernel0:4.18.0-553.69.1.el8_10RLSA-2025:13589
Rocky Linux8kernel-rt0:4.18.0-553.69.1.rt7.410.el8_10RLSA-2025:13590
Rocky Linux9kernel0:5.14.0-570.32.1.el9_6RLSA-2025:12746
Rocky Linux10kernel0:6.12.0-55.25.1.el10_0RLSA-2025:12662
Alpaquita23linux-lts6.1.130-r0BELL-CVE-2025-21727
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-21727
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-21727

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.25.1.el10_0Fixed 2025-08-04RHSA-2025:12662
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.8.1.el10_1Fixed 2025-11-11RHSA-2025:20095
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.69.1.rt7.410.el8_10Fixed 2025-08-11RHSA-2025:13590
Red Hat Enterprise Linux 8kernel-0:4.18.0-240.el8Fixed 2020-11-04RHSA-2020:4431
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.69.1.el8_10Fixed 2025-08-11RHSA-2025:13589
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.170.1.el8_4Fixed 2025-09-02RHSA-2025:15035
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.170.1.el8_4Fixed 2025-09-02RHSA-2025:15035
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.157.1.el8_6Fixed 2025-08-13RHSA-2025:13776
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.157.1.el8_6Fixed 2025-08-13RHSA-2025:13776
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.157.1.el8_6Fixed 2025-08-13RHSA-2025:13776
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.104.1.el8_8Fixed 2025-08-05RHSA-2025:13061
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.104.1.el8_8Fixed 2025-08-05RHSA-2025:13061
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.32.1.el9_6Fixed 2025-08-04RHSA-2025:12746
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.5.1.el9_7Fixed 2025-11-11RHSA-2025:20518
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-0:5.14.0-70.142.1.el9_0Fixed 2025-08-19RHSA-2025:14054
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-rt-0:5.14.0-70.142.1.rt21.214.el9_0Fixed 2025-08-19RHSA-2025:14094
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21727.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-16Siemens SIMATIC S7-1500 TM MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed
ICSA-24-102-01Siemens SIMATIC S7-1500 TM MFP2024-04-09Critical ManufacturingSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON