crypto: algif_skcipher - rewind rounded output bytes
Summary
| CVE | CVE-2026-138879 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:17:45 UTC |
| Updated | 2026-11-30 14:17:45 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
crypto: algif_skcipher - rewind rounded output bytes
af_alg_get_rsgl() advances the receive iterator by the unrounded RX
scatterlist length. For a continuing skcipher request,
_skcipher_recvmsg() then rounds its local length down to a whole chunksize
without restoring the iterator.
A later chunk starts after bytes which the provider never wrote, while the
syscall returns only the processed length. When copy_splice_read()
supplies non-zeroed pages and publishes that return as a dense prefix, the
gap exposes stale bytes from a previous page lifetime.
With unprivileged xts(aes), a 31-byte MSG_MORE request followed by one
final byte advances a 47-byte destination while returning 32 bytes. A
hardened v7.2-rc5 image retained all 15 seeded stale bytes in 4,829 of
4,829 records. With init_on_alloc enabled, all 72,345 gap bytes observed
were zero.
Rewind the iterator by the tail excluded during rounding, before rejecting
a zero processed length. The crypto request uses only the rounded length;
af_alg_free_resources() releases the entire RX list before another receive
iteration.
The fixed target-like kernel returned byte-identical dense 48-byte output
in 4,771 of 4,771 rounds. The unmodified kernel returned the vulnerable
32-byte short record in 2,409 of 2,409 rounds. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 2b3d265a3fc85067d31b5afb1d361fd3572ceccc git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 9e2ad142742c81f1c2f47211994fe8d259d6c2c0 git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a aee0549e284b65763e8df946b85271eaf5884f70 git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 53a4a201240155d486df7c62e0a26bac37d5e28b git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a b4526c0966888aafecead8956910de7318969d48 git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a ca4d514d32a9c4c293d742f7091c49d4d016cd11 git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc git |
Not specified |
| CNA |
Linux |
Linux |
affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 2f90facc7b94934653eb7ebfadcc25d503b89196 git |
Not specified |
| CNA |
Linux |
Linux |
affected 4.14 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 4.14 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.117 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/2f90facc7b94934653eb7ebfadcc25d503b89196 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/ca4d514d32a9c4c293d742f7091c49d4d016cd11 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/9e2ad142742c81f1c2f47211994fe8d259d6c2c0 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/aee0549e284b65763e8df946b85271eaf5884f70 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/53a4a201240155d486df7c62e0a26bac37d5e28b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/b4526c0966888aafecead8956910de7318969d48 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/2b3d265a3fc85067d31b5afb1d361fd3572ceccc |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.