{"id":"CVE-2024-46673","state":"PUBLISHED","title":"scsi: aacraid: Fix double-free on probe failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: aacraid: Fix double-free on probe failure\n\naac_probe_one() calls hardware-specific init functions through the\naac_driver_ident::init pointer, all of which eventually call down to\naac_init_adapter().\n\nIf aac_init_adapter() fails after allocating memory for aac_dev::queues,\nit frees the memory but does not clear that member.\n\nAfter the hardware-specific init function returns an error,\naac_probe_one() goes down an error path that frees the memory pointed to\nby aac_dev::queues, resulting.in a double-free.","publishedAt":"2024-09-13T05:29:09.649Z","updatedAt":"2026-08-05T11:37:52.370Z","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":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"d237c7d06ffddcdb5d36948c527dc01284388218","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"564e1986b00c5f05d75342f8407f75f0a17b94df","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"9e96dea7eff6f2bbcd0b42a098012fc66af9eb69","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"85449b28ff6a89c4513115e43ddcad949b5890c9","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"60962c3d8e18e5d8dfa16df788974dd7f35bd87a","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"8a3995a3ffeca280a961b59f5c99843d81b15929","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"4b540ec7c0045c2d01c4e479f34bbc8f147afa4c","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"919ddf8336f0b84c0453bac583808c9f165a85c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/aacraid/comminit.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.15","versionType":"semver"},{"version":"4.19.321","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.283","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.225","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.166","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.108","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.49","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.8","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/aacraid/comminit.c"]}],"references":["https://git.kernel.org/stable/c/d237c7d06ffddcdb5d36948c527dc01284388218","https://git.kernel.org/stable/c/564e1986b00c5f05d75342f8407f75f0a17b94df","https://git.kernel.org/stable/c/9e96dea7eff6f2bbcd0b42a098012fc66af9eb69","https://git.kernel.org/stable/c/85449b28ff6a89c4513115e43ddcad949b5890c9","https://git.kernel.org/stable/c/60962c3d8e18e5d8dfa16df788974dd7f35bd87a","https://git.kernel.org/stable/c/8a3995a3ffeca280a961b59f5c99843d81b15929","https://git.kernel.org/stable/c/4b540ec7c0045c2d01c4e479f34bbc8f147afa4c","https://git.kernel.org/stable/c/919ddf8336f0b84c0453bac583808c9f165a85c2","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/46xxx/CVE-2024-46673.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-46673","state":"PUBLISHED","datePublished":"2024-09-13T05:29:09.649Z","dateUpdated":"2026-08-05T11:37:52.370Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-11T15:12:18.247Z"},"containers":{"cna":{"title":"scsi: aacraid: Fix double-free on probe failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: aacraid: Fix double-free on probe failure\n\naac_probe_one() calls hardware-specific init functions through the\naac_driver_ident::init pointer, all of which eventually call down to\naac_init_adapter().\n\nIf aac_init_adapter() fails after allocating memory for aac_dev::queues,\nit frees the memory but does not clear that member.\n\nAfter the hardware-specific init function returns an error,\naac_probe_one() goes down an error path that frees the memory pointed to\nby aac_dev::queues, resulting.in a double-free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"d237c7d06ffddcdb5d36948c527dc01284388218","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"564e1986b00c5f05d75342f8407f75f0a17b94df","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"9e96dea7eff6f2bbcd0b42a098012fc66af9eb69","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"85449b28ff6a89c4513115e43ddcad949b5890c9","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"60962c3d8e18e5d8dfa16df788974dd7f35bd87a","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"8a3995a3ffeca280a961b59f5c99843d81b15929","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"4b540ec7c0045c2d01c4e479f34bbc8f147afa4c","versionType":"git"},{"version":"8e0c5ebde82b08f6d996e11983890fc4cc085fab","status":"affected","lessThan":"919ddf8336f0b84c0453bac583808c9f165a85c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/aacraid/comminit.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.15","versionType":"semver"},{"version":"4.19.321","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.283","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.225","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.166","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.108","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.49","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.8","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/aacraid/comminit.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d237c7d06ffddcdb5d36948c527dc01284388218"},{"url":"https://git.kernel.org/stable/c/564e1986b00c5f05d75342f8407f75f0a17b94df"},{"url":"https://git.kernel.org/stable/c/9e96dea7eff6f2bbcd0b42a098012fc66af9eb69"},{"url":"https://git.kernel.org/stable/c/85449b28ff6a89c4513115e43ddcad949b5890c9"},{"url":"https://git.kernel.org/stable/c/60962c3d8e18e5d8dfa16df788974dd7f35bd87a"},{"url":"https://git.kernel.org/stable/c/8a3995a3ffeca280a961b59f5c99843d81b15929"},{"url":"https://git.kernel.org/stable/c/4b540ec7c0045c2d01c4e479f34bbc8f147afa4c"},{"url":"https://git.kernel.org/stable/c/919ddf8336f0b84c0453bac583808c9f165a85c2"}],"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 PCI probe/adapter-reset path for a local Adaptec RAID HBA, reached only from local driver bind, the `/dev/aacN` ioctl, sysfs `reset_host`, or SCSI error handling. No remote or adjacent-network input reaches it.\nAC:L - Triggering requires the adapter re-init to hit an allocation failure at `aac_comm_init()`/`aac_fib_setup()` while a probe or host-reset is in flight; an attacker able to invoke the reset path can loop it while driving DMA32 memory pressure, controlling both sides and retrying until the ENOMEM window lands.\nPR:L - Once `dev->queues` is left dangling, any local user can drive the paths that dereference and re-free it (ioctl handling, I/O to the array); a plain unprivileged local account is sufficient to supply the memory pressure and to reuse the freed slab object.\nUI:N - No victim action is needed — the free and the subsequent reuse/second free happen inside the driver's own error unwind and interrupt/kthread contexts.\nS:U - The corruption is confined to kernel slab memory managed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The stale `dev->queues` is read by the interrupt handlers, the command kthread, and the ioctl path after the object is freed, and the double free lets an attacker place a controlled object at that address — yielding disclosure of arbitrary reallocated kernel data.\nI:H - Freed memory is written through the dangling pointer (queue head/tail indices, list_head links, atomics) and the double free hands the attacker the classic two-owners-of-one-slab-object primitive, which is escalatable to arbitrary kernel write and control-flow hijack.\nA:H - A `kfree()` of an already-freed pointer trips SLUB freelist-hardening `BUG()` or corrupts the freelist, and the dangling `dev->queues` dereference from interrupt context reliably oopses — a full kernel panic on the storage controller."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:37:52.370Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"4.19.321"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.4.283"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.10.225"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"5.15.166"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.1.108"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.6.49"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.10.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.15","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-29T15:45:02.828351Z","id":"CVE-2024-46673","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-29T15:45:17.225Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:16:05.090Z"}}]}}}