{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-47732","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-09-30T16:00:12.958Z","datePublished":"2024-10-21T12:14:03.863Z","dateUpdated":"2026-08-05T11:39:48.573Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:39:48.573Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: iaa - Fix potential use after free bug\n\nThe free_device_compression_mode(iaa_device, device_mode) function frees\n\"device_mode\" but it iss passed to iaa_compression_modes[i]->free() a few\nlines later resulting in a use after free.\n\nThe good news is that, so far as I can tell, nothing implements the\n->free() function and the use after free happens in dead code.  But, with\nthis fix, when something does implement it, we'll be ready.  :)"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable teardown is reached only through local operations — idxd sysfs driver bind/unbind, module unload, or a local crypto/acomp request dropping the final workqueue reference. Nothing in drivers/crypto/intel/iaa/ processes remote input, so there is no network or adjacent path.\nAC:H - The UAF statement is guarded by `iaa_compression_modes[i]->free` being non-NULL, and the only in-tree registrant (iaa_aecs_init_fixed) passes NULL, making the call site dead code on every mainline kernel; the attacker cannot cause a ->free implementation to exist. Additionally CONFIG_CRYPTO_DEV_IAA_CRYPTO is default-n and in no defconfig, requires Intel IAA hardware, and the unprivileged variant needs an administrator to concurrently unbind the wq — all conditions outside attacker control.\nPR:L - Once the preconditions hold, the vulnerable teardown can execute in an unprivileged context: iaa_wq_put() on the acomp compress/decompress path (reachable by any local user via the registered \"deflate\" algorithm, e.g. through zswap) drops the final reference and calls free_iaa_device() → remove_device_compression_modes(). The dominant paths (unbind, module unload, probe) are root-only, but this unprivileged final-put path exists.\nUI:N - No victim action such as opening a file or mounting a filesystem is needed; the freed-pointer callback runs as a direct consequence of the teardown sequence itself.\nS:U - The corruption is confined to kernel slab memory within the same security authority — there is no VM, IOMMU, or sandbox boundary crossed by this driver teardown path.\nC:H - A use-after-free on a kmalloc'd struct iaa_device_compression_mode lets an attacker who reclaims the slot control the fields the ->free() callback dereferences (name pointer, aecs_comp_table, DMA address), which can be leveraged into a kernel memory read primitive.\nI:H - The freed object is passed to a function pointer callback that operates on attacker-reclaimable fields, giving heap-spray-based write primitives (including a controlled dma_free_coherent/kfree of an attacker-chosen address) that can be escalated toward control-flow hijacking.\nA:H - Even without successful exploitation, dereferencing and double-freeing the released allocation produces slab corruption, KASAN splats, or a kernel panic, taking the system down."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/intel/iaa/iaa_crypto_main.c"],"versions":[{"version":"b190447e0fa3ef7355480d641d078962e03768b4","lessThan":"b5d534b473e2c8d3e4560be2dd6c12a8eb9d61e9","status":"affected","versionType":"git"},{"version":"b190447e0fa3ef7355480d641d078962e03768b4","lessThan":"c66f0be993ba52410edab06124c54ecf143b05c1","status":"affected","versionType":"git"},{"version":"b190447e0fa3ef7355480d641d078962e03768b4","lessThan":"e0d3b845a1b10b7b5abdad7ecc69d45b2aab3209","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/intel/iaa/iaa_crypto_main.c"],"versions":[{"version":"6.8","status":"affected"},{"version":"0","lessThan":"6.8","status":"unaffected","versionType":"semver"},{"version":"6.10.13","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11.2","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.10.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.11.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b5d534b473e2c8d3e4560be2dd6c12a8eb9d61e9"},{"url":"https://git.kernel.org/stable/c/c66f0be993ba52410edab06124c54ecf143b05c1"},{"url":"https://git.kernel.org/stable/c/e0d3b845a1b10b7b5abdad7ecc69d45b2aab3209"}],"title":"crypto: iaa - Fix potential use after free bug","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-47732","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-21T13:00:23.321924Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-10-21T13:04:15.743Z"}}]}}