CVE-2024-42286

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
17/08/2024
Last modified:
10/09/2024

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> scsi: qla2xxx: validate nvme_local_port correctly<br /> <br /> The driver load failed with error message,<br /> <br /> qla2xxx [0000:04:00.0]-ffff:0: register_localport failed: ret=ffffffef<br /> <br /> and with a kernel crash,<br /> <br /> BUG: unable to handle kernel NULL pointer dereference at 0000000000000070<br /> Workqueue: events_unbound qla_register_fcport_fn [qla2xxx]<br /> RIP: 0010:nvme_fc_register_remoteport+0x16/0x430 [nvme_fc]<br /> RSP: 0018:ffffaaa040eb3d98 EFLAGS: 00010282<br /> RAX: 0000000000000000 RBX: ffff9dfb46b78c00 RCX: 0000000000000000<br /> RDX: ffff9dfb46b78da8 RSI: ffffaaa040eb3e08 RDI: 0000000000000000<br /> RBP: ffff9dfb612a0a58 R08: ffffffffaf1d6270 R09: 3a34303a30303030<br /> R10: 34303a303030305b R11: 2078787832616c71 R12: ffff9dfb46b78dd4<br /> R13: ffff9dfb46b78c24 R14: ffff9dfb41525300 R15: ffff9dfb46b78da8<br /> FS: 0000000000000000(0000) GS:ffff9dfc67c00000(0000) knlGS:0000000000000000<br /> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br /> CR2: 0000000000000070 CR3: 000000018da10004 CR4: 00000000000206f0<br /> Call Trace:<br /> qla_nvme_register_remote+0xeb/0x1f0 [qla2xxx]<br /> ? qla2x00_dfs_create_rport+0x231/0x270 [qla2xxx]<br /> qla2x00_update_fcport+0x2a1/0x3c0 [qla2xxx]<br /> qla_register_fcport_fn+0x54/0xc0 [qla2xxx]<br /> <br /> Exit the qla_nvme_register_remote() function when qla_nvme_register_hba()<br /> fails and correctly validate nvme_local_port.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.19.320 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.282 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.224 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.165 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.103 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.44 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.10.3 (excluding)