{"api_version":"1","generated_at":"2026-12-03T07:18:48+00:00","cve":"CVE-2026-138879","urls":{"html":"https://cve.report/CVE-2026-138879","api":"https://cve.report/api/cve/CVE-2026-138879.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138879","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138879"},"summary":{"title":"crypto: algif_skcipher - rewind rounded output bytes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_skcipher - rewind rounded output bytes\n\naf_alg_get_rsgl() advances the receive iterator by the unrounded RX\nscatterlist length.  For a continuing skcipher request,\n_skcipher_recvmsg() then rounds its local length down to a whole chunksize\nwithout restoring the iterator.\n\nA later chunk starts after bytes which the provider never wrote, while the\nsyscall returns only the processed length.  When copy_splice_read()\nsupplies non-zeroed pages and publishes that return as a dense prefix, the\ngap exposes stale bytes from a previous page lifetime.\n\nWith unprivileged xts(aes), a 31-byte MSG_MORE request followed by one\nfinal byte advances a 47-byte destination while returning 32 bytes.  A\nhardened v7.2-rc5 image retained all 15 seeded stale bytes in 4,829 of\n4,829 records.  With init_on_alloc enabled, all 72,345 gap bytes observed\nwere zero.\n\nRewind the iterator by the tail excluded during rounding, before rejecting\na zero processed length.  The crypto request uses only the rounded length;\naf_alg_free_resources() releases the entire RX list before another receive\niteration.\n\nThe fixed target-like kernel returned byte-identical dense 48-byte output\nin 4,771 of 4,771 rounds.  The unmodified kernel returned the vulnerable\n32-byte short record in 2,409 of 2,409 rounds.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:45","updated_at":"2026-11-30 14:17:45"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/2f90facc7b94934653eb7ebfadcc25d503b89196","name":"https://git.kernel.org/stable/c/2f90facc7b94934653eb7ebfadcc25d503b89196","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ca4d514d32a9c4c293d742f7091c49d4d016cd11","name":"https://git.kernel.org/stable/c/ca4d514d32a9c4c293d742f7091c49d4d016cd11","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9e2ad142742c81f1c2f47211994fe8d259d6c2c0","name":"https://git.kernel.org/stable/c/9e2ad142742c81f1c2f47211994fe8d259d6c2c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aee0549e284b65763e8df946b85271eaf5884f70","name":"https://git.kernel.org/stable/c/aee0549e284b65763e8df946b85271eaf5884f70","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc","name":"https://git.kernel.org/stable/c/6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/53a4a201240155d486df7c62e0a26bac37d5e28b","name":"https://git.kernel.org/stable/c/53a4a201240155d486df7c62e0a26bac37d5e28b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b4526c0966888aafecead8956910de7318969d48","name":"https://git.kernel.org/stable/c/b4526c0966888aafecead8956910de7318969d48","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2b3d265a3fc85067d31b5afb1d361fd3572ceccc","name":"https://git.kernel.org/stable/c/2b3d265a3fc85067d31b5afb1d361fd3572ceccc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138879","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138879","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 2b3d265a3fc85067d31b5afb1d361fd3572ceccc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 9e2ad142742c81f1c2f47211994fe8d259d6c2c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a aee0549e284b65763e8df946b85271eaf5884f70 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 53a4a201240155d486df7c62e0a26bac37d5e28b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a b4526c0966888aafecead8956910de7318969d48 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a ca4d514d32a9c4c293d742f7091c49d4d016cd11 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e870456d8e7c8d57c059ea479b5aadbb55ff4c3a 2f90facc7b94934653eb7ebfadcc25d503b89196 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["crypto/algif_skcipher.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"2b3d265a3fc85067d31b5afb1d361fd3572ceccc","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"9e2ad142742c81f1c2f47211994fe8d259d6c2c0","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"aee0549e284b65763e8df946b85271eaf5884f70","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"53a4a201240155d486df7c62e0a26bac37d5e28b","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"b4526c0966888aafecead8956910de7318969d48","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"ca4d514d32a9c4c293d742f7091c49d4d016cd11","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"},{"lessThan":"2f90facc7b94934653eb7ebfadcc25d503b89196","status":"affected","version":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["crypto/algif_skcipher.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.14"},{"lessThan":"4.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_skcipher - rewind rounded output bytes\n\naf_alg_get_rsgl() advances the receive iterator by the unrounded RX\nscatterlist length.  For a continuing skcipher request,\n_skcipher_recvmsg() then rounds its local length down to a whole chunksize\nwithout restoring the iterator.\n\nA later chunk starts after bytes which the provider never wrote, while the\nsyscall returns only the processed length.  When copy_splice_read()\nsupplies non-zeroed pages and publishes that return as a dense prefix, the\ngap exposes stale bytes from a previous page lifetime.\n\nWith unprivileged xts(aes), a 31-byte MSG_MORE request followed by one\nfinal byte advances a 47-byte destination while returning 32 bytes.  A\nhardened v7.2-rc5 image retained all 15 seeded stale bytes in 4,829 of\n4,829 records.  With init_on_alloc enabled, all 72,345 gap bytes observed\nwere zero.\n\nRewind the iterator by the tail excluded during rounding, before rejecting\na zero processed length.  The crypto request uses only the rounded length;\naf_alg_free_resources() releases the entire RX list before another receive\niteration.\n\nThe fixed target-like kernel returned byte-identical dense 48-byte output\nin 4,771 of 4,771 rounds.  The unmodified kernel returned the vulnerable\n32-byte short record in 2,409 of 2,409 rounds."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:50.443Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/2b3d265a3fc85067d31b5afb1d361fd3572ceccc"},{"url":"https://git.kernel.org/stable/c/9e2ad142742c81f1c2f47211994fe8d259d6c2c0"},{"url":"https://git.kernel.org/stable/c/aee0549e284b65763e8df946b85271eaf5884f70"},{"url":"https://git.kernel.org/stable/c/53a4a201240155d486df7c62e0a26bac37d5e28b"},{"url":"https://git.kernel.org/stable/c/b4526c0966888aafecead8956910de7318969d48"},{"url":"https://git.kernel.org/stable/c/ca4d514d32a9c4c293d742f7091c49d4d016cd11"},{"url":"https://git.kernel.org/stable/c/6bc3e7aa73fbdcf6cd48435d9a944d84594c53fc"},{"url":"https://git.kernel.org/stable/c/2f90facc7b94934653eb7ebfadcc25d503b89196"}],"title":"crypto: algif_skcipher - rewind rounded output bytes","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138879","datePublished":"2026-11-30T13:25:50.443Z","dateReserved":"2026-11-30T13:22:15.900Z","dateUpdated":"2026-11-30T13:25:50.443Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:45","lastModifiedDate":"2026-11-30 14:17:45","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138879","Ordinal":"1","Title":"crypto: algif_skcipher - rewind rounded output bytes","CVE":"CVE-2026-138879","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138879","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: algif_skcipher - rewind rounded output bytes\n\naf_alg_get_rsgl() advances the receive iterator by the unrounded RX\nscatterlist length.  For a continuing skcipher request,\n_skcipher_recvmsg() then rounds its local length down to a whole chunksize\nwithout restoring the iterator.\n\nA later chunk starts after bytes which the provider never wrote, while the\nsyscall returns only the processed length.  When copy_splice_read()\nsupplies non-zeroed pages and publishes that return as a dense prefix, the\ngap exposes stale bytes from a previous page lifetime.\n\nWith unprivileged xts(aes), a 31-byte MSG_MORE request followed by one\nfinal byte advances a 47-byte destination while returning 32 bytes.  A\nhardened v7.2-rc5 image retained all 15 seeded stale bytes in 4,829 of\n4,829 records.  With init_on_alloc enabled, all 72,345 gap bytes observed\nwere zero.\n\nRewind the iterator by the tail excluded during rounding, before rejecting\na zero processed length.  The crypto request uses only the rounded length;\naf_alg_free_resources() releases the entire RX list before another receive\niteration.\n\nThe fixed target-like kernel returned byte-identical dense 48-byte output\nin 4,771 of 4,771 rounds.  The unmodified kernel returned the vulnerable\n32-byte short record in 2,409 of 2,409 rounds.","Type":"Description","Title":"crypto: algif_skcipher - rewind rounded output bytes"}]}}}