Stale memory access via delayed crypto cleanup
Published Feb 27, 2025 · Updated Jun 1, 2026
Use-after-free in the Linux UFS core driver from 5.12 allows local users to trigger stale memory access during device teardown. ufshcd_dealloc_host() releases struct ufs_hba before the platform device invokes its registered crypto-profile cleanup callback. Reaching the path requires root, CAP_SYS_ADMIN, or CAP_SYS_MODULE; the callback then accesses the released crypto profile.
Summary
What happened
Use-after-free in the Linux UFS core driver from 5.12 allows local users to trigger stale memory access during device teardown. ufshcd_dealloc_host() releases struct ufs_hba before the platform device invokes its registered crypto-profile cleanup callback. Reaching the path requires root, CAP_SYS_ADMIN, or CAP_SYS_MODULE; the callback then accesses the released crypto profile.
The record
- CVE
- CVE-2025-21739
- Published
- Feb 27, 2025
- Updated
- Jun 1, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- Unavailable
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Feb 27, 2025CVE publishedPublication date reported by the CVE source.
- Jun 1, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.12
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <0a6895c03b1f439236e2d22b1a69ebfc1eb9d5ea
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <0c77c0d754fe83cb154715fcfec6c3faef94f207
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <0dc539b888fb5f56b6eeddd95433eab557d4b0c1
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <9c185beae09a3eb85f54777edafa227f7e03075d
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <d06eb2620d3bf16056b8b7ea3744dbb5e30512f4
- Affected versionversion=d76d9d7d1009968dd3a0fc30e5f5ee9fbffc1350 <f8fb2403ddebb5eea0033d90d9daae4c88749ada
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
No sourced classifications are available.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo