{"id":"CVE-2023-52612","state":"PUBLISHED","title":"crypto: scomp - fix req->dst buffer overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: scomp - fix req->dst buffer overflow\n\nThe req->dst buffer size should be checked before copying from the\nscomp_scratch->dst to avoid req->dst buffer overflow problem.","publishedAt":"2024-03-18T10:07:47.204Z","updatedAt":"2026-10-15T00:17:01.994Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"1142d65c5b881590962ad763f94505b6dd67d2fe","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"e0e3f4a18784182cfe34e20c00eca11e78d53e76","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"4518dc468cdd796757190515a9be7408adc8911e","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"a5f2f91b3fd7387e5102060809316a0f8f0bc625","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"4df0c942d04a67df174195ad8082f6e30e7f71a5","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"7d9e5bed036a7f9e2062a137e97e3c1e77fb8759","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"71c6670f9f032ec67d8f4e3f8db4646bf5a62883","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"744e1885922a9943458954cfea917b31064b4131","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/scompress.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"4.19.306","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.268","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.209","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.148","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.75","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.14","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.2","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":["crypto/scompress.c"]}],"references":["https://git.kernel.org/stable/c/1142d65c5b881590962ad763f94505b6dd67d2fe","https://git.kernel.org/stable/c/e0e3f4a18784182cfe34e20c00eca11e78d53e76","https://git.kernel.org/stable/c/4518dc468cdd796757190515a9be7408adc8911e","https://git.kernel.org/stable/c/a5f2f91b3fd7387e5102060809316a0f8f0bc625","https://git.kernel.org/stable/c/4df0c942d04a67df174195ad8082f6e30e7f71a5","https://git.kernel.org/stable/c/7d9e5bed036a7f9e2062a137e97e3c1e77fb8759","https://git.kernel.org/stable/c/71c6670f9f032ec67d8f4e3f8db4646bf5a62883","https://git.kernel.org/stable/c/744e1885922a9943458954cfea917b31064b4131","https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52612.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52612","state":"PUBLISHED","datePublished":"2024-03-18T10:07:47.204Z","dateUpdated":"2026-10-15T00:17:01.994Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-03-06T09:52:12.088Z"},"containers":{"cna":{"title":"crypto: scomp - fix req->dst buffer overflow","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: scomp - fix req->dst buffer overflow\n\nThe req->dst buffer size should be checked before copying from the\nscomp_scratch->dst to avoid req->dst buffer overflow problem."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"1142d65c5b881590962ad763f94505b6dd67d2fe","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"e0e3f4a18784182cfe34e20c00eca11e78d53e76","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"4518dc468cdd796757190515a9be7408adc8911e","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"a5f2f91b3fd7387e5102060809316a0f8f0bc625","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"4df0c942d04a67df174195ad8082f6e30e7f71a5","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"7d9e5bed036a7f9e2062a137e97e3c1e77fb8759","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"71c6670f9f032ec67d8f4e3f8db4646bf5a62883","versionType":"git"},{"version":"1ab53a77b772bf7369464a0e4fa6fd6499acf8f1","status":"affected","lessThan":"744e1885922a9943458954cfea917b31064b4131","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["crypto/scompress.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.10","versionType":"semver"},{"version":"4.19.306","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.268","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.209","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.148","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.75","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.14","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.2","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":["crypto/scompress.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1142d65c5b881590962ad763f94505b6dd67d2fe"},{"url":"https://git.kernel.org/stable/c/e0e3f4a18784182cfe34e20c00eca11e78d53e76"},{"url":"https://git.kernel.org/stable/c/4518dc468cdd796757190515a9be7408adc8911e"},{"url":"https://git.kernel.org/stable/c/a5f2f91b3fd7387e5102060809316a0f8f0bc625"},{"url":"https://git.kernel.org/stable/c/4df0c942d04a67df174195ad8082f6e30e7f71a5"},{"url":"https://git.kernel.org/stable/c/7d9e5bed036a7f9e2062a137e97e3c1e77fb8759"},{"url":"https://git.kernel.org/stable/c/71c6670f9f032ec67d8f4e3f8db4646bf5a62883"},{"url":"https://git.kernel.org/stable/c/744e1885922a9943458954cfea917b31064b4131"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached via the local madvise(MADV_PAGEOUT) syscall path into zswap_store → crypto_acomp_compress → scomp_acomp_comp_decomp; there is no network-facing entry to the scomp acomp wrapper.\nAC:L - An unprivileged attacker can reliably trigger the bug by faulting incompressible anonymous pages and calling MADV_PAGEOUT when zswap is enabled, fully controlling the compressed input with no race or other attacker-uncontrollable condition required.\nPR:L - madvise(MADV_PAGEOUT) on the attacker’s own anonymous VMAs requires only an unprivileged local account; no capabilities or init-namespace root are needed along the path.\nUI:N - Exploitation requires no victim action; the attacker triggers pageout and compression directly against their own memory.\nS:U - Impact is confined to the local kernel/host authority (memory corruption / DoS / potential privilege escalation); it does not cross a VM, IOMMU, or other security boundary.\nC:H - The bug is a kernel out-of-bounds write of attacker-influenced compression output past the caller’s dst size, which is memory corruption that can be leveraged for arbitrary read/info disclosure.\nI:H - Out-of-bounds write into kernel memory via scatterwalk_map_and_copy after the compressor returns a dlen larger than the original destination buffer enables integrity compromise and control-flow hijacking primitives.\nA:H - The overflow is demonstrably reachable and causes a kernel NULL pointer dereference / general protection fault oops in scatterwalk_copychunks, resulting in full availability loss."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:10:42.206Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"4.19.306"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.4.268"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.10.209"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"5.15.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.1.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.6.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.7.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52612","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-18T15:42:02.603013Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:24:15.790Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/1142d65c5b881590962ad763f94505b6dd67d2fe","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e0e3f4a18784182cfe34e20c00eca11e78d53e76","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4518dc468cdd796757190515a9be7408adc8911e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/a5f2f91b3fd7387e5102060809316a0f8f0bc625","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4df0c942d04a67df174195ad8082f6e30e7f71a5","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7d9e5bed036a7f9e2062a137e97e3c1e77fb8759","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/71c6670f9f032ec67d8f4e3f8db4646bf5a62883","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/744e1885922a9943458954cfea917b31064b4131","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:03:21.332Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:17:01.994Z"},"x_adpType":"supplier"}]}}}