# CVE-2025-40019: crypto: essiv - Check ssize for decryption and in-place encryption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2025-10-24T11:44:29.864Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 29294dd6f1e7acf527255fb136ffde6602c3a129; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 71f03f8f72d9c70ffba76980e78b38c180e61589; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< df58651968f82344a0ed2afdafd20ecfc55ff548; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 248ff2797ff52a8cbf86507f9583437443bf7685; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< f37e7860dc5e94c70b4a3e38a5809181310ea9ac; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< dc4c854a5e7453c465fa73b153eba4ef2a240abe; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< da7afb01ba05577ba3629f7f4824205550644986; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 6bb73db6948c2de23e407fe1b7ef94bf02b7529f
- Anyone running Linux 5.4

## Description

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

crypto: essiv - Check ssize for decryption and in-place encryption

Move the ssize check to the start in essiv\_aead\_crypt so that
it's also checked for decryption and in-place encryption.

## Affected and fixed versions

- Linux: \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 29294dd6f1e7acf527255fb136ffde6602c3a129; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 71f03f8f72d9c70ffba76980e78b38c180e61589; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< df58651968f82344a0ed2afdafd20ecfc55ff548; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 248ff2797ff52a8cbf86507f9583437443bf7685; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< f37e7860dc5e94c70b4a3e38a5809181310ea9ac; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< dc4c854a5e7453c465fa73b153eba4ef2a240abe; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< da7afb01ba05577ba3629f7f4824205550644986; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 6bb73db6948c2de23e407fe1b7ef94bf02b7529f (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 6bb73db6948c2de23e407fe1b7ef94bf02b7529f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40019. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40019.md
Affected: Linux >= be1eb7f78aa8fbe34779c56c266ccd0364604e71, < 29294dd6f1e7acf527255fb136ffde6602c3a129; >= be1eb7f78aa8fbe34779c56c266ccd0364604e71, < 71f03f8f72d9c70ffba76980e78b38c180e61589; >= be1eb7f78aa8fbe34779c56c266ccd0364604e71, < df58651968f82344a0ed2afdafd20ecfc55ff548; >= be1eb7f78aa8fbe34779c56…
Fixed in: Linux 29294dd6f1e7acf527255fb136ffde6602c3a129, Linux 71f03f8f72d9c70ffba76980e78b38c180e61589, Linux 248ff2797ff52a8cbf86507f9583437443bf7685, Linux 6bb73db6948c2de23e407fe1b7ef94bf02b7529f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40019 being exploited?

There is no confirmed exploitation: CVE-2025-40019 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40019?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40019?

Linux \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 29294dd6f1e7acf527255fb136ffde6602c3a129; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 71f03f8f72d9c70ffba76980e78b38c180e61589; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< df58651968f82344a0ed2afdafd20ecfc55ff548; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 248ff2797ff52a8cbf86507f9583437443bf7685; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< f37e7860dc5e94c70b4a3e38a5809181310ea9ac; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< dc4c854a5e7453c465fa73b153eba4ef2a240abe; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< da7afb01ba05577ba3629f7f4824205550644986; \>= be1eb7f78aa8fbe34779c56c266ccd0364604e71, \< 6bb73db6948c2de23e407fe1b7ef94bf02b7529f; Linux 5.4.

### Is there a fix for CVE-2025-40019?

Yes. Fixed in Linux 29294dd6f1e7acf527255fb136ffde6602c3a129, Linux 71f03f8f72d9c70ffba76980e78b38c180e61589, Linux 248ff2797ff52a8cbf86507f9583437443bf7685, Linux 6bb73db6948c2de23e407fe1b7ef94bf02b7529f. Upgrade Linux to 6bb73db6948c2de23e407fe1b7ef94bf02b7529f or later.

### How do I check if I'm affected by CVE-2025-40019?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/29294dd6f1e7acf527255fb136ffde6602c3a129>
- other: <https://git.kernel.org/stable/c/71f03f8f72d9c70ffba76980e78b38c180e61589>
- other: <https://git.kernel.org/stable/c/df58651968f82344a0ed2afdafd20ecfc55ff548>
- other: <https://git.kernel.org/stable/c/248ff2797ff52a8cbf86507f9583437443bf7685>
- other: <https://git.kernel.org/stable/c/f37e7860dc5e94c70b4a3e38a5809181310ea9ac>
- other: <https://git.kernel.org/stable/c/dc4c854a5e7453c465fa73b153eba4ef2a240abe>
- other: <https://git.kernel.org/stable/c/da7afb01ba05577ba3629f7f4824205550644986>
- other: <https://git.kernel.org/stable/c/6bb73db6948c2de23e407fe1b7ef94bf02b7529f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40019>

HTML: <https://flawdb.com/CVE-2025-40019> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40019>
