{"id":"CVE-2024-42288","state":"PUBLISHED","title":"scsi: qla2xxx: Fix for possible memory corruption","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix for possible memory corruption\n\nInit Control Block is dereferenced incorrectly.  Correctly dereference ICB","publishedAt":"2024-08-17T09:08:53.466Z","updatedAt":"2026-08-05T11:36:24.496Z","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":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"dae67169cb35a37ecccf60cfcd6bf93a1f4f5efb","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"87db8d7b7520e99de71791260989f06f9c94953d","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"b0302ffc74123b6a99d7d1896fcd9b2e4072d9ce","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"2a15b59a2c5afac89696e44acf5bbfc0599c6c5e","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"571d7f2a08836698c2fb0d792236424575b9829b","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"8192c533e89d9fb69b2490398939236b78cda79b","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"c03d740152f78e86945a75b2ad541bf972fab92a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_os.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","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/qla2xxx/qla_os.c"]}],"references":["https://git.kernel.org/stable/c/dae67169cb35a37ecccf60cfcd6bf93a1f4f5efb","https://git.kernel.org/stable/c/87db8d7b7520e99de71791260989f06f9c94953d","https://git.kernel.org/stable/c/b0302ffc74123b6a99d7d1896fcd9b2e4072d9ce","https://git.kernel.org/stable/c/2a15b59a2c5afac89696e44acf5bbfc0599c6c5e","https://git.kernel.org/stable/c/571d7f2a08836698c2fb0d792236424575b9829b","https://git.kernel.org/stable/c/8192c533e89d9fb69b2490398939236b78cda79b","https://git.kernel.org/stable/c/c03d740152f78e86945a75b2ad541bf972fab92a","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/42xxx/CVE-2024-42288.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-42288","state":"PUBLISHED","datePublished":"2024-08-17T09:08:53.466Z","dateUpdated":"2026-08-05T11:36:24.496Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-30T07:40:12.262Z"},"containers":{"cna":{"title":"scsi: qla2xxx: Fix for possible memory corruption","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix for possible memory corruption\n\nInit Control Block is dereferenced incorrectly.  Correctly dereference ICB"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"dae67169cb35a37ecccf60cfcd6bf93a1f4f5efb","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"87db8d7b7520e99de71791260989f06f9c94953d","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"b0302ffc74123b6a99d7d1896fcd9b2e4072d9ce","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"2a15b59a2c5afac89696e44acf5bbfc0599c6c5e","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"571d7f2a08836698c2fb0d792236424575b9829b","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"8192c533e89d9fb69b2490398939236b78cda79b","versionType":"git"},{"version":"0645cb8350cdb60bfbf91caa722984b81c215add","status":"affected","lessThan":"c03d740152f78e86945a75b2ad541bf972fab92a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/qla2xxx/qla_os.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.20","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.20","versionType":"semver"},{"version":"5.4.282","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.224","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.165","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.103","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","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/qla2xxx/qla_os.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dae67169cb35a37ecccf60cfcd6bf93a1f4f5efb"},{"url":"https://git.kernel.org/stable/c/87db8d7b7520e99de71791260989f06f9c94953d"},{"url":"https://git.kernel.org/stable/c/b0302ffc74123b6a99d7d1896fcd9b2e4072d9ce"},{"url":"https://git.kernel.org/stable/c/2a15b59a2c5afac89696e44acf5bbfc0599c6c5e"},{"url":"https://git.kernel.org/stable/c/571d7f2a08836698c2fb0d792236424575b9829b"},{"url":"https://git.kernel.org/stable/c/8192c533e89d9fb69b2490398939236b78cda79b"},{"url":"https://git.kernel.org/stable/c/c03d740152f78e86945a75b2ad541bf972fab92a"}],"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 corrupting write lives on the qla2xxx adapter-initialization path, driven by locally-set module parameters/sysfs attributes and firmware-reported exchange limits, not by any remotely supplied data. Reaching it requires local access to the host that owns the FC HBA.\nAC:L - The bad dereference is unconditional and deterministic once the adapter is in target or dual mode with exchange offload enabled — no race, no timing window, and no dependence on memory layout the attacker cannot influence.\nPR:L - On an FC target deployment already configured for exchange offload (target/dual mode with counts above 2048), no elevated capability is needed to reach the corrupting path — it re-executes on every adapter re-initialization, which an ordinary local user with storage-stack access can induce via host-reset/ISP-abort paths.\nUI:N - The corruption occurs automatically during adapter initialization and re-initialization; no victim action of any kind is required.\nS:U - The corrupted `init_cb_size` and the resulting out-of-bounds writes and mismatched DMA frees all stay within the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - An inflated `init_cb_size` is passed straight to `qla2x00_init_firmware()`, causing the HBA to DMA-read far past the ~5.2 KB coherent ICB allocation and expose adjacent kernel memory to the device; the page-allocator corruption from the mismatched `dma_free_coherent()` further yields read primitives over reused memory.\nI:H - The bug is a direct 16-bit write into an adjacent kernel struct field, which then drives `memset(ha->init_cb, 0, ha->init_cb_size)` out of bounds and frees page frames that were never allocated — classic heap/page-allocator corruption leveragable into a controlled write and control-flow hijack.\nA:H - Out-of-bounds writes and freeing unowned pages readily produce allocator corruption and kernel panics, and a malformed Init Control Block also leaves the HBA misconfigured, taking down storage connectivity on the affected host."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:36:24.496Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.282"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.10.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.15.165"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.1.103"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.6.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.10.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-42288","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:11:13.401777Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:30.047Z"}},{"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:03:40.875Z"}}]}}}