Kernel memory corruption via unchecked ESSIV request length
Published Oct 24, 2025 · Updated Oct 24, 2025
Improper input validation in affected Linux kernel releases from 5.4 allows local users to corrupt memory via a malformed ESSIV AEAD request. The essiv_aead_crypt function rejected a negative associated-data-minus-IV length only for out-of-place encryption, while decryption and in-place requests passed it to scatterwalk_map_and_copy. Low-privileged local access and a malformed ESSIV request are required; the invalid copy writes outside its intended destination and allows a system crash or privilege escalation.
Summary
What happened
Improper input validation in affected Linux kernel releases from 5.4 allows local users to corrupt memory via a malformed ESSIV AEAD request. The essiv_aead_crypt function rejected a negative associated-data-minus-IV length only for out-of-place encryption, while decryption and in-place requests passed it to scatterwalk_map_and_copy. Low-privileged local access and a malformed ESSIV request are required; the invalid copy writes outside its intended destination and allows a system crash or privilege escalation.
The record
- CVE
- CVE-2025-40019
- Published
- Oct 24, 2025
- Updated
- Oct 24, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 24, 2025CVE publishedPublication date reported by the CVE source.
- Oct 24, 2025Record 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.4
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <248ff2797ff52a8cbf86507f9583437443bf7685
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <6bb73db6948c2de23e407fe1b7ef94bf02b7529f
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <da7afb01ba05577ba3629f7f4824205550644986
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <dc4c854a5e7453c465fa73b153eba4ef2a240abe
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <df58651968f82344a0ed2afdafd20ecfc55ff548
- Affected versionversion=be1eb7f78aa8fbe34779c56c266ccd0364604e71 <f37e7860dc5e94c70b4a3e38a5809181310ea9ac
What conditions does exploitation require?
What is affected?
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
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