{"id":"CVE-2024-35792","state":"PUBLISHED","title":"crypto: rk3288 - Fix use after free in unprepare","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: rk3288 - Fix use after free in unprepare\n\nThe unprepare call must be carried out before the finalize call\nas the latter can free the request.","publishedAt":"2024-05-17T12:24:53.112Z","updatedAt":"2026-08-05T11:29:58.280Z","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":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"48dd260fdb728eda4a246f635d1325e82f0d3555","versionType":"git"},{"version":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"eb2a41a8ae8c8c4f68aef3bd94665c0cf23e04be","versionType":"git"},{"version":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"c0afb6b88fbbc177fa322a835f874be217bffe45","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/rockchip/rk3288_crypto_ahash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","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":["drivers/crypto/rockchip/rk3288_crypto_ahash.c"]}],"references":["https://git.kernel.org/stable/c/48dd260fdb728eda4a246f635d1325e82f0d3555","https://git.kernel.org/stable/c/eb2a41a8ae8c8c4f68aef3bd94665c0cf23e04be","https://git.kernel.org/stable/c/c0afb6b88fbbc177fa322a835f874be217bffe45"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35792.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35792","state":"PUBLISHED","datePublished":"2024-05-17T12:24:53.112Z","dateUpdated":"2026-08-05T11:29:58.280Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T12:19:12.339Z"},"containers":{"cna":{"title":"crypto: rk3288 - Fix use after free in unprepare","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: rk3288 - Fix use after free in unprepare\n\nThe unprepare call must be carried out before the finalize call\nas the latter can free the request."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"48dd260fdb728eda4a246f635d1325e82f0d3555","versionType":"git"},{"version":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"eb2a41a8ae8c8c4f68aef3bd94665c0cf23e04be","versionType":"git"},{"version":"c66c17a0f69b0e017bbc01d999a28ed96ee84826","status":"affected","lessThan":"c0afb6b88fbbc177fa322a835f874be217bffe45","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/rockchip/rk3288_crypto_ahash.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.24","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.12","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":["drivers/crypto/rockchip/rk3288_crypto_ahash.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/48dd260fdb728eda4a246f635d1325e82f0d3555"},{"url":"https://git.kernel.org/stable/c/eb2a41a8ae8c8c4f68aef3bd94665c0cf23e04be"},{"url":"https://git.kernel.org/stable/c/c0afb6b88fbbc177fa322a835f874be217bffe45"}],"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 vulnerable code is a local crypto accelerator driver reached through the kernel crypto API from local userspace (AF_ALG hash sockets, dm-verity/fs-verity file reads); no remote peer data path (IPsec AH needs shash-based hmac) reaches it.\nAC:L - The use-after-free is unconditional in code order — the driver always touches the request after signalling completion — and the attacker fully controls when the request is freed/reused (closing the AF_ALG socket or the caller's own callback), so the window is attacker-created and repeatable.\nPR:L - Any unprivileged local user can drive the rk3288 hash engine via an AF_ALG socket or by reading dm-verity/fs-verity backed files; no capability, root, or namespace privilege is checked along the path.\nUI:N - Exploitation only requires the attacker's own hashing requests; no action by another user or administrator is needed.\nS:U - The corruption stays within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed by the bug itself.\nC:H - The freed request is re-read after being handed back to the caller, and the attacker can groom the reallocated slab contents, so the stale `rctx->dev`/`areq->src`/`nrsg` values yield a kernel-memory read primitive usable for information disclosure.\nI:H - Use-after-free with attacker-controlled reallocated contents drives `dma_unmap_sg()` on a forged device pointer and forged scatterlist, allowing DMA/IOVA teardown and heap-spray-based control-flow corruption — an arbitrary-write-grade primitive.\nA:H - Even unexploited, dereferencing the freed request and unmapping a bogus scatterlist reliably oopses or panics the kernel, and the condition can be triggered repeatedly by an unprivileged user."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:29:58.280Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.7.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-35792","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-28T15:22:56.349397Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:33:41.714Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/48dd260fdb728eda4a246f635d1325e82f0d3555","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eb2a41a8ae8c8c4f68aef3bd94665c0cf23e04be","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c0afb6b88fbbc177fa322a835f874be217bffe45","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:21:47.351Z"}}]}}}