CVE-2024-42286: scsi: qla2xxx: validate nvme_local_port correctly
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: validate nvmelocalport correctly
The driver load failed with error message,
qla2xxx [0000:04:00.0]-ffff:0: registerlocalport failed: ret=ffffffef
and with a kernel crash,
BUG: unable to handle kernel NULL pointer dereference at 0000000000000070 Workqueue: eventsunbound qlaregisterfcportfn [qla2xxx] RIP: 0010:nvmefcregisterremoteport+0x16/0x430 [nvmefc] 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: qlanvmeregisterremote+0xeb/0x1f0 [qla2xxx] ? qla2x00dfscreaterport+0x231/0x270 [qla2xxx] qla2x00updatefcport+0x2a1/0x3c0 [qla2xxx] qlaregisterfcportfn+0x54/0xc0 [qla2xxx]
Exit the qlanvmeregisterremote() function when qlanvmeregisterhba() fails and correctly validate nvmelocalport.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Compensating control
Prevent the qla2xxx driver from registering/creating NVMe FC remote ports until the kernel-side fix is applied, since the crash occurs in nvme_fc_register_remoteport during the qla2xxx flow (register_localport/qla_nvme_register_remote).
Event History
Frequently Asked Questions
What is the severity of CVE-2024-42286?
CVE-2024-42286 has a severity level of high due to the potential for denial of service through kernel crashes.
How do I fix CVE-2024-42286?
You can fix CVE-2024-42286 by upgrading the Linux kernel to versions 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.
What systems are affected by CVE-2024-42286?
CVE-2024-42286 affects various versions of the Linux kernel, particularly those prior to 5.10.224 and some versions of Linux kernel 6.x.
What is the impact of CVE-2024-42286?
The impact of CVE-2024-42286 includes potential kernel crashes and loss of functionality when using the qla2xxx SCSI driver.
Is there a workaround for CVE-2024-42286?
There is no official workaround for CVE-2024-42286; applying the proposed kernel updates is the recommended resolution.