{"id":"CVE-2023-52669","state":"PUBLISHED","title":"crypto: s390/aes - Fix buffer overread in CTR mode","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: s390/aes - Fix buffer overread in CTR mode\n\nWhen processing the last block, the s390 ctr code will always read\na whole block, even if there isn't a whole block of data left.  Fix\nthis by using the actual length left and copy it into a buffer first\nfor processing.","publishedAt":"2024-05-17T14:01:57.025Z","updatedAt":"2026-08-05T09:10:57.565Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"cd51e26a3b89706beec64f2d8296cfb1c34e0c79","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"a7f580cdb42ec3d53bbb7c4e4335a98423703285","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"dbc9a791a70ea47be9f2acf251700fe254a2ab23","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"d68ac38895e84446848b7647ab9458d54cacba3e","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"e78f1a43e72daf77705ad5b9946de66fc708b874","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"d07f951903fa9922c375b8ab1ce81b18a0034e3b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/crypto/aes_s390.c","arch/s390/crypto/paes_s390.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.0","versionType":"semver"},{"version":"5.10.210","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.149","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.76","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.15","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.3","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/crypto/aes_s390.c","arch/s390/crypto/paes_s390.c"]}],"references":["https://git.kernel.org/stable/c/cd51e26a3b89706beec64f2d8296cfb1c34e0c79","https://git.kernel.org/stable/c/a7f580cdb42ec3d53bbb7c4e4335a98423703285","https://git.kernel.org/stable/c/dbc9a791a70ea47be9f2acf251700fe254a2ab23","https://git.kernel.org/stable/c/d68ac38895e84446848b7647ab9458d54cacba3e","https://git.kernel.org/stable/c/e78f1a43e72daf77705ad5b9946de66fc708b874","https://git.kernel.org/stable/c/d07f951903fa9922c375b8ab1ce81b18a0034e3b","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52669.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52669","state":"PUBLISHED","datePublished":"2024-05-17T14:01:57.025Z","dateUpdated":"2026-08-05T09:10:57.565Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-03-07T14:49:46.885Z"},"containers":{"cna":{"title":"crypto: s390/aes - Fix buffer overread in CTR mode","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: s390/aes - Fix buffer overread in CTR mode\n\nWhen processing the last block, the s390 ctr code will always read\na whole block, even if there isn't a whole block of data left.  Fix\nthis by using the actual length left and copy it into a buffer first\nfor processing."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"cd51e26a3b89706beec64f2d8296cfb1c34e0c79","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"a7f580cdb42ec3d53bbb7c4e4335a98423703285","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"dbc9a791a70ea47be9f2acf251700fe254a2ab23","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"d68ac38895e84446848b7647ab9458d54cacba3e","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"e78f1a43e72daf77705ad5b9946de66fc708b874","versionType":"git"},{"version":"0200f3ecc19660bebeabbcbaf212957fcf1dbf8f","status":"affected","lessThan":"d07f951903fa9922c375b8ab1ce81b18a0034e3b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/crypto/aes_s390.c","arch/s390/crypto/paes_s390.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.0","versionType":"semver"},{"version":"5.10.210","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.149","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.76","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.15","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.3","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/crypto/aes_s390.c","arch/s390/crypto/paes_s390.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cd51e26a3b89706beec64f2d8296cfb1c34e0c79"},{"url":"https://git.kernel.org/stable/c/a7f580cdb42ec3d53bbb7c4e4335a98423703285"},{"url":"https://git.kernel.org/stable/c/dbc9a791a70ea47be9f2acf251700fe254a2ab23"},{"url":"https://git.kernel.org/stable/c/d68ac38895e84446848b7647ab9458d54cacba3e"},{"url":"https://git.kernel.org/stable/c/e78f1a43e72daf77705ad5b9946de66fc708b874"},{"url":"https://git.kernel.org/stable/c/d07f951903fa9922c375b8ab1ce81b18a0034e3b"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","baseScore":8.2,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - rfc3686(ctr(aes)) is an XFRM/ESP transform that resolves to ctr-aes-s390; on an IPsec gateway, attacker-controlled forwarded packet lengths hit authenc encrypt which calls crypto_skcipher_encrypt before ICV generation, so the vulnerable CTR path processes remote traffic.\nAC:L - The attacker reliably triggers the partial final-block path by choosing a cryptlen that is not a multiple of AES_BLOCK_SIZE, and can place that remainder near a page boundary via packet or AF_ALG buffer sizing with no uncontrollable race.\nPR:N - Outbound ESP encryption on a configured IPsec/XFRM path runs on forwarded packets without a local account or capability; SA/policy setup is deployment configuration, not attacker privilege.\nUI:N - No victim interaction is required; crafted packet lengths or local AF_ALG send/recv sequences alone exercise the vulnerable final-block read.\nS:U - Impact stays inside the same kernel authority (crypto/XFRM on the host) and does not demonstrate VM escape, IOMMU bypass, or another cross-scope boundary.\nC:L - The bug over-reads up to 15 bytes of adjacent source memory into the KMCTR path; that is a strictly bounded OOB read (not arbitrary), and the truncated memcpy to dst does not return those bytes, so confidentiality is limited rather than high.\nI:N - This is a source overread only—destination writes are already limited to nbytes—and CTR output for the valid bytes is not an integrity-corrupting write primitive.\nA:H - Reading a full AES block when nbytes is smaller can touch the next page beyond the scatterwalk mapping (or a guard/KFENCE page), causing a kernel fault/oops and denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:10:57.565Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"5.10.210"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"5.15.149"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.1.76"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.6.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52669","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-24T14:16:01.568740Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:24:13.633Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/cd51e26a3b89706beec64f2d8296cfb1c34e0c79","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/a7f580cdb42ec3d53bbb7c4e4335a98423703285","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/dbc9a791a70ea47be9f2acf251700fe254a2ab23","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d68ac38895e84446848b7647ab9458d54cacba3e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e78f1a43e72daf77705ad5b9946de66fc708b874","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d07f951903fa9922c375b8ab1ce81b18a0034e3b","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:34.492Z"}}]}}}