CVE-2025-40182
published high CVSS 3.1 · 7.8crypto: skcipher - Fix reqsize handling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxafddce13ce81d52a13898fa0700917835c71acd6 to < f041339d6b9a5a46437f0c48fc7279c92af7a513 · afddce13ce81d52a13898fa0700917835c71acd6 to < 229c586b5e86979badb7cb0d38717b88a9e95ddd · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.17.4 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-buildinfo-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-headers-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-image-unsigned-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-modules-evdi-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-ipu6-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-ipu7-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-iwlwifi-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-usbio-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-modules-vision-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17-headers-6.17.0-1011 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-oem-6.17-tools-6.17.0-1011 | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | noble | linux-tools-6.17.0-1011-oem | Advisory build | 6.17.0-1011.11 | USN-8048-1 |
| Ubuntu | questing | bpftool | Advisory build | 7.7.0+6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-cloud-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-aws-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-cloud-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-headers-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-azure-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-buildinfo-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-buildinfo-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-14 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-cloud-tools-common | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-gcp-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-gcp-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-headers-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-headers-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-headers-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-headers-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-image-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-image-unsigned-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-lib-rust-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-aws | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-aws-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-gcp | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-gcp-64k | Advisory build | 6.17.0-1007.7 | USN-8030-1 |
| Ubuntu | questing | linux-modules-6.17.0-1007-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1007-oracle-64k | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-modules-6.17.0-1008-azure | Advisory build | 6.17.0-1008.8 | USN-8029-3 |
| Ubuntu | questing | linux-modules-6.17.0-1008-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-6.17.0-14-generic-64k | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-ipu6-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-ipu7-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-modules-iwlwifi-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-usbio-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-modules-vision-6.17.0-14-generic | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-oracle | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-oracle-headers-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-oracle-tools-6.17.0-1007 | Advisory build | 6.17.0-1007.7 | USN-8029-2 |
| Ubuntu | questing | linux-perf | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-raspi | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-raspi-headers-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-raspi-tools-6.17.0-1008 | Advisory build | 6.17.0-1008.8 | USN-8029-1 |
| Ubuntu | questing | linux-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-cloud-tools-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-headers-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-realtime-tools-6.17.0-1006 | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
| Ubuntu | questing | linux-source-6.17.0 | Advisory build | 6.17.0-14.14 | USN-8029-1 |
| Ubuntu | questing | linux-tools-6.17.0-1006-realtime | Advisory build | 6.17.0-1006.7 | USN-8029-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: skcipher - Fix reqsize handling Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg") introduced cra_reqsize field in crypto_alg struct to replace type specific reqsize fields. It looks like this was introduced specifically for ahash and acomp from the commit description as subsequent commits add necessary changes in these alg frameworks. However, this is being recommended for use in all crypto algs [1] instead of setting reqsize using crypto_*_set_reqsize(). Using cra_reqsize in skcipher algorithms, hence, causes memory corruptions and crashes as the underlying functions in the algorithm framework have not been updated to set the reqsize properly from cra_reqsize. [2] Add proper set_reqsize calls in the skcipher init function to properly initialize reqsize for these algorithms in the framework. [1]: https://lore.kernel.org/linux-crypto/[email protected]/ [2]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable skcipher request path is entered through local interfaces — an `AF_ALG` socket bound to `ecb(aes)`/`cbc(aes)`, or ordinary file I/O on a dm-crypt/fscrypt volume on an affected SoC. It is not itself a network-facing subsystem, and the async-only driver is excluded from the sync/on-stack consumers such as Bluetooth SMP. AC:L - With `reqsize == 0` the out-of-bounds write happens deterministically on the very first encrypt/decrypt request; there is no race and no condition outside the attacker's control. The attacker fully controls allocation size, timing and repetition, making `kmalloc-96` heap grooming of the adjacent victim object reliable. PR:L - Opening an `AF_ALG` socket and selecting the algorithm (by name or by `cra_driver_name`) requires no capability whatsoever — any unprivileged local user suffices, as does simply reading/writing a dm-crypt or fscrypt-encrypted file. UI:N - The attacker triggers the corrupting crypto operation entirely on their own via a socket write or file I/O; no victim action or cooperation is needed. S:U - The out-of-bounds write corrupts kernel slab memory within the same kernel security authority; there is no VM, IOMMU, or sandbox boundary crossed. C:H - A controlled ~40-byte heap out-of-bounds write into an adjacent `kmalloc-96` object, plus type confusion onto dm-crypt's `dm_crypt_request` pointer fields (`ctx`, `sg_in`, `sg_out`), is readily leveraged into an arbitrary kernel-memory read primitive and disclosure of adjacent object contents. I:H - This is a straight out-of-bounds heap write with partially attacker-controlled content, and the clobbered region contains a `struct completion` whose `list_head` is linked and unlinked by `wait_for_completion_timeout()`/`complete()`, yielding pointer writes usable for control-flow hijacking or privilege escalation. A:H - The commit explicitly states the defect "causes memory corruptions and crashes," and the referenced reproducer demonstrates kernel oopses; slab corruption plus a bogus spinlock/list in freed-adjacent memory reliably panics the system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | afddce13ce81d52a13898fa0700917835c71acd6 to < f041339d6b9a5a46437f0c48fc7279c92af7a513 (affected · git)afddce13ce81d52a13898fa0700917835c71acd6 to < 229c586b5e86979badb7cb0d38717b88a9e95ddd (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.17.4 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
crypto: skcipher - Fix reqsize handling
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d80d691b39653c99dacd96666f3fb926f6c7027a8035ad6bc6b1bd18ea05abe8
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record