# CVE-2024-42286: scsi: qla2xxx: validate nvme_local_port correctly

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 64% of CVEs (2026-11-30)
- Published: 2024-08-17T09:08:52.036Z
- Modified: 2026-08-05T11:36:22.360Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: qla2xxx: validate nvme_local_port correctly

The driver load failed with error message,

qla2xxx [0000:04:00.0]-ffff:0: register_localport failed: ret=ffffffef

and with a kernel crash,

	BUG: unable to handle kernel NULL pointer dereference at 0000000000000070
	Workqueue: events_unbound qla_register_fcport_fn [qla2xxx]
	RIP: 0010:nvme_fc_register_remoteport+0x16/0x430 [nvme_fc]
	RSP: 0018:ffffaaa040eb3d98 EFLAGS: 00010282
	RAX: 0000000000000000 RBX: ffff9dfb46b78c00 RCX: 0000000000000000
	RDX: ffff9dfb46b78da8 RSI: ffffaaa040eb3e08 RDI: 0000000000000000
	RBP: ffff9dfb612a0a58 R08: ffffffffaf1d6270 R09: 3a34303a30303030
	R10: 34303a303030305b R11: 2078787832616c71 R12: ffff9dfb46b78dd4
	R13: ffff9dfb46b78c24 R14: ffff9dfb41525300 R15: ffff9dfb46b78da8
	FS:  0000000000000000(0000) GS:ffff9dfc67c00000(0000) knlGS:0000000000000000
	CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
	CR2: 0000000000000070 CR3: 000000018da10004 CR4: 00000000000206f0
	Call Trace:
	qla_nvme_register_remote+0xeb/0x1f0 [qla2xxx]
	? qla2x00_dfs_create_rport+0x231/0x270 [qla2xxx]
	qla2x00_update_fcport+0x2a1/0x3c0 [qla2xxx]
	qla_register_fcport_fn+0x54/0xc0 [qla2xxx]

Exit the qla_nvme_register_remote() function when qla_nvme_register_hba()
fails and correctly validate nvme_local_port.

(As written by CVE List.)

## Affected

- Linux Linux: from 8777e4314d397c4e3615dc02fe8537e571e3922f before 549aac9655320c9b245a24271b204668c5d40430; from 8777e4314d397c4e3615dc02fe8537e571e3922f before e1f010844443c389bc552884ac5cfa47de34d54c; from 8777e4314d397c4e3615dc02fe8537e571e3922f before a3ab508a4853a9f5ae25a7816a4889f09938f63c; from 8777e4314d397c4e3615dc02fe8537e571e3922f before cde43031df533751b4ead37d173922feee2f550f; from 8777e4314d397c4e3615dc02fe8537e571e3922f before 7cec2c3bfe84539c415f5e16f989228eba1d2f1e; from 8777e4314d397c4e3615dc02fe8537e571e3922f before f6be298cc1042f24d521197af29c7c4eb95af4d5; from 8777e4314d397c4e3615dc02fe8537e571e3922f before 3eac973eb5cb2b874b3918f924798afc5affd46b; from 8777e4314d397c4e3615dc02fe8537e571e3922f before eb1d4ce2609584eeb7694866f34d4b213caa3af9; 4.19 (not affected: before 4.19; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/549aac9655320c9b245a24271b204668c5d40430> (patch)
- <https://git.kernel.org/stable/c/e1f010844443c389bc552884ac5cfa47de34d54c> (patch)
- <https://git.kernel.org/stable/c/a3ab508a4853a9f5ae25a7816a4889f09938f63c> (patch)
- <https://git.kernel.org/stable/c/cde43031df533751b4ead37d173922feee2f550f> (patch)
- <https://git.kernel.org/stable/c/7cec2c3bfe84539c415f5e16f989228eba1d2f1e> (patch)
- <https://git.kernel.org/stable/c/f6be298cc1042f24d521197af29c7c4eb95af4d5> (patch)
- <https://git.kernel.org/stable/c/3eac973eb5cb2b874b3918f924798afc5affd46b> (patch)
- <https://git.kernel.org/stable/c/eb1d4ce2609584eeb7694866f34d4b213caa3af9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-42286](https://www.cve.org/CVERecord?id=CVE-2024-42286), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-42286](https://nvd.nist.gov/vuln/detail/CVE-2024-42286), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-42286 · Whole record: https://cve.day/CVE-2024-42286.json · Rebuilt by cve.day 2026-11-25T22:58:44.465Z
